summaryrefslogtreecommitdiffstats
path: root/send.c
diff options
context:
space:
mode:
authorThomas Roessler <roessler@does-not-exist.org>1999-01-13 01:53:03 +0000
committerThomas Roessler <roessler@does-not-exist.org>1999-01-13 01:53:03 +0000
commit822535edf4b160d9f023fd2026c824ef061f4ea5 (patch)
treed2bc1f73f47c95b140c4c0ea0be42b70f26880fe /send.c
parenta983c11963da7df7c9e4a99e54084a2cf4a1b176 (diff)
A first take at adding a mixmaster front-end to mutt. Don't worry,
it's optional. ;-)
Diffstat (limited to 'send.c')
-rw-r--r--send.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/send.c b/send.c
index c29d71d0..c9fded20 100644
--- a/send.c
+++ b/send.c
@@ -799,7 +799,13 @@ static int send_message (HEADER *msg)
if ((tempfp = safe_fopen (tempfile, "w")) == NULL)
return (-1);
- mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0);
+#ifdef MIXMASTER
+ mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0, msg->chain ? 1 : 0);
+#endif
+#ifndef MIXMASTER
+ mutt_write_rfc822_header (tempfp, msg->env, msg->content, 0, 0);
+#endif
+
fputc ('\n', tempfp); /* tie off the header. */
if ((mutt_write_mime_body (msg->content, tempfp) == -1))
@@ -816,6 +822,11 @@ static int send_message (HEADER *msg)
return (-1);
}
+#ifdef MIXMASTER
+ if (msg->chain)
+ return mix_send_message (msg->chain, tempfile);
+#endif
+
i = mutt_invoke_sendmail (msg->env->to, msg->env->cc, msg->env->bcc,
tempfile, (msg->content->encoding == ENC8BIT));
return (i ? -1 : 0);