]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setunseen.c
m_backup.c: Move interface to own file.
[nmh] / sbr / seq_setunseen.c
index 49bfda4d8c5a9dff6506c44911fc96727f165bfa..058648c77a6765e1383a011f52cb2febac8d5810 100644 (file)
@@ -6,8 +6,13 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "context_find.h"
+#include "brkstring.h"
+#include "seq_getnum.h"
+#include "seq_del.h"
+#include "seq_add.h"
+#include "h/utils.h"
 
 /*
  * We scan through the folder and act upon all messages
@@ -27,14 +32,12 @@ seq_setunseen (struct msgs *mp, int seen)
      * Get the list of sequences for Unseen-Sequence
      * and split them.
      */
-    if ((cp = context_find (usequence))) {
-       dp = mh_xstrdup(cp);
-       if (!(ap = brkstring (dp, " ", "\n")) || !*ap) {
-           free (dp);
-           return;
-       }
-    } else {
-       return;
+    if (!(cp = context_find (usequence)))
+        return;
+    dp = mh_xstrdup(cp);
+    if (!(ap = brkstring (dp, " ", "\n")) || !*ap) {
+        free (dp);
+        return;
     }
 
     /*