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