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