Hi Eddie,

EC> Sometimes I get from some Account the eMail double. So I need to
EC> issue the 'kill duplicate' command every now and then. It's a bit
EC> work as I don't want to use 'kill dupes in all folder'. Some folders
EC> have duplicates that should not be deleted.

EC> So I'm looking for the possibility of let my Filter (or regex) do the
EC> work. This is my idea:

EC>   when a eMail comes in and is filtered to the right folder the next
EC>   filter (or regex) would then check if this one exist already. If
EC>   *yes* delete it if *no* leave it as is.

EC> Does anyone have an Idea if this will work??

Yes, an idea, but I didn't test or try it.

You'll need two filters.

Filter 1:

   extracts message ids from every single incoming mail into a
   text file (append to an existing file using a template with
   regexp to get message id)

   This file then looks like:

   ,----- [ Message-IDs in file ]
   | Message-ID: <[EMAIL PROTECTED]>
   | Message-ID: <[EMAIL PROTECTED]>
   | Message-ID: <[EMAIL PROTECTED]>
   | Message-ID: <[EMAIL PROTECTED]>
   | [...]
   '-----

   But this file can get large...
   
Filter 2:

   is a selective download-filter that checks the headers and kills
   mails on server if message id was found in file.

I can't say anything about performance etc. but actually this
filtering seems like a job for your mail server. I wouldn't do it with
TB!.

-- 
HTH + best regards, Carsten

The Bat! (v1.54 Beta/15) Business
Windows NT 5.0 (Build 2195) Service Pack 2



-- 
________________________________________________________
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]
Latest Vers: 1.53d
FAQ        : http://faq.thebat.dutaint.com 

Reply via email to