[Dovecot] sieve fileinto rule (pigeonhole)

Stephan Bosch stephan at rename-it.nl
Thu Mar 11 22:59:10 EET 2010

Oliver Eales wrote:
> Hello,
> i discovered that when a sieve rule "fileinto drawer;" tries to deliver
> a mail into a non existent drawer, the drawer  gets created.
> This is neat, but is there also a way to automatically subcribe to the
> created folder ?

Yes, but not explicitly through some Sieve command. You must use the -s 
deliver parameter:


You can disable the implicit auto-creation with the -n parameter. You 
can then use Sieve's mailbox extension 
(http://ietfreport.isoc.org/idref/rfc5490/#page-2) to :create folders 
explicitly upon fileinto. However, -s is always necessary to subscribe 
to the newly created folder. Also note that IMAP clients will not 
instantly notice the newly created and subscribed folder, since IMAP has 
no (default) means for sending a notification of such an event.



More information about the dovecot mailing list