procmail
[Top] [All Lists]

Re: Simple recipe to move uninteresting threads in separate mailbox

2006-12-31 10:46:21
At 09:01 2006-12-31 +0100, M. Fioretti wrote:
On Sat, Dec 30, 2006 14:08:00 PM -0800, Professional Software
Engineering (PSE-L(_at_)mail(_dot_)professional(_dot_)org) wrote:

At 18:02 2006-12-30 +0100, M. Fioretti wrote:

<455442DB(_dot_)3030502(_at_)unix(_dot_)sbg(_dot_)ac(_dot_)at>
<20061115131249(_dot_)GA4511(_at_)masterpost>
<20061203175823(_dot_)GL3261(_at_)aragorn(_dot_)home(_dot_)lxtec(_dot_)de>

etc....

that file will be emptied every two weeks by a cron job.

Er, that seems unfortunate - the messages you'd deprecated the day
before the cron job won't have any effect on future messages because
they'll be purged because of an arbitrary 2 week cycle.

I am aware that there will be this effect. I am fine with it because:

1) 99.99% of the threads I've endured where I would have used this
   macro lasted (much) less than ten days

Consider this scenario:

You start the process on the 1st of January, and that's the origin for your 
cron cycle.  You add ids for threads during the next couple of weeks.
On the 14th, some annoying troll posts on a list, and boom, there's a bunch 
of idiotic replies.  You set the troll messageid into your ignore list.

At midnite on the morning of the 15th, your cron job runs, PURGING all of 
the prior ignore ids.  Net result: even though the troll thread lasts less 
than ten days, the morning after it started, you're still seeing the troll 
posts because of the arbitrary 2 week purge cycle.

What you more likely want is a 2 week _sliding_window_.  the formail 
messageid cache provides that, though the cache isn't tied to a duration - 
just a cache file size.  If you get a lot of messages, the duration of the 
window is shorter (but still sliding), and if you get few, it's 
longer.  Either way, the (typical) goal of not having a file that grows to 
approach infinity is achieved.

---
  Sean B. Straw / Professional Software Engineering

  Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
  Please DO NOT carbon me on list replies.  I'll get my copy from the list.


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail