Hi, as far as i know cyrus duplicate detection only checks if the messageid has been delivered to a folder. As long as you don't change the messageid you can change the message befor you deliver it to cyrus. Quoting Benjamin Donnachie <benjamin@xxxxxxxxxxxxxxxxxxxx>:
I've offered to help write a patch for cyrus so that it adds personalised adverts to the top of incoming emails. Before I continue, I should point out that the organisation concerned donates the money raised to a number of charities. I prefer the solution of patching cyrus, rather than modifying the message before it is delivered, so that cyrus duplicate detection continues to work. I think that the deliver function in lmtpd.c needs modifying but it's taking me some time to get my head around the cyrus internals, particularly as I'm involved in several other projects at the moment. Ideally, what I would like to do is add a configuration file option to enable calling an external program, with configurable (or even set) command line options (eg user name), to modify the message in some way after duplicate detection but before any forwarding with sieve; probably using stdin and stdout. That way the extra functionality can be used for a whole host of different purposes. In this case, the advert will be added by using MIME to wrap the original message but that's irrelevant to this discussion. Consequently, I'd be very grateful if someone could point me to any documentation on the cyrus internals. Though, I'd be incredibly grateful if someone could confirm that I'm on the right track and, perhaps, the best place to insert this code and confirmation of the structures / variables that I need to play with. Many thanks, Ben ---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
-------------------------------------------------------------------------------- M.Menge Tel.: (49) 7071/29-70316 Universitaet Tuebingen Fax.: (49) 7071/29-5912Zentrum fuer Datenverarbeitung mail: michael.menge@xxxxxxxxxxxxxxxxxxxx
Waechterstrasse 76 72074 Tuebingen
Attachment:
smime.p7s
Description: S/MIME krytographische Unterschrift
---- Cyrus Home Page: http://cyrusimap.web.cmu.edu/ Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html