Yes, but a general purpose filter don't resolve the problem to manage
multiple <filter>.tab files (or equivalent in new filter program) if you
want also to execute filters based on user or domain (as xmail does very
well).

Why to rewrite completely an external general purpose filter that will have
to do the same processes as xmail already does for users/domains and just
add mandatory filters ?

I think it was more simple to add this feature directly in Xmail !! (and the
code modification is very small, is not it ?)

Francis


-----Message d'origine-----
De : Davide Libenzi [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 12 mars 2001 01:58
À : CLEMENT Francis
Cc : XMail List (E-mail)
Objet : RE: [xmail] 0.68 New Feature : Mandatory Filters Process (based 



On 07-Mar-2001 CLEMENT Francis wrote:
> Hello everybody
> 
> I just added a new Filtering functionnality to XMail : Mandatory Filtering
> 
> Currently, XMail can filter messages based on :
>       the user
>               or, if no user filters .tab file exist
>       the domain [<domain>.tab
>               or, if no user or domain filters .tab files exist
>       default filters [defaultfilter.tab]
> 
> So if you want to define global filters to apply to ALL messages and want
> also to define specific filters (on user or domain) you have to add your
> 'global' filters in each user/domain/default filters you created to be
sure
> they will be executed.
> 
> It can be a problem if you, as me, have many domains and users !!! (cause
of
> errors/omission when coping filters defs from files to files) and want
> systematic execution of certain filters, as av filters, ...
> 
> So, with my patch, you have just to create a new 'mandatory.tab' file in
the
> <MAILROOT>/filters/ directory, content syntax exactly as current filters
> .tab files (see doc), and place in this mandatory.tab file the list of
> filters you want Xmail to execute before any other message processing
> (before user/domain/default filters and others processes).
> 
> Here are the three files modified BASED ON XMail 0.68 :
> 
> 
>    
> Just recompile xmail (use a copy of original xmail 0.68 source codes),
> replace xmail binary (save previous !!!), and run ;-)
> 
> CAUTION :
> - BASED ONLY ON XMAIL 0.68 !!!
> - NOT FULLY DEBUGGED but at this time i had no problems, so test before
> final use and fedd-back any problems !!
> 
> Perhabs Davide, can you implement this feature in new releases, and
> optimize/modify it as well ?

You can easily add some code to Your filter w/o modifying XMail.
I mean that You can put all the intelligence You need inside a general
purpose
filter that check and call everything You wish.



- Davide

Reply via email to