On Wed, Jul 27, 2016 at 10:40:22PM -0500, Derek Martin wrote: > On Wed, Jul 27, 2016 at 03:43:40PM +0100, Ian Collier wrote: > > On Wed, Jul 27, 2016 at 02:46:18AM +0200, Vincent Lefevre wrote: > > > Mutt should store the message to the Sent folder *after* running > > > sendmail and *only* if sendmail returned with a zero exit status. > > > > What happens if mutt is unable to store the message because the IMAP > > server is down or the partition with the Sent folder is out of space? > > It would obviously fail to record the message. So?
So, in the current situation Mutt is recording the message first, then sending it. If the record fails, Mutt can report this and return to the options screen. In the proposed situation, Mutt sends the message first and then tries to record it. If the latter action fails, the mail is lost *or* Mutt has to have a new menu screen that says "saving the outgoing message failed, what now?" This discussion originated because in certain error conditions Mutt saves a duplicate message. The proposed solution to this (that Mutt shold send the message first, then record it) would mean that in certain (other) error conditions, Mutt fails to record the message at all. One of these consequences is worse than the other. imc
