]> diplodocus.org Git - nmh/blobdiff - sbr/folder_delmsgs.c
Look at post instead of inc to determine build options in build_nmh.
[nmh] / sbr / folder_delmsgs.c
index 7431b62e65659f49771e106e9b3d6440b81c9a8f..ee4bd9e95e4b96d33b971578eda3918dd80363a3 100644 (file)
@@ -40,6 +40,14 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
        /* Mark that the sequence information has changed */
        mp->msgflags |= SEQMOD;
 
+       /*
+        * Write out the sequence and context files; this will release
+        * any locks before the rmmproc is called.
+        */
+
+       seq_save (mp);
+       context_save ();
+
        vec = argsplit(rmmproc, &prog, &vecp);
 
        /*
@@ -132,5 +140,12 @@ folder_delmsgs (struct msgs *mp, int unlink_msgs, int nohook)
     /* Mark that the sequence information has changed */
     mp->msgflags |= SEQMOD;
 
+    /*
+     * Write out sequence and context files
+     */
+
+    seq_save (mp);
+    context_save ();
+
     return retval;
 }