]> granicus.if.org Git - neomutt/commitdiff
Vikas' write_fcc patch.
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 21 Oct 1998 17:17:17 +0000 (17:17 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 21 Oct 1998 17:17:17 +0000 (17:17 +0000)
compose.c

index 00dfe404d9f8aa9f0148650132e50266a1459f84..4b34b8dc67df2aade1250b07c74c828776ee31fd 100644 (file)
--- a/compose.c
+++ b/compose.c
@@ -1071,6 +1071,11 @@ int mutt_compose_menu (HEADER *msg,   /* structure for new message */
       case OP_COMPOSE_WRITE_MESSAGE:
 
        fname[0] = '\0';
+       if (Context)
+       {
+        strfcpy (fname, NONULL (Context->path), sizeof (fname));
+        mutt_pretty_mailbox (fname);
+       }
        if (idxlen)
          msg->content = idx[0]->content;
        if (mutt_enter_fname (_("Write message to mailbox"), fname, sizeof (fname),