Re: save mail to folder instead of sending
"Marcus C. Gottwald" <[email protected]> Wed, 24 Jun 2026 10:22:43 +0200
| Newsgroups | gmane.mail.mutt.user |
|---|---|
| Message-ID | <[email protected]> |
Ranjan Maitra via Mutt-users wrote (Tue 2026-Jun-23 19:20:04 -0500): > ... I would like to save email to a (Maildir) folder when I press send (instead of actually sending it). How about changing what happens when you press "y" in the composer? (Or use a key other than "y".) Maybe something like a macro that remembers the current value of the $postponed variable, sets $postponed to your desired folder, calls function <postpone-message>, reverts back the value of $postponed? Or maybe a macro that runs "<write-fcc>=foofolder<enter>" followed by "<exit>" (for not actually calling $sendmail), possibly wrapped in temporarily setting the $postpone variable to "no"? Yes, those approaches would probably skip a bunch of checks Mutt performs before sending a message (such as asking if you really want to send with an empty subject). If that's not acceptable, maybe set $sendmail to /bin/false, call <send-message>, answer questions, live with the error message, then run a macro as above? Cheers, Marcus -- Marcus C. Gottwald · <[email protected]> · @mcg:cheers.de