* 'return conf' was missing from readConfiguration !
* Path to Cyrus deliver binary changed to reflect
the location on this command on Gentoo system with
Cyrus 2.2.
git-archimport-id: frederic@jolliton.com--2004-private/mail-filter--main--0.1--patch-8
external script (or even "just" python module.)
[ ] For mail rejected by Cyrus because of invalid header, encapsulate the
mail into a new one, and feed this one to Cyrus (and tagged as broken.)
+[ ] Allow mail.filter to re-file mails already present in a Cyrus folder.
writeCachedConfiguration( filename , conf , isValid )
except Exception , e :
raise Exception( 'While reading file %s:\n%s' % ( filename , str( e ) ) )
+ return conf
#--[ Dump configuration tree ]------------------------------------------------
#
# Path to Cyrus's deliver binary.
#
-g_pathCyrusDeliver = '/usr/cyrus/bin/deliver'
+g_pathCyrusDeliver = '/usr/lib/cyrus/deliver'
#
# Path to spamprobe binary.
confparser.readConfiguration( filename )
except Exception , e :
print e
+ else :
+ print filename , ok
#-----------------------------------------------------------------------------