On Tue, Jun 23, 2026 at 07:20:04PM -0500, Ranjan Maitra via Mutt-users wrote:

> TO not get into a long story, I would like to save email to a
> (Maildir) folder when I press send (instead of actually sending
> it). Is it possible to do so using mutt?

I believe you can set the "sendmail" configuration variable to point
to a script which can do anything you like. You "only" have to make
sure the script takes the same command line arguments as sendmail (or
postfix).  Something like the following:

cat msg | my_send_mail -oi -f ENVELOPE_SENDER RECIPIENT [RECIPIENT ...]

You are free to ignore the arguments ;-)

I guess I *am* curious what you intend to do with the message
afterwards.

-- 
Ian

Reply via email to