• Stop mutt from saving a copy of outgoing email

    From cjsmall@21:1/5 to All on Mon May 16 11:09:07 2022
    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} user@domain.com

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

    Thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Roger Bell_West@21:1/5 to cjsmall on Mon May 16 18:48:05 2022
    On 2022-05-16, cjsmall wrote:

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

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Rich@21:1/5 to cjsmall on Tue May 17 02:07:28 2022
    cjsmall <jefferysmall@gmail.com> wrote:
    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]

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

    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}" user@domain.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From cjsmall@21:1/5 to Rich on Mon May 16 21:10:18 2022
    On Monday, May 16, 2022 at 7:07:31 PM UTC-7, Rich wrote:
    cjsmall <jeffer...@gmail.com> wrote:
    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]

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

    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}" us...@domain.com

    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)