I would like to use mutt continuously, allow me to explain what I mean with an example. My typical workflow is this:
- Open up
mutt - Compose a message
- Press
yto confirm send action - ... wait!
- Compose another message
- Press
yto confirm send action - ... wait!
I am connected to my Gmail over IMAPS.
The problem is that often I need to reply to many messages in sequence and the pattern above is obviously unacceptable because the program does not return control to me whilst it is trying to deliver the message in the background. My time is valuable and I can't be waiting for a machine to do its job after I expressed my intent (to send) to it already, can I?
- Can I configure
muttso that it does the message delivery in the background, immediately returning control to me to compose more messages?
My current workaround to this is running mutt within a tmux session with multiple windows, all running tmux and switching to another window to compose the next message as the previous is being delivered. This is a bad kind of "hack", I say.
My settings:
- smtp_url="smtps://[email protected]:465/"
# Gmail configuration
set folder = "imaps://imap.googlemail.com:993"
set spoolfile = "imaps://imap.googlemail.com:993/[Gmail]/All Mail"
set postponed = "imaps://imap.googlemail.com:993/[Gmail]/Drafts"
# set record = "imaps://imap.googlemail.com/[Gmail]/Sent Mail"
set record = "/home/tinosino/Sent_Messages.txt"
set realname = "Tino Sino"
set imap_user = "[email protected]"
set imap_pass = ""
set smtp_url = "smtps://[email protected]:465/"
set smtp_pass = ""
set from = "[email protected]"
set sort = threads
set editor = "vim"
What I have tried already:
- I set
sendmail_wait = -1but the delay in sending a message remains
sendmail_waitto-1.muttworkflow? (e.g. press reply inmutt, inside an IMAP folder and offload tosendmailperhaps?) Recommendations as to which MTA to use? Sample online .muttrc file with that MTA configured?:set ?smtp_urlto check, I think. I never figured out how to configureeximorsendmailfor multiple account sending so I just usemstmpwith the packagedmsmtpQscript, although it's a bit lacking in functionality (in particular since it's not a daemon you have to check for and retry failed messages yourself).sendmail_waitdoesn't do anything when you are not using$sendmail. Instead, you are using mutt's very basic built-in SMTP client, and I don't think that supports background send. My comment said to "use a separate queuing MTA and then setsendmail_wait", meaning the first step is required for the second.