summaryrefslogtreecommitdiffstats
path: root/sendlib.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1998-10-27 09:41:13 +0000
committerThomas Roessler <roessler@does-not-exist.org>1998-10-27 09:41:13 +0000
commit06208d7a67fca765d82919a586ceb5ad2a671f73 (patch)
tree512f9b54f00982227a60c2afbb20c95fe342e3d7 /sendlib.c
parent015b86fd14297a6c1b1d9b6f10529edc96dc4d0a (diff)
Preserve FCC headers when postponing. From Vikas.
Diffstat (limited to 'sendlib.c')
-rw-r--r--sendlib.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sendlib.c b/sendlib.c
index e4401bcc..3fd67762 100644
--- a/sendlib.c
+++ b/sendlib.c
@@ -1893,7 +1893,7 @@ ADDRESS *mutt_remove_duplicates (ADDRESS *addr)
return (top);
}
-int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid, int post)
+int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid, int post, char *fcc)
{
CONTEXT f;
MESSAGE *msg;
@@ -1942,6 +1942,12 @@ int mutt_write_fcc (const char *path, HEADER *hdr, const char *msgid, int post)
*/
if (post && msgid)
fprintf (msg->fp, "X-Mutt-References: %s\n", msgid);
+
+ /* (postponment) save the Fcc: using a special X-Mutt- header so that
+ * it can be picked up when the message is recalled
+ */
+ if (post && fcc)
+ fprintf (msg->fp, "X-Mutt-Fcc: %s\n", fcc);
fprintf (msg->fp, "Status: RO\n");