]> diplodocus.org Git - nmh/blobdiff - sbr/m_draft.c
lock_file.c: Compiler warns of unused isnewlock if HAVE_LIBLOCKFILE.
[nmh] / sbr / m_draft.c
index d3c5e7a729c42f80408cc77b71cef7f6f42e67b2..683af25cc6d85000988f3476b8813195f3f7592a 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * m_draft.c -- construct the name of a draft message
+/* m_draft.c -- construct the name of a draft message
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -9,6 +7,7 @@
 
 #include <h/mh.h>
 #include <h/utils.h>
+#include "m_maildir.h"
 
 
 char *
@@ -22,10 +21,10 @@ m_draft (char *folder, char *msg, int use, int *isdf)
        if (*isdf == -1 || (cp = context_find ("Draft-Folder")) == NULL) {
            *isdf = 0;
            return m_maildir (msg && *msg ? msg : draft);
-       } else {
-           folder = path (*cp == '+' || *cp == '@' ? cp + 1 : cp,
-                   *cp != '@' ? TFOLDER : TSUBCWF);
        }
+
+        folder = path (*cp == '+' || *cp == '@' ? cp + 1 : cp,
+                *cp != '@' ? TFOLDER : TSUBCWF);
     }
     *isdf = 1;