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 wiki.dovecot.org/LDA . -- Eduardo M Kalinowski eduardo at kalinowski.com.br
Le Wed, 01 Oct 2008 12:34:09 -0300, "Eduardo M KALINOWSKI" <eduardo at 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 at domain.fr): > > msgid=<20081001090028.CD851886C at 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 Mon, 6 Oct 2008 12:58:36 +0300 Timo Sirainen <tss at iki.fi> wrote:> On Oct 6, 2008, at 12:50 PM, Nicolas Letellier wrote: > > >>>> 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. > > And how do this? > > I use Dovecot with Postfix. > > > > Here my informations: > > > > dovecot-1.1.3 > > dovecot-sieve-1.1.5_1 > > > > Where I must add a "-s"? > > Whereever deliver is configured to be run. /etc/postfix/master.cf or > main.cf probably. just add -s after the deliver command.Yes, in master.cf, it works *perfectly*. Thanks ! -- -Nicolas.