]> diplodocus.org Git - nmh/blobdiff - uip/rmm.c
Carl Mummert: add unquote() function for removing quotes from RFC-2822 headers
[nmh] / uip / rmm.c
index 1b09907a5b8932e5a7d48511d14506de645588fb..072097a7949b3f6781555f3175aaeabe953f6a90 100644 (file)
--- a/uip/rmm.c
+++ b/uip/rmm.c
@@ -3,6 +3,10 @@
  * rmm.c -- remove a message(s)
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
@@ -21,7 +25,7 @@ static struct swit switches[] = {
 #define VERSIONSW     2
     { "version", 0 },
 #define        HELPSW        3
-    { "help", 4 },
+    { "help", 0 },
     { NULL, 0 }
 };
 
@@ -141,11 +145,11 @@ main (int argc, char **argv)
     }
 
     /* "remove" the SELECTED messages */
-    folder_delmsgs (mp, unlink_msgs);
+    folder_delmsgs (mp, unlink_msgs, 0);
 
     seq_save (mp);             /* synchronize message sequences  */
     context_replace (pfolder, folder); /* update current folder   */
     context_save ();                   /* save the context file   */
     folder_free (mp);                  /* free folder structure   */
-    done (0);
+    return done (0);
 }