]> granicus.if.org Git - mutt/commitdiff
Undoing the previous patch. It was junk, and may ruin files.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 13 Mar 2002 23:43:41 +0000 (23:43 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 13 Mar 2002 23:43:41 +0000 (23:43 +0000)
attach.c

index 3d78708e582463e487772bd016574b38abd6229e..5921ddf209d264e0c8a2581c49ce2501baed3af6 100644 (file)
--- a/attach.c
+++ b/attach.c
@@ -762,7 +762,7 @@ int mutt_save_attachment (FILE *fp, BODY *m, char *path, int flags, HEADER *hdr)
       fseek (fp, m->offset, 0);
       if (fgets (buf, sizeof (buf), fp) == NULL)
        return -1;
-      if (mx_open_mailbox (path, (flags == M_SAVE_APPEND ? M_APPEND : M_NEW) | M_QUIET, &ctx) == NULL)
+      if (mx_open_mailbox(path, M_APPEND | M_QUIET, &ctx) == NULL)
        return -1;
       if ((msg = mx_open_new_message (&ctx, hn, is_from (buf, NULL, 0, NULL) ? 0 : M_ADD_FROM)) == NULL)
       {