Adrian Barker wrote:
That's right: we cannot change the way that we deliver email, at least in the short to medium term, so need to maintain compatibility with the UW IMAP server. If we do decide to write a plugin that copies new email from the mail spool to the IMAP inbox, is there any documentation on how to write plugins ? I could not find any on the wiki.
Adrian Barker, University College London.
Another thought occurred to me. It needn't be a plugin as such, as it just needs to run before the imap process proper - see http://wiki.dovecot.org/PostLoginScripting. It could be something as simple as a shell script doing (though with rather more safeguards):-
exim_lock /var/spool/$USER
"cat /var/spool/$USER >> ~/mbox && rm /var/spool/$USER"
exec /path/to/dovecot/libexec/imap
though you could probably write a utility using c-client to do it properly.
Best Wishes, Chris
-- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wakelin@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094