summaryrefslogtreecommitdiffstats
path: root/compose.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-21 17:17:17 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-21 17:17:17 +0000
commita44de424b8540d14391bf387945f465877dd92b8 (patch)
tree86584cea7f37ba642a9085e930c01524b4feeef1 /compose.c
parent4e55cc6e2fd54e8921662f1e0167298e91e83a91 (diff)
Vikas' write_fcc patch.
Diffstat (limited to 'compose.c')
-rw-r--r--compose.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/compose.c b/compose.c
index 00dfe404..4b34b8dc 100644
--- 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),