> Do you have $sendmail_wait set to < 0? Looking at the source, if the > value is < 0, mutt will return an EX_OK right away, resulting in the > "Mail sent" message.
Yes, I had set it to -1 to avoid waiting for the sending process to be completed. I had not realised (but perhaps I should had to) that that would mean that errors during sending would go unnoticed. > For the (default) case where $sendmail_wait == 0, it should be pretty > bullet proof. I myself have used msmtp for a while and it _has_ > returned an error message in the case where the mail could not be sent. Yes I just tried it with that variable to zero, and it works as you described, but it still entails waiting for the mail to be sent. My preferred solution is to start Du Yang's script before mutt (I start mutt with a wrapper script, so this is simple to do), and then I get warned if the sending process borked. Thanks to both! -- Óscar Pereira | https://erroneousthoughts.org Rules of Optimisation: Rule 1: Don't do it. Rule 2 (for experts only): Don't do it yet. -- M.A. Jackson
pgpKbhLYmXyZw.pgp
Description: PGP signature