At 15:00 -0200 Henrique de Moraes Holschuh wrote: >since Cyrus doesn't even enter the picture.
Hey, why not? Now that you've switched from UW-IMAP to Cyrus, you need something to do with your spare CPU cycles.. Maybe a hook could be bolted in whenever an IMAP fetch or store command is requested. There is a possible protocol for this called ICAP, for which patches to squid exist. At least Symantec offer a commercial ICAP server; there's a GPLish one written in Python IIRC. Alternatively a small, clean API could be introduced at build time (a bit like local_scan() in Exim 4) or via DSOs (a la Apache), and if someone wanted to write an ICAP client as such a function or modules it would be their concern. Matt :-)