d0d307
Cyrus IMAP autosievefolder patch
d0d307
----------------------------------
d0d307
d0d307
NOTE : This patch has been created at the University of Athens. For more info, as well 
d0d307
as more patches on Cyrus IMAPD server, please visit http://email.uoa.gr 
d0d307
d0d307
d0d307
  When the lmtpd daemon receives an email message prior to delivering it to the 
d0d307
INBOX folder of the user, checks if the user has specified sieve filters. If the
d0d307
user has specified sieve filters the filters are evaluated. If the message matches
d0d307
any of the filters the action that is specified in the filter is executed. If the action 
d0d307
is FileInto it is stored in the subfolder specified in the filter. If the 
d0d307
subfolder doesn't exist then the message is sent to the INBOX folder of the user.
d0d307
d0d307
  With this patch if the folder doesn't exist AND the name of the subfolder is 
d0d307
specified in the autosievefolders option, OR the anysievefolder is set to 
d0d307
yes in the cyrus-imap configuration file then the subfolder is created and the mail 
d0d307
is stored there.
d0d307
d0d307
d0d307
Check the following options of the imapd.conf file
d0d307
==================================================
d0d307
d0d307
* anysievefolder : It must be "yes" in order to permit the autocreation of any 
d0d307
INBOX subfolder requested by a sieve filter, through the "fileinto" action. (default = no)
d0d307
* autosievefolders : It is a "|" separated list of subfolders of INBOX that will be 
d0d307
automatically created, if requested by a sieve filter, through the "fileinto" 
d0d307
action. (default = null)
d0d307
	i.e. autosievefolders: Junk | Spam
d0d307
d0d307
WARNING: anysievefolder, takes precedence over autosievefolders . Which means that if 
d0d307
anysievefolder is set to "yes", cyrus will create any INBOX subfolder requested, no-matter what the value of autosievefolders is.
d0d307
d0d307
d0d307
Things to be done
d0d307
=================
d0d307
d0d307
1. Support cyrus wildcards in the autosievefolders option. 
d0d307
d0d307
d0d307
For more information and updates please visit http://email.uoa.gr/projects/cyrus/autosievefolder
d0d307