Re: Can Bounce command be used from the command line?
On Tue, Jun 08, 2021 at 09:06:35AM +1000, Cameron Simpson wrote: On 07Jun2021 15:49, Jon LaBadie wrote: Is there a way to use mutt from the command like to "Bounce" a received message. I had hopes for the '-e "command"' option, but that is limited to configuration commands. The usual approach is to "push" the requisite keystrokes, which then get played. However, to "bounce" a message from the command line it is far more expedient to just go: sendmail -oi addr addr addr ... < message which is all mutt will be doing. Drops the same messages straight into the local mail system for deliver to the specified addrs. On Tue, Jun 08, 2021 at 09:08:36AM +1000, Cameron Simpson wrote: ... I thought procmail had some directive to 'bounce" messages? Haven't used it for a while. Cheers, Cameron Simpson In the end I used the procmail "forward" directive (!). The semantics of "forward" vs "bounce" caused me to dismiss that directive. Mutt's (and my) meaning of forward is to include the message as part of the body of another message. Procmail's forward is like mutt's bounce in that the message is delivered to another address with the body is unchanged and only headers are added. Thanks for the pointer causing me to look again (i.e. test it). -- Jon H. LaBadie j...@labadie.us 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)
Re: Can Bounce command be used from the command line?
On 08Jun2021 09:06, Cameron Simpson wrote: >The usual approach is to "push" the requisite keystrokes, which then >get played. Example from one of my scripts: mutt -f "$folder" -e "push '$pattern'" I still recommend just using sendmail directly though. I thought procmail had some directive to 'bounce" messages? Haven't used it for a while. Cheers, Cameron Simpson
Re: Can Bounce command be used from the command line?
On 07Jun2021 15:49, Jon LaBadie wrote: >Is there a way to use mutt from the command like to "Bounce" a >received message. I had hopes for the '-e "command"' option, but >that is limited to configuration commands. The usual approach is to "push" the requisite keystrokes, which then get played. However, to "bounce" a message from the command line it is far more expedient to just go: sendmail -oi addr addr addr ... < message which is all mutt will be doing. Drops the same messages straight into the local mail system for deliver to the specified addrs. Cheers, Cameron Simpson
Can Bounce command be used from the command line?
Some messages I receive my wife should see also. Rather than "Forward" ("f" command) them, I typically "Bounce" ("B" command) them to her. I would like to automate this procedure for certain sender addresses so I'm developing a procmail recipie. Is there a way to use mutt from the command like to "Bounce" a received message. I had hopes for the '-e "command"' option, but that is limited to configuration commands. Thanks, Jon -- Jon H. LaBadie j...@labadie.us 11226 South Shore Rd. (703) 787-0688 (H) Reston, VA 20190 (703) 935-6720 (C)