=?utf-8?q?Bob_Mar=C4=8Dan_via_users?= wrote:

>I have a bunch of recipes with the same content, appearing with
>different headers and subjects. I would like to get rid of emails with
>the same content regardless of the header or subject. I tried mdedup,
>but I couldn't find the right parameters. Can anyone help me? TIA
>...
>I haven't been programming for a long time.
>Just some shell script from time to time.

Write a sed script to extract just the body from all your messages and
save the output to numbered files in a new directory. Then use sum (or
better) effectively to compute a digest for all of them. Sort the sums
and look for duplicates. Just a little shell scripting...

I'm assuming you have access to the mail store so you can use it as
input to your script(s). In mailbox format, you'd have to separate on
^From lines, again just some simple shell work. In MH format, messages
are already separated. You might need to learn a few new commands.
-- 
Dave Close, Compata, Irvine CA      "If you trust government, you
[email protected], +1 714 434 7359    obviously failed history class." 
[email protected]               -- John Kennedy (La)

-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to