Discussion:
Stop mutt from saving a copy of outgoing email
(too old to reply)
cjsmall
2022-05-16 18:09:07 UTC
Permalink
Mutt 1.13.2 package on Xubuntu 20.04. (Latest in the archives)

I have a feeling that this will turn out to be an obvious answer, but I didn't see an appropriate option on the mutt manual page.

I have some cron shell scripts that email me notifications regarding system status. I am getting copies of these notifications in my default mbox when they are sent and I would like to stop these copies from being saved. the command in the scripts is:

cat <file> | /usr/bin/mutt -s ${PROGNAME} ***@domain.com

Is there an option to stop saving the outgoing message, or some other trick to suppress this.

Thanks.
Roger Bell_West
2022-05-16 18:48:05 UTC
Permalink
Post by cjsmall
Is there an option to stop saving the outgoing message, or some other trick to suppress this.
Don't use mutt for a thing it's not really good at. Whatever basic
`mail` is already on your system is the right tool for this job.
Rich
2022-05-17 02:07:28 UTC
Permalink
Post by cjsmall
Mutt 1.13.2 package on Xubuntu 20.04. (Latest in the archives)
I have a feeling that this will turn out to be an obvious answer, but
I didn't see an appropriate option on the mutt manual page.
[cut]
Is there an option to stop saving the outgoing message, or some other
trick to suppress this.
Yes, and it is documented in the manual...:

cat <file> | /usr/bin/mutt -e "set copy=no" -s "${PROGNAME}" ***@domain.com
cjsmall
2022-05-17 04:10:18 UTC
Permalink
Mutt 1.13.2 package on Xubuntu 20.04. (Latest in the archives)
I have a feeling that this will turn out to be an obvious answer, but
I didn't see an appropriate option on the mutt manual page.
[cut]
Is there an option to stop saving the outgoing message, or some other
trick to suppress this.
Perfect. Thanks Rich. I was looking for a command line option in the manual
page and I never thought about setting rc file options like this with mutt. Realizing
this opens many more possibilities. Much appreciated.

Loading...