search for: allof

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

Did you mean: allow
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/llvm-mirror/...
2020 Jul 19
3
Sieve and handling multiple addresses
...Optional: If it contains a specific header like >>>> "X-bypass: secret string" => no action >>>> Message 3: NOT to/cc foo at example.com => no action >>>> I've gotten exactly nowhere so far >>>> Something like >>>> if :allof (header :contains ["to"] ["foo#example.com"], >>>> header :contains ["cc"] ["foo#example.com"]) >>>> Takes care of the first part of the message 1 and 2 criteria. But then what? >>> to, cc can be one single header test >&g...
2020 Jul 12
2
Sieve and handling multiple addresses
...ne at anydomain.tlf => CC >> Optional: If it contains a specific header like >> "X-bypass: secret string" => no action >> Message 3: NOT to/cc foo at example.com => no action >> I've gotten exactly nowhere so far >> Something like >> if :allof (header :contains ["to"] ["foo#example.com"], >> header :contains ["cc"] ["foo#example.com"]) >> Takes care of the first part of the message 1 and 2 criteria. But then what? > > to, cc can be one single header test > > https://p5r.u...
2020 Jul 12
2
Sieve and handling multiple addresses
...to/cc foo at example.com & to/cc to anyone at anydomain.tlf => CC Optional: If it contains a specific header like "X-bypass: secret string" => no action Message 3: NOT to/cc foo at example.com => no action I've gotten exactly nowhere so far Something like if :allof (header :contains ["to"] ["foo#example.com"], header :contains ["cc"] ["foo#example.com"]) Takes care of the first part of the message 1 and 2 criteria. But then what? -- Was it everything you wanted to find? and did you miss me while you were looking...
2019 May 29
1
Changes in sieve Dovecot 2.2
Hi People, I'm use dovecot in my mailbox system, until last month i used the dovecot version 2.0 and now i use version 2.2, version 2.2 works well for me, but i have one small problem, in sieve. In version 2.0 i had rules in sieve similiar to rule bellow: if allof (true){ keep; fileinto "INBOX"; redirect "xxxxxx"xxxxxx.com.br"; stop; } In the new version 2.2 this rules above, i have one problem duplicate messages in account from my clients, in paste INBOX, therefore, i changed rule to bellow ( with remove fileinto inbox)...
2013 Nov 11
2
blames for using maillists ?
why do you not simply shut up? # sieve rule require ["imap4flags"]; # rule:[reindl] if allof (header :contains "From" "h.reindl at thelounge.net") { setflag ["\\Seen","\\Flagged"]; stop; }
2016 Jul 26
2
[PATCH] Add support for the 'unless' matcher in the dynamic layer.
...ely for the one argument calls. > I would be ok with removing the lower bound. > > > On Tue, Jul 26, 2016 at 6:20 PM, Zac Hansen <xaxxon at gmail.com> wrote: > >> 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. >&g...
2017 Mar 21
6
Problem with sieve_before
...lags ................................. In /var/lib/dovecot/sieve/before I have : drwxrwxrwx 3 mail mail 4096 Mar 20 23:47 .. -rw-rw-rw- 1 root root 195 Mar 21 09:57 default2.svbin -rwxrwxrwx 1 mail mail 157 Mar 21 11:12 default2.sieve default2.sieve is as follows: require ["fileinto"]; if allof (header :matches "subject" "*JUNK*") { fileinto "INBOX.Junk"; } The users personal filters work. Thanks for your help. __________________________________________________ Please consider the environment before printing this email. Ger
2007 Nov 06
1
UTF-8 in dovecot-sieve ?
...g/html/rfc3028#section-2.7.2 I thought that out-of-the-box dovecot can filter messages by matching header in UTF-8. But when I tested it, it failed : (I'm using 1.0.5 with sieve plugin) Here is my .dovecot.sieve file : ---------- require ["fileinto", "imapflags"]; if allof(header :contains "subject" "filtre") { addflag "test_1"; } if allof(header :contains "subject" "l?") { addflag "test_2"; } if allof(header :comparator "i;ascii-casemap" :contains "subject" "h?") { addfl...
2010 Aug 20
2
pigeonhole sieve imapflags bug
...I just instealled the dovecot 2.0.0 release, and the latest mercurial pigeonhole source. All is well, except for a particular sieve rule that may not be working right. It is a simple rule that looks like this : require ["fileinto","imap4flags"]; # rule:[Past Due Notices] if allof (header :contains "Subject" "Account Past Due Notice") { fileinto "Billing"; setflag "\\Seen"; stop; } Anyways, what happens is the message that matches that rule does indeed get moved to the "Billing" folder, but it does no...
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...
2007 Aug 11
8
Sieve Vacation cause deliver to die
..., 9:56 am) require ["vacation", "fileinto"]; # Whitelisted Addresses if address :all :comparator "i;ascii-casemap" :is ["From", "Sender", "Resent-From"] "juscotsushin at juscocityhk.com" { keep; stop; } # Vacation if allof ( not exists ["list-help", "list-unsubscribe", "list-subscribe", "list-owner", "list-post", "list-archive", "list-id"], not header :comparator "i;ascii-casemap" :is "Precedence" "list,bulk" ) {...
2015 Sep 02
3
sieve filtering utf 8 strings
Guys, I'm completely stuck, so asking for advice. My user has a sieve script which checks message header if it contains words in russian like '???? ???????????? ?????????'. Pritty simple script # rule:[??????????] if allof (header :contains "subject" "LDS (robot): ???? ???????????? ?????????", header :contains "from" "noreply at bgoperator.com") { fileinto "??????????"; } I don't have errors compiling the script or executing it via LMTP, but it doesn't...
2019 Jan 15
0
Solved: Sieve: reject certain mime-types and notify recipient
...Am 14.01.19 um 20:22 schrieb Ralf Becker: > I have to reject office files for a certain domain plus notifying the > original recipient about the rejection too. > > require ["fileinto","reject","body","enotify","variables"]; > > if allof (address :contains ["To","TO","Cc","CC"] "@example.org", body > :content? "application/msword" :contains "") { > ??????? set "to" "${1}"; The set does not work in allof with an other condition, so I us...
2018 Mar 03
2
pigeonhole 0.4.22 with sieve_before script crashes
...uot;NO"; addheader "X-Filter-Junk-Type" "NONE"; } --------------------------------------------------------------- sieve script for user postbox at example.com (.dovecot.sieve) --------------------------------------------------------------- require ["copy"]; if allof (header :is "X-Filter-Junk-Flag" "NO") { redirect :copy "copy at example.com"; } --------------------------------------------------------------- I use LMTP to deliver the mail to the user and the following error occurs: Mar 3 02:31:34 test dovecot: lmtp(postbox a...
2019 Jan 14
2
Sieve: reject certain mime-types and notify recipient
I have to reject office files for a certain domain plus notifying the original recipient about the rejection too. require ["fileinto","reject","body","enotify","variables"]; if allof (address :contains ["To","TO","Cc","CC"] "@example.org", body :content? "application/msword" :contains "") { ??????? set "to" "${1}"; ??????? # :matches is used to get the value of the Subject header ??????? i...
2020 Feb 18
3
managesieve / sieve - append dot prefix on moving mails into folder
...ribers, i have an issue with the managesieve / sieve plugin in dovecot. We use roundcube as webmailer and if i define a new filter to move incoming mails directly into a subfolder i get the following sieve-code: require ["fileinto","imap4flags"]; # rule:[mail into folder] if allof (header :contains "from" "sender at domain.org") { fileinto "Foldername"; setflag "\\Seen"; } So anything seems to be right and there are no errors on creating the correct syntax. But if a mail comes from the named sender, sieve does not put the email i...
2018 Mar 03
2
pigeonhole 0.4.22 with sieve_before script crashes
...t;NONE"; >> } >> --------------------------------------------------------------- >> >> sieve script for user postbox at example.com (.dovecot.sieve) >> --------------------------------------------------------------- >> require ["copy"]; >> if allof (header :is "X-Filter-Junk-Flag" "NO") >> { >> ? redirect :copy "copy at example.com"; >> } >> --------------------------------------------------------------- >> >> I use LMTP to deliver the mail to the user and the >> followin...
2019 Jan 24
4
Discard mail with from date older than xxxx
...once at first occurrence). >> spam: error: validation failed. >> sievec(root): Fatal: failed to compile sieve script 'spam.sieve' >> >> Does anyone have any advice on how to get this working? > Hi Trever > > here is a snippet I use occasionally: > > if allof( > currentdate :zone "+0200" :value "ge" "iso8601" "2017-09-04T00:00:00+02:00", > currentdate :zone "+0200" :value "le" "iso8601" "2017-09-06T18:09:00+02:00" > ) > > > HTH > Per Please, correct me...
2013 Nov 14
6
Sieve script problem (don't know if is it possible to do this)
...dress :matches :domain "To" "dept.example.com" { fileinto: "Dept"; } ----- Rule for #2, I don't know how to declare it: I don't know how to make a rule that matches "example.com" (or anyotherdept.example.com) and not "dept.example.com". if allof(address :matches :domain "To" "example.com", not address :matches :domain "To" "dept.example.com") { fileinto: "Company"; } ... doesn't work, because user at dept.example.com matches (address :matches :domain "To" "example.com&quo...