Re: Dovecot sieve filters

2021-09-20 Thread Stephan Bosch
On 20/09/2021 09:05, j.emerlik wrote: After I deleted  "envelope" from the "require": if address :is "from" "*" {     set :lower "from" "${1}"; } You need to use :matches rather than :is. It returns: null Null? That doesn't make sense. It should return the empty string if you do stuff li

Re: Dovecot sieve filters

2021-09-20 Thread j.emerlik
After I deleted "envelope" from the "require": if address :is "from" "*" { set :lower "from" "${1}"; } It returns: null if header :matches "From" "*" { set "address" ": ${1}"; } It returns address as: "some string" pon., 20 wrz 2021 o 01:44 Gedalya napisał(a): > On 9/20/21 03:

Re: Dovecot sieve filters

2021-09-19 Thread Gedalya
On 9/20/21 03:15, j.emerlik wrote: > "If address :is "from" "*" { .. } - I have same error. Quote: Error: sieve: report-ham: line 1: the envelope extension cannot be used in this context (needs access to message envelope) It says "line 1", that's your "require" line. You need to remove "envelop

Re: Dovecot sieve filters

2021-09-19 Thread Håkon Alstadheim
Den 19.09.2021 16:37, skrev Gedalya: On 9/19/21 21:24, j.emerlik wrote: Error: sieve: report-ham: line 1: the envelope extension cannot be used in this context (needs access to message envelope) My guess would be that the envelope is not available because this is sieve running in IMAP, not

Re: Dovecot sieve filters

2021-09-19 Thread j.emerlik
Yes, it's plugin imap_sieve enabled for IMAP protocol. There isn't no way to catch address "from" when moving messages between IMAP folders ? "If address :is "from" "*" { .. } - I have same error. niedz., 19 wrz 2021, 16:38 użytkownik Gedalya napisał: > On 9/19/21 21:24, j.emerlik wrote: > > >

Re: Dovecot sieve filters

2021-09-19 Thread Gedalya
On 9/19/21 21:24, j.emerlik wrote: > > Error: sieve: report-ham: line 1: the envelope extension cannot be used in > this context (needs access to message envelope) > My guess would be that the envelope is not available because this is sieve running in IMAP, not during delivery. If the From: head

Dovecot sieve filters

2021-09-19 Thread j.emerlik
I'm have a problem where dovecot-sieve is used to run the script after moving emails from Junk Folder. config: imapsieve_mailbox2_name = * Imapsieve_mailbox2_from = INBOX.Junk imapsieve_mailbox2_causes = COPY imapsieve_mailbox2_before = file:/usr/local/lib/dovecot/sieve/report-ham.sieve filter:

Re: [Dovecot] Sieve filters on folders, different from INBOX

2013-02-27 Thread Robert Schetterer
Am 27.02.2013 14:56, schrieb Valery V. Sedletski: > Yes, this is a variant. But what if I modify the Dovecot post-login script (a > wrapper for IMAP process), or > add the sieve plugin to protocol "imap {mail_plugins = ...}" ? Will it be > invoked on each operation with > mailboxes? to my knowl

Re: [Dovecot] Sieve filters on folders, different from INBOX

2013-02-27 Thread Valery V. Sedletski
>> >> So, if sieve is invoked by lda, then, probably, I could invoke dovecot-lda >> from wrapper script on each mail >> after it is fetched? > >with getmail > >[destination] >type = MDA_external >path = /usr/lib/dovecot/deliver > >But then it will be copied to INBOX... -- Is it possible to specify

Re: [Dovecot] Sieve filters on folders, different from INBOX

2013-02-26 Thread Robert Schetterer
Am 26.02.2013 15:40, schrieb Valery V. Sedletski: > > > > >> Original Message >> From: Robert Schetterer >> To: dovecot@dovecot.org >> Sent: Вт, Фев 26, 2013, 5:55 PM >> Subject: Re: [Dovecot] Sieve filters on folders, different from INBOX &

Re: [Dovecot] Sieve filters on folders, different from INBOX

2013-02-26 Thread Valery V. Sedletski
> Original Message >From: Robert Schetterer >To: dovecot@dovecot.org >Sent: Вт, Фев 26, 2013, 5:55 PM >Subject: Re: [Dovecot] Sieve filters on folders, different from INBOX > >Am 26.02.2013 14:20, schrieb Valery V. Sedletski: >> Hi all >> >>

Re: [Dovecot] Sieve filters on folders, different from INBOX

2013-02-26 Thread Robert Schetterer
Am 26.02.2013 14:20, schrieb Valery V. Sedletski: > Hi all > > Is it possible to configure Dovecot's sieve plugin to act on message > arrival to folders, other than INBOX? sieve is invoked by lda or lmtp not "as arrive in inbox" > I wish to move messages fetched by pop3 fetcher to special fold

[Dovecot] Sieve filters on folders, different from INBOX

2013-02-26 Thread Valery V. Sedletski
Hi all Is it possible to configure Dovecot's sieve plugin to act on message arrival to folders, other than INBOX? I wish to move messages fetched by pop3 fetcher to special folder, or sort outgoing mail to folders, specific to their recipients. Thanhs in advance, WBR, valery

Re: [Dovecot] sieve filters not being invoked

2011-05-09 Thread Timo Sirainen
On Mon, 2011-05-09 at 17:56 +0200, Colin Brace wrote: > sending myself a message; however it gets bounced: "user unknown" > (/var/log/maillog): Set auth_debug=yes and see what Dovecot's logs say then.

Re: [Dovecot] sieve filters not being invoked

2011-05-09 Thread Timo Sirainen
On Mon, 2011-05-09 at 13:00 +0200, Colin Brace wrote: > dovecot unix - n n - - pipe >flags=DRhu user=vmail:mail argv=/usr/local/libexec/dovecot/deliver -d > ${recipient} You're running deliver as vmail user. > May 09 12:43:13 lda: Error: userdb lookup: > co

Re: [Dovecot] sieve filters not being invoked

2011-05-09 Thread Colin Brace
On Mon, 09 May 2011 13:00:45 +0200, Colin Brace wrote: > In the dovecot-lda log, I am now seeing some action, but there is a > > permissions problem somewhere: > > May 09 12:43:13 lda: Debug: Loading modules from directory: > /usr/local/lib/dovecot > May 09 12:43:13 lda: Debug: Module loa

Re: [Dovecot] sieve filters not being invoked

2011-05-09 Thread Colin Brace
On Mon, 09 May 2011 11:14:44 +0200, Stephan Bosch wrote: Is your MTA storing messages using the Dovecot LDA (http://wiki2.dovecot.org/LDA [1]) ? Check that thoroughly. Enable mail_debug to get more verbose logs. To definitively check whether Sieve is working or not, you can invoke dovecot-lda

Re: [Dovecot] sieve filters not being invoked

2011-05-09 Thread Stephan Bosch
Op 8-5-2011 11:56, Colin Brace schreef: Hi all, Similar to someone who posted here yesterday, I am having trouble getting sieve filters working. I have installed pigeonhole. I can create, edit, and save scripts from both the Thunderbird sieve extension as well as the Roundcube sieve plugin via

[Dovecot] sieve filters not being invoked

2011-05-08 Thread Colin Brace
Hi all, Similar to someone who posted here yesterday, I am having trouble getting sieve filters working. I have installed pigeonhole. I can create, edit, and save scripts from both the Thunderbird sieve extension as well as the Roundcube sieve plugin via managesieve running on port 4190. The .si

Re: [Dovecot] sieve filters

2009-02-19 Thread Stephan Bosch
Hi Ian, Ian P. Christian wrote: 2009/2/19 Ian P. Christian : The first if appears to match, as if I move the fileinto up there it works - however it doesn't work as it shown here. Can anyone suggest why? Can I achieve what I'm trying to do with sieve? How can I go about debugging scripts? Yo

Re: [Dovecot] sieve filters

2009-02-19 Thread Ian P. Christian
2009/2/19 Ian P. Christian : > The first if appears to match, as if I move the fileinto up there it > works - however it doesn't work as it shown here. Can anyone suggest > why? Can I achieve what I'm trying to do with sieve? How can I go > about debugging scripts? > I've made some progress, bu

[Dovecot] sieve filters

2009-02-19 Thread Ian P. Christian
Hi all, I'm trying to figure out a way of filtering mail from a commercial anti-spam platform. Unfortunately you need to compare part of one header against part of another header. I figured I could solve this using sieve variables and pattern matching, however I'm having little luck and don't kn

Re: [Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8

2009-01-24 Thread Pascal Volk
On 24.01.2009 09:49 David Anderson wrote: > > Thanks for the reply again. Here it is: > ... > Jan 24 08:38:04 levi deliver(supp...@example.com): > msgid=<200901241137.59870.da...@example.com>: sent vacation response to > > Jan 24 08:38:04 levi deliver(supp...@example.com): > msgid=<20090124113

Re: [Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8

2009-01-23 Thread Pascal Volk
On 23.01.2009 07:59 David Anderson wrote: > On Thursday 22 January 2009, Pascal Volk wrote: >> On 22.01.2009 20:42 David Anderson wrote: >>> Upon upgrading Dovecot from 1.1.7 to 1.1.8, one of my sieve filters >>> (generated with avelsieve) no longer works. >> Please show the filter rule. > > Thank

Re: [Dovecot] Sieve filters forwarding erratic after upgrade to 1.1.8

2009-01-22 Thread Pascal Volk
On 22.01.2009 20:42 David Anderson wrote: > Upon upgrading Dovecot from 1.1.7 to 1.1.8, one of my sieve filters > (generated with avelsieve) no longer works. Please show the filter rule. > The filter is intended to redirect to another address when the header > from contains something like @exam