On 2023-07-04 13:41, Patrick Shanahan wrote:
* Carlos E. R. <robin.listas@telefonica.net> [07-04-23 06:50]: [...]
No, it is simply that the Message-ID is not enough criteria to determine a duplicate in my case.
Now, and for a different reason that no procmail recipe can detect, I have, in a folder that is not for input, several thousands of duplicates, with different "X-Spam-Status" content.
I need some postprocess method to filter a folder with 700000 mails and thousands of duplicates with a method similar to what the thunderbird plugin does. Procmail doesn't do this.
Alternatively, I need a method to erase the "X-Spam-Status" header in many thousand of emails.
I am sure procmail/formail can do that but you will have to craft the recipie
some possible examples to use: https://procmail.rwth-aachen.narkive.com/zC2aChER/using-formail-to-remove-he... https://www.linuxquestions.org/questions/linux-server-73/procmail-removing-h...
Thanks, I will have another look at formail. Seems -x or -X does it. Not my first rodeo with it, but removing headers is new to me. Will have to be tonight or tomorrow, though. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)