* flags for the mail source
*/
#define INC_FILE 0
-#define INC_POP 1
+#ifdef POP
+# define INC_POP 1
+#endif /* POP */
static int inc_type;
static struct Maildir_entry {
char *MAILHOST_env_variable;
#endif
-#ifdef MHE
- FILE *mhe = NULL;
-#endif
-
done=inc_done;
/* absolutely the first thing we do is save our privileges,
#endif /* POP */
}
-#ifdef MHE
- if (context_find ("mhe")) {
- int i;
- cp = concat (maildir, "/++", NULL);
- i = stat (cp, &st);
- if ((mhe = fopen (cp, "a")) == NULL)
- admonish (cp, "unable to append to");
- else
- if (i == NOTOK)
- chmod (cp, m_gmprot ());
- free (cp);
- }
-#endif /* MHE */
-
/* Get new format string */
nfs = new_fs (form, format, FORMAT);
default:
if (aud)
fputs (scanl, aud);
-# ifdef MHE
- if (mhe)
- fputs (scanl, mhe);
-# endif /* MHE */
if (noisy)
fflush (stdout);
if (!packfile) {
if (aud)
fputs (scanl, aud);
-#ifdef MHE
- if (mhe)
- fputs (scanl, mhe);
-#endif /* MHE */
if (noisy)
fflush (stdout);
*/
break;
}
- } else { /* Maildir inbox to process */
+ } else if (inc_type == INC_FILE) { /* Maildir inbox to process */
char *sp;
FILE *sf;
int i;
if (aud)
fputs (scanl, aud);
-# ifdef MHE
- if (mhe)
- fputs (scanl, mhe);
-# endif /* MHE */
if (noisy)
fflush (stdout);
if (!packfile) {
if (aud)
fclose (aud);
-#ifdef MHE
- if (mhe)
- fclose (mhe);
-#endif /* MHE */
-
if (noisy)
fflush (stdout);