Hello bats,

What about a function filter?
That would be a filter that calls an template and looks for the
result. This could be something like this:
'nomatch': filter does not match
'match': filter matches

Despite of that it should be possible to return a folder where the
mail should get moved to or some other useful settings (it would be
best, of course to allow all regular filter actions to be (un)set in
the function filter).

A function filter could be something easy like this:
----->8--------------------------------------------------------
%IF:'%TOADDR'='[EMAIL PROTECTED]':'%_result=match'%-
%IF:'%ABTOGROUP'='friends':'%_folder="moveto: $Known$\friends"'%-
...
%_result
%_folder
...
----->8--------------------------------------------------------
(I know that there is no %ABxxxGROUP macro, which is as bad as that
there is %ABxxxEMAIL only for the primary address. Both are problems
due to macro design, because %ABxxxyyy can only return a single
string, no list...)

or (and that's what I'm thinking of) powerful python code (Pyxie
plugin).
With that you could group a lot of your regular filters into
a single one or simulate a known filter, that puts specific addresses
/ AB groups into subfolders.

Good for this would be to have a macro for creating folders, so the
filter template could create a new folder if it needs to (eg message
from [EMAIL PROTECTED] who's in AB group 'xyz' which should be moved to
subfolder 'xyz\<contactname>' and it's the first message from/to
[EMAIL PROTECTED]).
Don't know if there are other folder management macros other than
%FOLDERCREATE that could be useful and even this one is not very
necessary, as you could create it by hand or with Python code (by
physically creating the folder).


Just want to spread the idea and hope that the new filtering system
will allow something like that.


[I already posted this on this list
(<mid:[EMAIL PROTECTED]>), but hidden in another
thread]


-- 
shinE!
http://www.thequod.de ICQ#152282665
GnuPG/PGP key: http://thequod.de/danielhahler.asc

Using The Bat! v2.04.7 on Windows XP 5.1 Build 2600 Service Pack 1
with POPFile 0.20.1 and avast Mar2004 (4.1.357).


________________________________________________
Current version is 2.04.7 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to