diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-29 18:21:49 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1999-12-29 18:21:49 +0000 |
commit | 648be2af1936af6ccd154ee74a2376c6e1ab930e (patch) | |
tree | 20ed899e63f582bbe1509f79ae925dfa185f1959 /send.c | |
parent | e6a9875e2a8695385f2fe81c0833318f077c9870 (diff) |
Don't use IMAP folders for FCCs when sending messages in batch mode.
This is _not_ Brendan's patch, which may be included later.
Diffstat (limited to 'send.c')
-rw-r--r-- | send.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -1236,6 +1236,7 @@ ci_send_message (int flags, /* send mode */ } } + mutt_update_encoding (msg->content); if (! (flags & (SENDMAILX | SENDBATCH))) @@ -1342,6 +1343,22 @@ main_loop: /* save a copy of the message, if necessary. */ mutt_expand_path (fcc, sizeof (fcc)); + + + /* Don't save a copy when we are in batch-mode, and the FCC + * folder is on an IMAP server: This would involve possibly lots + * of user interaction, which is not available in batch mode. + * + * Note: A patch to fix the problems with the use of IMAP servers + * from non-curses mode is available from Brendan Cully. However, + * I'd like to think a bit more about this before including it. + */ + +#ifdef USE_IMAP + if ((flags & SENDBATCH) && fcc[0] && mx_is_imap (fcc)) + fcc[0] = '\0'; +#endif + if (*fcc && mutt_strcmp ("/dev/null", fcc) != 0) { BODY *tmpbody = msg->content; |