I have quite a large number of shared/public folders to which mail is sent/posted directly using the [EMAIL PROTECTED] convention.
I want to sieve mail sent to these folders (to remove spam and other nasties). Currently (2.0.16 and CVS HEAD) only mail sent to a user's folders is sieved. The relevant file is imap/lmtpd.c, in the function deliver(). What I'm thinking of doing is modifying this function, so that in the case of a post to a public folder it will find the script for the pseudo user "bb" (or rather the value of the BB string) (sieveusehomddir is false). My plan is to add the code to sieve the email for "case 1 shared mailbox resource" in the source. From my cursory look at the source, I can't see any obvious issues with doing this (thinking about security - mydata.authuser, mydata.authstate etc). However, before embarking on this, I was wondering if any one more knowledgeable than me had any comments about this (it seems like a fairly obvious thing to want to do - so I suspect that there are some "gotchas" that are not obvious to me - or it has already been done). Regards, Ian.