]> diplodocus.org Git - nmh/blobdiff - sbr/seq_setprev.c
fmt_rfc2047.c: Move interface to own file.
[nmh] / sbr / seq_setprev.c
index d336e2a988682e1d109cd29c07f2a964a4bb5aec..176a3718d0f56183a09062f9bcadfe65d0750429 100644 (file)
@@ -1,14 +1,15 @@
-
-/*
- * seq_setprev.c -- set the Previous-Sequence
+/* seq_setprev.c -- set the Previous-Sequence
  *
  * 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>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "context_find.h"
+#include "brkstring.h"
+#include "seq_add.h"
+#include "h/utils.h"
 
 /*
  * Add all the messages currently SELECTED to
@@ -27,14 +28,12 @@ seq_setprev (struct msgs *mp)
      * Get the list of sequences for Previous-Sequence
      * and split them.
      */
-    if ((cp = context_find (psequence))) {
-       dp = mh_xstrdup(cp);
-       if (!(ap = brkstring (dp, " ", "\n")) || !*ap) {
-           free (dp);
-           return;
-       }
-    } else {
-       return;
+    if (!(cp = context_find(psequence)))
+        return;
+    dp = mh_xstrdup(cp);
+    if (!(ap = brkstring(dp, " ", "\n")) || !*ap) {
+        free(dp);
+        return;
     }
 
     /* Now add all SELECTED messages to each sequence */