search for: anyof

Displaying 20 results from an estimated 106 matches for "anyof".

2015 Apr 30
2
Sieve Rule: What am I missing here?
I have a rule that sends all mail from root to a mailbox, but I want it to NOT send mail from mailing-lists there. if allof (address :contains :localpart "From" "root", not anyof(exists ["List-Id","List-ID","Mailing-List", "X-List-Name","List-Post"])) { fileinto "root-mail"; stop; } I got a mail with the following headers: Return-Path: <openssl-users-bounces at openssl.org> Delivere...
2012 Jul 06
2
Pigeonhole Sieve SetFlag question
Hello, I use FreeBSD 8.2-RELEASE-p7 i386 dovecot-2.1.6 dovecot-pigeonhole-0.3.0_1 I have the following problem: When I use the following script - the flag is set in \Seen : require ["imap4flags"]; # rule:[test] if anyof (header :contains "Subject" "test") { setflag "\\Seen"; stop; } . SELECT INBOX * OK [CLOSED] Previous mailbox closed. * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitte...
2009 May 06
4
Problem in deliver (Panic: file index-mail-headers.c ...)
Hi All, I'm experiencing a problem with some mails in deliver. Here the logged error message: deliver(stefan at roese.nl): 2009-05-06 11:57:36 Panic: file index-mail-headers.c: line 141 (index_mail_parse_header_finish): assertion failed: ((match[match_idx] & HEADER_MATCH_FLAG_FOUND) == 0) deliver(stefan at roese.nl): 2009-05-06 11:57:36 Error: Raw backtrace: /usr/lib/dovecot/deliver
2016 Nov 30
2
Sieve script won't compile. Compiler output isn't helpful.
...e results. According to my understanding, #header "from" "person at example.com"# is correct for an exact match. On 11/30/2016 04:10 AM, Martin Wheldon wrote: > Hi Steven, > > I think you may be missing the :contains from the two header lines below: > >> if anyof (header "From" "store-news at amazon.com", >> envelope :contains "From" "menswearhouse.com", >> envelope :contains "From" "officedepot.com", >> envelope :contains "From" "walgreen...
2015 Aug 07
2
pigeonhole/lda accessing -m folder
hi jost thx for the reply, by access I mean to read the variable require ["fileinto", "variables", "?destfolder?" ]; if anyof ( destfolder :matches "*") { fileinto "${1}/subfolder"; }else{ fileinto "INBOX/subfolder"; } On 08/07/2015 12:26 PM, Jost Krieger wrote: > On Fri Aug 7 12:19:22 2015, matthias lay wrote: > >> anybody knows, if there is a way to acces the...
2016 Nov 30
2
Sieve script won't compile. Compiler output isn't helpful.
...ipt with some names and addresses changed and the sieve output to this email. I would greatly appreciate any help anyone could offer. -------------- next part -------------- require ["envelope", "fileinto", "mailbox", "imap4flags", "regex"]; if anyof (header :contains "List-ID" "<linux-kernel.vger.kernel.org>", header :contains "List-Id" "Dovecot", envelope :domain "From" "lists.ubuntu.com", envelope :domain "from" "debian.org",...
2019 Nov 16
2
Sieve and recipient_delimiter
I use recipient_delimiter addresseses quiet a bit, and I want to put several of them into a mailbox if anyof (header :contains ["to"] [ ?FOO", ?foo", ?bar", ?florin"]) { fileinto :create ?later"; stop; } When I get an email addressed to me+FOO at example.com or me_florin at example.com, the messages end up in my inbox (Yes, I have both + and _ defined as...
2015 Apr 30
0
Sieve Rule: What am I missing here?
On 4/30/2015 9:15 PM, Larry Rosenman wrote: > I have a rule that sends all mail from root to a mailbox, but I want it to > NOT send mail from mailing-lists there. > > if allof (address :contains :localpart "From" "root", > not anyof(exists ["List-Id","List-ID","Mailing-List", > "X-List-Name","List-Post"])) > { > fileinto "root-mail"; > stop; > } > > > What am I missing in the AnyOf part? Or am I totally messed up? A...
2010 Nov 10
1
Sieve problem with managesieve
I have a problem with a sieve script.. my config is dovecot 1.2.15 with managesieve, and roundcube. Now i have this script WORKING: -- require ["fileinto"]; # rule:[TracSvil] if anyof (header :contains "From" "xxx at example.com") { fileinto "INBOX.Trac Svil"; stop; } -- And this script NOT working: require ["fileinto"]; # rule:[TracSvil] if anyof (header :is "From" "trac at ardeek.com") { fileinto "INBOX.Trac...
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
Even if it still did add overhead, it seems perfectly reasonable, from a user's perspective (namely mine), that if I introduce unnecessary narrowing matchers to my chain that there may be a performance penalty. The ability to do the following easily outweighs any performance issues for me: anyOf ( /* hasName("..."), */ hasName("...") ) though C++ not allowing trailing commas makes this not quite as great. *However, without help, I would not be able to put forward a patch with anything more than simply removing the minimums.* Would this be acceptable or would...
2010 May 21
1
question about scripts sieves
...t;ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["100"] { fileinto "Junk.spam"; stop; } if header :value "ge" :comparator "i;ascii-numeric" ["X-Spam-score"] ["10"] { fileinto "Junk"; } elsif anyof ( header :contains "Received" [ "[4.63.221.224", "[24.244.141.112", "[61.171.253.177", "[63.123.149.", "[63.209.206.", "(63.233.30.73", "[63.251.200.",...
2016 Sep 21
4
Creating a clang-tidy const position check
I'm in the process of writing a clang-tidy check that concerns the position of the "const" keyword. The check should either enforce "T const" or "const T", based on a flag. Naturally, this should extend to all sorts of variations and qualifiers, e.g., X<const T&, Y const*> const&. My approach is to first find the right AST matcher expression to flag
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
I was wondering if there is any objection to removing the 2-element minimum on the eachOf, anyOf and allOf matchers. It is frustrating when playing with matchers to have to edit significant amounts of code to be able to temporarily go from 2 to 1 matcher inside an any- or allOf matcher. And overall it feels very "un-set-theory"-like. The change was made here: https://github.com/ll...
2015 Feb 11
2
dovecot 2.2.15 script_after not executed
...ls.ietf.org/html/rfc5228#section-2.10.2 > [3]: https://tools.ietf.org/html/rfc3894 > [4]: http://tools.ietf.org/html/draft-degener-sieve-multiscript-00 > > Regards, > > Stephan. > Thanks Stephan, However still have one small issue: fileter.sieve ========== # rule:[amavis] if anyof (address :contains "From" "amavis", address :contains "Cc" "amavis-users at amavis.org", address :contains "To" "amavis-users at amavis.org") { fileinto "INBOX.lists.amavisd-new"; } # rule:[xxx_gmail] elsi...
2016 Nov 30
3
Sieve script won't compile. Compiler output isn't helpful.
...mple.com"# is >> correct for an exact match. >> >> >> On 11/30/2016 04:10 AM, Martin Wheldon wrote: >>> Hi Steven, >>> >>> I think you may be missing the :contains from the two header lines >>> below: >>> >>>> if anyof (header "From" "store-news at amazon.com", >>>> envelope :contains "From" "menswearhouse.com", >>>> envelope :contains "From" "officedepot.com", >>>> envelope :contains "F...
2018 May 28
3
Problem in Pigeonhole sievec
Dear all, I stumbled upon the following behaviour of Pigeonhole, which I consider to be problematic. A user deployed a Sieve script similar to the following snippet if not anyof (address :is ["from","cc"] ["...", ..., "... at ... GARBAGE", ...] { fileinto "inbox.Trash"; stop; } Note the extra line break before GARBAGE. This script is obviously broken, but gets accepted by sievec and only fails later, at runtime with l...
2012 Apr 05
3
Problem with polish characters and sieve fileinto
Hi, I have problems with sieve fileinto and polish characters in folder names: # rule:[??????????????????] elsif anyof (header :contains "Subject" "??????????????????") { fileinto "INBOX/&AQUBBwEZAUIBRADzAVsBegF8AQQBBgEYAUEBQwDTAVoBeQF7-"; } dovecot log: Apr 5 15:17:42 mailer dovecot: lmtp(54203, test at test1.com): rmHVJHabfU+70wAA9hAjDg: sieve: msgid=<4F7D9B68.4030206...
2011 Dec 12
3
dovecot 2.1.rc1: sieve and folders with umlauts
Hi, now the umlauts problem with sieve: # cat /mailspool1/in-preetz.de/test1/.dovecot.sieve ## Generated by Roundcube Webmail SieveRules Plugin ## require ["fileinto"]; # rule:[Test] if anyof (header :contains "Subject" "test") { fileinto "m&APY-"; } Error: DBBjDsXL5U7mIAAA/TNBsA: sieve: execution of script /mailspool1/in-preetz.de/test1/.dovecot.sieve failed, but implicit keep was successful (user logfile /mailspool1/in-preetz.de/test1/.dove...
2018 May 28
3
Second rule isn't apply when first rule matches
...einto","imap4flags","vacation"]; # rule:[Mail about me] if anyof (header :contains "to" "me at mydomain.tld", body :text :contains "ahmed") { fileinto "INBOX.I must answere this"; } # rule:[Mail about the Cloud]...
2018 Jun 30
1
How to log a Sieve match in Dovecot debug_log
...40 words... 30 or 40 rules? Possible but very unconfortable to manage. A more compact version of the script could be this: -- the script begins ------------ require ["fileinto", "imap4flags", "editheader", "body", "vnd.dovecot.debug"]; if anyof ( body :text :contains [ "crypto", "sex", "viagra" ]) { setflag "\\Seen"; addheader :last "X-Sieve-Filtered" "blocked words in message body"; fileinto "INBOX.Spam"; debug_log &quo...