On 2011-11-11, Cameron Simpson <[email protected]> wrote:
> On 11Nov2011 12:21, Martin Kj???r J???rgensen <[email protected]> wrote:
>| Is there a way to make mutt listen or wait for msmtp succeeding or
>| failing, and react accordingly? (or any other MTA for that matter)
>
> Another method is to write a tiny shell script that calls
> sendmail/msmtp/etc. If it fails, file the message in your "unsent"
> folder.
And then you could queue up an "at" or "cron" job to try to resend
unsent e-mails a few hours later. And then you could notify the user
if it fails after N tries in M days. And then... pretty soon you've
written a really crappy MTA. :)
IMO, if you don't want to wait to see if the send failed/succeeded,
you shouldn't be using msmtp -- you should be using postfix or one of
its pals. Except for sendmail. sendmail is nobody's pal.
--
Grant Edwards grant.b.edwards Yow! Are we THERE yet?
at My MIND is a SUBMARINE!!
gmail.com