diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-13 01:53:03 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-01-13 01:53:03 +0000 |
commit | 822535edf4b160d9f023fd2026c824ef061f4ea5 (patch) | |
tree | d2bc1f73f47c95b140c4c0ea0be42b70f26880fe /send.c | |
parent | a983c11963da7df7c9e4a99e54084a2cf4a1b176 (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.c | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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); |