Hellow tbdev arroba thebat.dutaint.com
Now i'm working in the new version of my plugin, well, i'm
developing a filters language, the details are:
Filters language.
-----------------
The filter have 4 components:
- record: snder, sbjct, mbody, attch, headr or rwmsg.
- have the word?: = to say yes, - to say not.
- type of string: " for complete, # for partial, % for regular
expression.
- string to search: the word that you are looking for.
for example:
a. the subject must constain the complete word: 'porn'.
sbjct="porn"
b. the raw message have not the partial word: 'full'.
rwmsg-#full#
c. the header have not the regular expression: 'b.b'.
headr-%b.b%
Logical language.
-----------------
You can use filters mixed with '(', ')', or '+', and '*'.
example:
(headr="mail.porn.com"+sbjct=%fre+%)*rwmsg-#suscribe#
reading the example: (if the header constain the complete word
mail.porn.com OR in the subject the plugin can find the regular
expression fre+) AND the header does not contains the partial word
suscribe.
Considerations.
---------------
The case unsensitive words: 'snder', 'sbjct', 'mbody', 'attch',
'headr', 'rwmsg', are reserved words and can't be used in "string to
search"
example:
sbjct="my headr is good" <---- not valid
Tip: you can use regex's to search this strings:
sbjct=%my hea{1}dr is good% <---- valid to search the same.
The separators '"', '%', '#' can't be used in the same "string to
search".
Example:
sbjct=#mi#string# <---- not valid
sbjct=#mi%string# <---- valid
the simbols : '(', ')', '+', '*', '=', '-' can be used in "string to
search"
Example:
sbjct="get porn (free)" <---- valid
Warning: Spaces out of strings *are not* valid!.
example:
(headr = "mail.porn.com"+sbjct = %fre+%) <-- not valid
(headr="mail.porn.com" + sbjct=%fre+%) <-- not valid
( headr="mail.porn.com"+sbjct=%fre+%) <-- not valid
(headr="mail.porn.com"+sbjct=%fre+ gift%) <-- valid
In the plugin you will have only three files: secure, trash, and
suspect, and each line in the file will be a filter.
Some people says: If the mail returns true for 5 suspect filters,
this mail is trash. �what did you think about?
--
Best Regards,
Task Control
mail: TaskControl at SoftHome dot net
correo: TaskControl arroba SoftHome punto net
Usando:
- Windows 98 4.10.1998
- AVG 6.0 Free Edition
- The Bat! 1.63 Beta/7
- Trillian PRO 1.0 B
________________________________________________
Current version is 1.62 | "Using TBDEV" information:
http://www.silverstones.com/thebat/TBUDLInfo.html