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

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.

-- 
---- Fred Smith -- [email protected] -----------------------------
                    The Lord detests the way of the wicked 
                  but he loves those who pursue righteousness.
----------------------------- Proverbs 15:9 (niv) -----------------------------

Reply via email to