[imapfilter-devel] IMAPFilter 2.0.1

Hans-Werner Hilse hilse at sub.uni-goettingen.de
Sat Jun 30 16:19:26 EEST 2007


Hi,

and hello, since this is my first posting on the ML. I'm planning to
follow it regularly, since I'm now using imapfilter for about half a
year already.

Unhappy with what our Exchange server has to offer in terms of
filtering, I started to use it to filter mail and am now doing even
spam detection using it in combination with SpamAssassin (no, this is
not meant as MS-bashing, since there _are_ solutions available,
but unfortunately I'm not in a position to enforce it here).

I really like the small code base and felt in love with Lua :-)

The new version of imapfilter was great, thanks a lot. But I ran into a
problem which might hit others as well.

The problem is that the message cache for a mailbox is not invalidated
when changes are being made. I found I had to disable caching
alltogether in order to have it working correctly.

Since I'm also doing spam detection, I'm fetching the messages from the
INBOX, then I'm piping it through SpamAssassin and then I run my own
filters, not using IMAP search (since I already have the message).
Depending on the result, I'm moving the message out of the way to the
according "target" mailbox. At that point, the message text cache isn't
invalidated, so if I'm doing another search and a following fetch for
message #1, it would result in operating on the cached content from the
former message #1, which I have moved.

Attached, there's a patch that makes the caching configurable (it
defaults to enabled).


-hwh
-------------- next part --------------
A non-text attachment was scrubbed...
Name: imapfilter-2.0.1-make-cache-optional.patch
Type: text/x-patch
Size: 2019 bytes
Desc: not available
URL: <http://lists.hellug.gr/pipermail/imapfilter-devel/attachments/20070630/fa072e08/attachment.bin>


More information about the Imapfilter-devel mailing list