[Dovecot] create folder automatically
Hello.
I install a sieve rule automatically when a mailbox is created, like: if exists "X-Spam-Flag" { fileinto "Junk"; stop; }
However, sometimes, this folder does not exist. How create it automatically?
Thanks!
Regards,
-- -Nicolas.
Nicolas Letellier wrote:
Hello.
I install a sieve rule automatically when a mailbox is created, like: if exists "X-Spam-Flag" { fileinto "Junk"; stop; }
However, sometimes, this folder does not exist. How create it automatically?
It is created automatically (at least on mine it does).
~Seth
Seth Mattinen escreveu:
Nicolas Letellier wrote:
Hello.
I install a sieve rule automatically when a mailbox is created, like: if exists "X-Spam-Flag" { fileinto "Junk"; stop; }
However, sometimes, this folder does not exist. How create it automatically?
It is created automatically (at least on mine it does).
Indeed, the only way for deliver _not_ to create a folder that does not exist is by giving the -n command line option, as stated in http://wiki.dovecot.org/LDA .
-- Eduardo M Kalinowski eduardo@kalinowski.com.br
Le Tue, 30 Sep 2008 13:27:57 -0300, Eduardo M KALINOWSKI <eduardo@kalinowski.com.br> a écrit :
Seth Mattinen escreveu:
Nicolas Letellier wrote:
Hello.
I install a sieve rule automatically when a mailbox is created, like: if exists "X-Spam-Flag" { fileinto "Junk"; stop; }
However, sometimes, this folder does not exist. How create it automatically?
It is created automatically (at least on mine it does).
Indeed, the only way for deliver _not_ to create a folder that does not exist is by giving the -n command line option, as stated in http://wiki.dovecot.org/LDA .
Hello.
Indeed, the folder is created with the sieve rule (cf precedent mail). I see this line in my deliver log:
Oct 1 10:48:42 trinite deliver(test@domain.fr): msgid=<20081001090028.CD851886C@mail.domain.biz>: saved mail to Junk
However, when we connect us in the webmail, or download mail with IMAP, the folder is not present.
The folder is created, but no line about it is present in subscriptions file. So, the folder is not viewable.
And we can't create it in a IMAP connection because it exists... (but not visible).
Thanks for your help.
Best regards,
--
- Nicolas.
Indeed, the folder is created with the sieve rule (cf precedent mail). I see this line in my deliver log:
Oct 1 10:48:42 trinite deliver(test@domain.fr): msgid=<20081001090028.CD851886C@mail.domain.biz>: saved mail to Junk
However, when we connect us in the webmail, or download mail with IMAP, the folder is not present.
The folder is created, but no line about it is present in subscriptions file. So, the folder is not viewable.
And we can't create it in a IMAP connection because it exists... (but not visible).
Thanks for your help.
how about subscribing that folder? autocreation doesnt imply autosubscribe. i am sure users might be a bit angry if you autosubscribe any folder of theirs, esp. if they read their mails via a mobile device.
darix
-- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org
Le Wed, 1 Oct 2008 13:10:05 +0200, Marcus Rueckert <darix@opensu.se> a écrit :
Indeed, the folder is created with the sieve rule (cf precedent mail). I see this line in my deliver log:
Oct 1 10:48:42 trinite deliver(test@domain.fr): msgid=<20081001090028.CD851886C@mail.domain.biz>: saved mail to Junk
However, when we connect us in the webmail, or download mail with IMAP, the folder is not present.
The folder is created, but no line about it is present in subscriptions file. So, the folder is not viewable.
And we can't create it in a IMAP connection because it exists... (but not visible).
Thanks for your help.
how about subscribing that folder? autocreation doesnt imply autosubscribe. i am sure users might be a bit angry if you autosubscribe any folder of theirs, esp. if they read their mails via a mobile device.
darix
By default, my users must subscribe to all folders.
--
- Nicolas.
From: Nicolas Letellier
Indeed, the folder is created with the sieve rule (cf precedent mail). I see this line in my deliver log:
Oct 1 10:48:42 trinite deliver(test@domain.fr): msgid=<20081001090028.CD851886C@mail.domain.biz>: saved mail to Junk
However, when we connect us in the webmail, or download mail with IMAP, the folder is not present.
The folder is created, but no line about it is present in subscriptions file. So, the folder is not viewable.
If I remember correctly, recently it was added an option to deliver to autosubscribe to created folders. I think it is only available in the git version.
Le Wed, 01 Oct 2008 12:34:09 -0300, "Eduardo M KALINOWSKI" <eduardo@kalinowski.com.br> a écrit :
From: Nicolas Letellier
Indeed, the folder is created with the sieve rule (cf precedent mail). I see this line in my deliver log:
Oct 1 10:48:42 trinite deliver(test@domain.fr): msgid=<20081001090028.CD851886C@mail.domain.biz>: saved mail to Junk
However, when we connect us in the webmail, or download mail with IMAP, the folder is not present.
The folder is created, but no line about it is present in subscriptions file. So, the folder is not viewable.
If I remember correctly, recently it was added an option to deliver to autosubscribe to created folders. I think it is only available in the git version. How use this feature?
I want a sieve rule create the folder automatically, and autoscribe mailbox to it.
Thanks.
Regards,
--
- Nicolas.
On Oct 2, 2008, at 11:10 AM, Nicolas Letellier wrote:
Le Wed, 01 Oct 2008 12:34:09 -0300, "Eduardo M KALINOWSKI" <eduardo@kalinowski.com.br> a écrit :
From: Nicolas Letellier
Indeed, the folder is created with the sieve rule (cf precedent mail). I see this line in my deliver log:
Oct 1 10:48:42 trinite deliver(test@domain.fr): msgid=<20081001090028.CD851886C@mail.domain.biz>: saved mail to Junk
However, when we connect us in the webmail, or download mail with IMAP, the folder is not present.
The folder is created, but no line about it is present in subscriptions file. So, the folder is not viewable.
If I remember correctly, recently it was added an option to deliver to autosubscribe to created folders. I think it is only available in the git version. How use this feature?
I want a sieve rule create the folder automatically, and autoscribe mailbox to it.
Add -s parameter to deliver. Works only with v1.1.3.
participants (5)
-
Eduardo M KALINOWSKI
-
Marcus Rueckert
-
Nicolas Letellier
-
Seth Mattinen
-
Timo Sirainen