procmail
[Top] [All Lists]

Re[2]: filter duplicate mail

2002-06-14 04:49:13
First, thank you all for your answers and help!

Again, what I was trying to achieve is to filter out duplicate mails
being delivered to ONE person.

Let me give you an example:
(reminder: I do NOT maintain some open mailserver or something like
that but just the mailserver for our own company, so all I am planning
because of internal workflows in our company! I just have to get the
spent time for the useres at a min - I certainly do NOT want to steal
some users their well deserved mails ;-))

CEO is participant on a list called 'critical_issues'
SYSADMIN is does also participate in this list
and several others...

So now, sales-person sends a mail to SYSADMIN because some demosystem
was down. Also he includes for informational reasons the list
critical_issues as CC. So now, of course ALL prticipants in
critical_list shall recieve the mail. But in this case SYSADMIN get
the mail TWICE, which causes a extra time to look, if this is REALLY
the same mail before deleting it safely and so on.
No problem if this happens once. Now imagine some person with REALLY
high traffic! If such a person recieves 300mails per day + 200 double
mails from the lists... YACK! Much time and much money is spent for
nothing...
You understand what I mean?

So I do serch a recipe, which filters out the duplicates for EACH
person.

I'm clear about that recipe:
              :0 Wh: msgid.lock
              | formail -D 8192 msgid.cache

but as I understand, it has to be installed once for EVERY user,
right? So if I have a thousand users, I would have to copy this a
thousand times, just to achive the same thing a thousand times. There
must be some easier way...

This looks good, but - again - I'm not (at least not yet ;-)) a
procmail-specialist.

PSE> [in /etc/procmailrc, or a script includerc'd into it]

PSE> :0 Wh: msgid.$LOGNAME.lock
PSE> | formail -D 8192 msgid.$LOGNAME.cache

PSE> This would manage a separate messageid cache for each user.

Can I use this in the global procmail-File, since it uses a per-user
cache?
Should work for me, shouldn't it?

At least I will try it out on a test-server next week.

If this works, your mails/discussion would have been a great help!!

Thanks again and have a nice weekend!

Regards,
Kai


_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>