Re: [Mutt] #3351: Mails sent via mutt's batch mode don't end up in
#3351: Mails sent via mutt's batch mode don't end up in $record
--------------------+-------------------------------------------------------
Reporter: josh | Owner: mutt-dev
Type: defect | Status: new
Priority: major | Milestone:
Component: mutt | Version: 1.5.20
Keywords: |
--------------------+-------------------------------------------------------
Comment(by josh):
Poking around in mutt's source code, I found this in send.c:
{{{
/* 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
}}}
Note that in my case, IMAP requires no user interaction, since it occurs
via an SSH tunnel. I have no problem with having this simply fail if IMAP
requires interaction (such as a password), as long as it fails in such a
way that the message doesn't get sent either, and mutt returns an error
code.
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3351#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent