]> diplodocus.org Git - nmh/blobdiff - uip/comp.c
Look at post instead of inc to determine build options in build_nmh.
[nmh] / uip / comp.c
index 0b0ac369f804a66f169f4398be211432ec6b8793..be7968d1146f428d3846f5a60eee94a58739218e 100644 (file)
@@ -256,7 +256,7 @@ main (int argc, char **argv)
            adios (maildir, "unable to change directory to");
 
        /* read folder and create message structure */
            adios (maildir, "unable to change directory to");
 
        /* read folder and create message structure */
-       if (!(mp = folder_read (folder)))
+       if (!(mp = folder_read (folder, 1)))
            adios (NULL, "unable to read folder %s", folder);
 
        /* check for empty folder */
            adios (NULL, "unable to read folder %s", folder);
 
        /* check for empty folder */
@@ -267,6 +267,7 @@ main (int argc, char **argv)
        if (!m_convert (mp, msg))
            done (1);
        seq_setprev (mp);       /* set the previous-sequence */
        if (!m_convert (mp, msg))
            done (1);
        seq_setprev (mp);       /* set the previous-sequence */
+       seq_save (mp);
 
        if (mp->numsel > 1)
            adios (NULL, "only one message at a time!");
 
        if (mp->numsel > 1)
            adios (NULL, "only one message at a time!");
@@ -379,7 +380,7 @@ try_it_again:
        dat[2] = 0;
        dat[3] = outputlinelen;
        dat[4] = 0;
        dat[2] = 0;
        dat[3] = outputlinelen;
        dat[4] = 0;
-       fmt_scan(fmt, scanl, i + 1, i, dat);
+       fmt_scan(fmt, scanl, i + 1, i, dat, NULL);
        write(out, scanl, strlen(scanl));
        free(scanl);
     } else {
        write(out, scanl, strlen(scanl));
        free(scanl);
     } else {