[imp] Filtercode (HEAD) is killing existing filterdefinitions!
Michael M Slusarz
slusarz@bigworm.colorado.edu
Sat, 3 Aug 2002 20:33:50 -0600
Quoting Dan Wilson <dan@acucore.com>:
| Same thing happened to me. I had about 12, and the only one that was
| still
| left was:
|
| Move messages to folder Finance where the From header contains
| alerts@ameritradeinfo.com
|
| It even killed my blacklist (luckily only 2 emails in there).
I found the error - it wasn't in the logic of my code either. IMP_Filter
registers a shutdown function to save the filters anytime the filter list
is changed. However, for some strange reason, the IMP_Filter shutdown
function only sees the filters list at the time when it was registered.
Thus, this is why only 1 filter was ever being saved.
This does not seem to be the correct behavior, at least when reading the
register_shutdown_function() documentation. Anybody have any idea on this
one?
michael
______________________________________________
Michael Slusarz [slusarz@bigworm.colorado.edu]
The University of Colorado at Boulder