muttmua / mutt

The Mutt E-Mail Client github mirror. Please use gitlab for issues/pull requests.
https://gitlab.com/muttmua/mutt
Other
210 stars 25 forks source link

Feature request - send without editing a draft message #4

Open us91 opened 3 years ago

us91 commented 3 years ago

With the -H switch, a draft message can be sent, but only after being edited (even when -E switch is not provided). It would be great if there is a way to take a draft message with either -H or a new flag, but directly send it out. This feature is requested to facilitate sending out several already composed messages with all the required fields embedded, without user intervention.

us91 commented 3 years ago

Never mind, I found a solution:

echo | mutt -H draft.msg

us91 commented 3 years ago

The above workaround only works when there is no attachment. When attachments are included via

Attach: filename

lines, then the attachment is not properly processed. So I am re-opening this feature request.

raforg commented 2 years ago

Use the -a option to add attachments. That works with -H. I don't think an Attach: header means anything.

This issue should be closed.

us91 commented 2 years ago

Attach: header actually attach files. This works currently. This has the benefit of enabling another way of attaching files, which I found very convenient. I use it in situations where I compose emails based on templates, and the attachment file is part of the template. So I still hope the feature request can be considered.

raforg commented 2 years ago

Thanks for the correction. I didn't know about that.

But mutt is in maintenance phase, and this request probably won't happen. What you want doesn't work in neomutt either, but you might have better luck asking for the feature to be added there (https://github.com/neomutt/neomutt).