]> diplodocus.org Git - nmh/blobdiff - uip/inc.c
Replaced hard-coded value with MAX_DELIMITER_SIZE in m_getfld.c.
[nmh] / uip / inc.c
index 07440b1..3d0830e 100644 (file)
--- a/uip/inc.c
+++ b/uip/inc.c
@@ -46,6 +46,8 @@
 # define SASLminc(a)  0
 #endif
 
 # define SASLminc(a)  0
 #endif
 
+extern m_getfld_state_t gstate;
+
 static struct swit switches[] = {
 #define        AUDSW                      0
     { "audit audit-file", 0 },
 static struct swit switches[] = {
 #define        AUDSW                      0
     { "audit audit-file", 0 },
@@ -587,6 +589,8 @@ go_to_it:
        fflush (stdout);
     }
 
        fflush (stdout);
     }
 
+    m_getfld_state_init (&gstate);
+
     /*
      * Get the mail from a POP server
      */
     /*
      * 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) {
      * 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 (;;) {
            /*
        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! */
     }
 
        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 */
     if (incerr < 0) {          /* error */
        if (locked) {
             GETGROUPPRIVS();      /* Be sure we can unlock mail file */