Forwarding a false positive classified message
Michael Kjörling
ba47c4919fb5 at ewoof.net
Thu Jan 4 16:23:42 UTC 2024
On 4 Jan 2024 18:42 +0800, from kai.weber at glorybox.de (Kai Weber):
> From time to time I have to report a falsly classified message to my
> mail provider so that they can adjust their filters. I am looking
> for a way to automate that:
>
> 1. Forward selected mail as attachement to xyz at foo.com
> 2. Set Subject to "reporting false positive -- [original subject]"
> 3. open editor with a prefilled message "Hello there, ..."
> 4. save message to my inbox
>
> I am unsure how to achieve 1-3 with a macro. Is a macro the correct way to do that?
You can set $editor to a script (it will be invoked with as its only
parameter the path to a file containing the message, including headers
if $edit_headers is set) which makes the adjustments you want and then
launches your normal editor or exits with an appropriate status.
formail is useful for reading and modifying mail headers from within a
script.
On another note, please don't use someone's real domain name (like
foo.com) as an example. It's better to use one of the domains reserved
for the purpose; for example, example.com or isp.example. You might
find https://michael.kjorling.se/internet-reserved-names-and-networks/
helpful.
--
Michael Kjörling 🔗 https://michael.kjorling.se
“Remember when, on the Internet, nobody cared that you were a dog?”
More information about the Mutt-users
mailing list