Problem
Discussions are sometimes started by mailing a few different mailing lists so that all relevant parties have a chance to be aware of a new topic. It’s all nice when people can agree on a single venue to send their replies to, but that doesn’t happen every time.
Case in point, I’m getting 5 copies of a bunch of mails, through
the following debian-*
lists: accessibility, boot, cd, devel,
project.
Needless to say: Reading, or marking a given mail as read once per maildir rapidly becomes a burden.
Solution
I know some people use a duplicate killer at procmail
time (hello
gregor) but I’d rather keep all mails in their relevant maildirs.
So here’s
mark-read-everywhere.pl
which seems to do the job just fine for my particular setup: all
maildirs below ~/mails/*
with the usual cur
, new
, tmp
subdirectories.
Basically, given a mail piped from mutt
, compute a hash on various
headers, look at all new mails (new
subdirectories), and mark the
matching ones as read (move to the nearby cur
subdirectories, and
change suffix from ,
to ,S
).
Mutt key binding (where X is short for cross post):
macro index X "<pipe-message>~/bin/mark-as-read-everywhere.pl<enter>"
This isn’t pretty or bulletproof but it already started saving time!
Now to wonder: was it worth the time to automate that?