* du yang <duyang....@gmail.com> [11-11-2011 20:29:14 +0800]:

> On Friday 11/11/11 20:20:36 CST, du yang wrote:
> > On Friday 11/11/11 19:21:16 CST, Martin Kjær Jørgensen wrote:
> > > Hey 
> > > 
> > > 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)
> > > 
> > 
> > Please check the mutt parameter sendmail_wait. If set, mutt will be waiting
> > until mail sent successfully or failed. But it is not convenient that you
> > have to wait for mail being sent and have to open another mutt program to
> > view mails or send another mail.

I dont mind multiple mutt windows. They load fast enough and I have
enough screenspace not to care.

> > > In my current setup I have to monitor msmtp logs to be sure that the 
> > > mail from mutt is actually sent. For instance, mutt doesnt block or
> > > throw errors if msmtp TLS fails.
> > > 
> > Maybe you have interests on this msmtp notify program. It help to monitor 
> > the msmtp
> > log file and send notify with libnotify.
> > 
> 
> Sorry for missing the link.
> http://code.google.com/p/msmtp-notify
> 
> Just start it in background on system startup. It is a simple program
> written in C, so don't worry about resource usage.

Thanks for the tips. I think i go with the sendmail_wait=0 option.
Appending '-d' to my msmtp makes mutt+msmtp more informative when
something bad occurs which is more important to me than having a few
more windows.

I generally dont like popups from libnotify or from anything else,
but thanks for the tip anyway. :-)

> -- 
> oooO:::::::::
> (..):::::::::
> :\.(:::Oooo::
> ::\_)::(..)::
> :::::::)./:::
> ::::::(_/::::


Reply via email to