On Fri, Jun 09, 2017 at 09:35:19AM -0400, Fred Smith wrote:
> On Sat, Jun 10, 2017 at 04:42:42AM +0800, Yubin Ruan wrote:
> > Hi mutt users,
> > 
> > Hmm...do any of you have any solution for sending emails in background
> > without hanging up your mutt? I am getting annoyed by the delay coming with
> > mutt's default smtp. I would like to have a sendmail script that would queue
> > up my all my emails from mutt and send it at proper time and if it fails, it
> > will notify me with a failure status or failure messages. 
> > 
> > Currently I have a msmtp set up, with its .msmtprc like this:
> > 
> >     account default 
> >     host smtp.gmail.com
> >     from <mysendaddresshere>
> >     auth on
> >     port 587
> >     user <myaccounthere>
> >     password <mypasswordhere>
> >     protocol smtp
> >     logfile ~/.msmtp.log
> >     tls on
> >     tls_starttls on
> >     tls_nocertcheck
> > 
> > and my .muttrc like this:
> > 
> >     set sendmail="/usr/bin/msmtp"
> >     # don't wait for msmtp to complete. Let it run at background
> >     set sendmail_wait=-1
> > 
> > But there some problems with this solution:
> > 
> >     1. the "sendmail_wait=-1" doesn't seems work?
> >     2. when I cutt off my network connection, mutt cannot sendmail anymore.
> >     It just hang up there infinitely and I have to Ctrl-C... 
> > 
> > Any suggestion?
> 
> my .muttrc contains this:
> 
> #set sendmail="/usr/sbin/sendmail -oem -ob"
> set sendmail_wait=-1

How do you configure your /usr/bin/sendmain? It seems like that without
`sendmail' that sendmail_wait does not take effect and I still get delays when
sending mails.

/Yubin
 
> While I am now using a full-time connection (cable modem) years ago
> I was on a dialup system, and I don't think I've changed those settings
> since then, and it all just magically worked.
> 
> I certainly don't get long delays when sending mail from mutt. It
> seems to just queue them up, though sending a mail from mutt also seems
> to trigger sendmail to connect and send, mutt doesn't make me wait
> while it does that.

Reply via email to