Re: outbox, postponed, IMAP & bad decisions
Emil Sit <sit <at> LCS.MIT.EDU>
2002-09-04 13:27:20 GMT
> And the "stupidest bug" award goes to the guy who put a:
> mutt_write_fcc (fcc, msg, NULL, 0, NULL);
> into send.c. Behold, there is absolutely no test for the return value. It even
> doesn't have anything to do with IMAP.
You can always try the following patch. It is also available
from the BTS under bug #265 but you have to wade through a
bunch of spam to get to it. (Perhaps bugs.guug.de should filter
messages with spamassasin or bogofilter before adding messages
to bug logs.)
Index: send.c
===================================================================
RCS file: /home/roessler/cvs/mutt/send.c,v
retrieving revision 2.77.2.1
diff -u -r2.77.2.1 send.c
--- send.c 2002/01/30 22:50:59 2.77.2.1
+++ send.c 2002/03/20 19:11:36
<at> <at> -1529,7 +1529,21 <at> <at>
* message was first postponed.
*/
msg->received = time (NULL);
- mutt_write_fcc (fcc, msg, NULL, 0, NULL);
+ if (mutt_write_fcc (fcc, msg, NULL, 0, NULL) < 0)
+ {
+ /* sleep for error message from things like mx_open_mailbox */
+ mutt_sleep (2);
+ if (! (flags & SENDBATCH))
+ {
+ mutt_error _("Could not write Fcc!");
(Continue reading)