On Thursday, May 23, 2002, Jon Lawrance wrote...

> I have the following in the subject filter section:

> Access World - Development: (US|Other)

Are  you  just  trying to filter each country into it's own folder? Or
are  you  filtering  only certain countries into their own folder, and
the rest into a big central folder?

If the later, then you can just create a rule based on the subject for
the  countries  you  want  to  appear  in  their  own folder, and then
underneath  (order  is very important), you put the catch all for that
subject line. If the former, then you have to create a filter for each
country.  Procmail  (I use a lot on linux) allows you to do some nifty
filtering using OR statements... like this:

:0:
* ^Subject:.\/Access World - Development:\/(US|Other)
$MATCH

This  would  end  up dumping anything that matched the US country into
the  folder  "Access  World  -  Development: US" and anything matching
Other into "Access World - Development: Other". There are some further
filtering  you  can  do on it so you can get it to only go into US, or
Other folders if you didn't want the full subject. I doubt that filter
would work right, it's a hashed attempt at making one ;)

Does TB! support this kind of filtering in it's regexp coding?

-- 
Jonathan Angliss
([EMAIL PROTECTED])



________________________________________________________
Current Ver: 1.60m
FAQ        : http://faq.thebat.dutaint.com 
Unsubscribe: mailto:[EMAIL PROTECTED]
Archives   : http://tbudl.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
TBTech List: mailto:[EMAIL PROTECTED]
Bug Reports: https://bt.ritlabs.com

Reply via email to