]> diplodocus.org Git - nmh/blobdiff - sbr/m_draft.c
Move the termsbr code into the libmh library, where it belongs.
[nmh] / sbr / m_draft.c
index b0168e2ec43ab3532cdaefca1c7b568c1ffc308a..9d28606c7c99cc42ba942724adff5cda0ea32200 100644 (file)
@@ -2,15 +2,13 @@
 /*
  * m_draft.c -- construct the name of a draft message
  *
- * $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>
-#include <errno.h>
+#include <h/utils.h>
 
 
 char *
@@ -18,7 +16,6 @@ m_draft (char *folder, char *msg, int use, int *isdf)
 {
     register char *cp;
     register struct msgs *mp;
-    struct stat st;
     static char buffer[BUFSIZ];
 
     if (*isdf == -1 || folder == NULL || *folder == '\0') {
@@ -40,7 +37,7 @@ m_draft (char *folder, char *msg, int use, int *isdf)
     if (chdir (buffer) == -1)
        adios (buffer, "unable to change directory to");
 
-    if (!(mp = folder_read (folder)))
+    if (!(mp = folder_read (folder, 1)))
        adios (NULL, "unable to read folder %s", folder);
 
     /*