X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/bfad64befb4d6696fdfb63b119666eec4bac6fb3..8664e81329d0811d0b0f35521a850b74ac276da3:/uip/inc.c diff --git a/uip/inc.c b/uip/inc.c index 07440b12..3d0830e5 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -46,6 +46,8 @@ # define SASLminc(a) 0 #endif +extern m_getfld_state_t gstate; + static struct swit switches[] = { #define AUDSW 0 { "audit audit-file", 0 }, @@ -587,6 +589,8 @@ go_to_it: fflush (stdout); } + m_getfld_state_init (&gstate); + /* * Get the mail from a POP server */ @@ -720,7 +724,7 @@ go_to_it: * Get the mail from file (usually mail spool) */ if (inc_type == INC_FILE && Maildir == NULL) { - m_unknown (in); /* the MAGIC invocation... */ + m_unknown (gstate, in); /* the MAGIC invocation... */ hghnum = msgnum = mp->hghmsg; for (;;) { /* @@ -887,6 +891,8 @@ go_to_it: free (Maildir); /* From now on Maildir is just a flag - don't dref! */ } + m_getfld_state_destroy (&gstate); + if (incerr < 0) { /* error */ if (locked) { GETGROUPPRIVS(); /* Be sure we can unlock mail file */