Update of /cvsroot/tmda/tmda
In directory usw-pr-cvs1:/tmp/cvs-serv31898
Modified Files:
UPGRADE
Log Message:
Added support for arguments to filter rules. Wired in an entirely new
exception mechanism for much-improved reporting of errors. Changed the
basic behavior of FilterParser to report on filter file errors and defer
mail rather than to silently ignore errors. Cleaned up Util.file_to_list
and its callers.
Updated filter file documentation to describe the new arguments.
Updated UPGRADE to mention the new arguments and to indicate which sources
will be affected by the change.
Index: UPGRADE
===================================================================
RCS file: /cvsroot/tmda/tmda/UPGRADE,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- UPGRADE 19 Feb 2002 23:22:01 -0000 1.31
+++ UPGRADE 20 Feb 2002 08:34:55 -0000 1.32
@@ -1,5 +1,47 @@
======================================================================
+If you are upgrading from a release of TMDA < 0.48:
+
+* Several of the sources now take arguments. See the filter file
+ documentation for more details.
+
+* The 'to-autocdb' and 'from-autocdb' sources have been removed. If
+ you use the autocdb functionality, you will need to change these
+ sources to 'to-file' or 'from-file', respectively, and add the
+ '-autocdb' flag. The match field is the name of the textfile
+ without the '.cdb' extension, as before.
+
+ # old rule
+ from-autocdb ~/lists/whitelist_confirmed accept
+
+ # new rule
+ from-file -autocdb ~/lists/whitelist_confirmed accept
+
+* The 'to-mailman' and 'from-mailman' sources have changed. You no
+ longer specify the attribute to search with '.<attr_name>'. Instead
+ these sources now take the '-attr' argument with the attribute as
+ the option.
+
+ # old rule
+ from-mailman.members ~mailman/lists/mylist/config.db accept
+
+ # new rule
+ from-mailman -attr=members ~mailman/lists/mylist/config.db accept
+
+* The filter file parser used to ignore all syntax errors in filter
+ files. This means that your file might not be working as you want
+ but you wouldn't know it. This behavior has been changed. Every
+ error that the filter parser encounters is saved and, after the
+ entire file has been processed, an exception is thrown and written
+ to the debug log.
+
+ If you want to check your filter files, make sure you have
+ LOGFILE_DEBUG defined in your ~/.tmdarc and run tmda-filter with the
+ '-M' switch. Run 'tmda-filter -h' for more information about '-M'.
+ Then examine the contents of your debug log.
+
+======================================================================
+
If you are upgrading from a release of TMDA < 0.47:
* tmda-clean has been removed from the distribution. The new
_______________________________________________
tmda-cvs mailing list
http://libertine.org/lists/listinfo/tmda-cvs
|