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:
http://wiki.dovecot.org/LDA#Parameters
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.
Regards,
Stephan.