Re: [SOGo] Combining Filter Rules

2012-07-31 Thread Francis Lachapelle
Hi Daniel

On 2012-07-27, at 4:26 AM, daniel.mert...@fit.fraunhofer.de 
daniel.mert...@fit.fraunhofer.de wrote:

 I got a problem, when i tried to combine filter rules.
 
 Here is the szenario:
 * Rule1 matches on a criteria and initiate an action.
 for example: 
 From contains i...@gmx.de
 ACTION: forward the message to t...@test.de
 
 * Rule2 matches on a superset of rule1
 for example:
 FROM contains @gmx.de
 ACTION: file message in test@mailbox.
 
 ... but it doesnt work, as i supposed. Rule 2 wasnt recognized.
 A look in the script-file shows, that the rules are combined with elsif.
 
 I´m able to solve that problem with another set of rules - 
 but is that the desired behavior? What does the Stop processing Rule action
 make a sense for?


I concurred. I fixed it :

http://mtn.inverse.ca/revision/diff/633c912a165a7258c1aa8a70d0816daff59274e1/with/de7e6a583e1acc600d976efeef72db979312bb94

Thanks,

Francis

--
flachape...@inverse.ca :: +1.514.755.3640 :: http://www.inverse.ca
Inverse :: Leaders behind SOGo (http://sogo.nu) and PacketFence 
(http://packetfence.org)

-- 
users@sogo.nu
https://inverse.ca/sogo/lists

Re: [SOGo] Combining Filter Rules

2012-07-27 Thread Marc Patermann

Daniel,

daniel.mert...@fit.fraunhofer.de schrieb (27.07.2012 10:26 Uhr):

I got a problem, when i tried to combine filter rules.

Here is the szenario:
* Rule  1 matches on a criteria and initiate an action.
for example: 
From contains i...@gmx.de

ACTION: forward the message to t...@test.de

* Rule2 matches on a superset of rule1
for example:
FROM contains @gmx.de
ACTION: file message in test@mailbox.

... but it doesnt work, as i supposed. Rule 2 wasnt recognized.
A look in the script-file shows, that the rules are combined with elsif.

Are you taking about mail filtering with SIEVE here?
Can you post the SIEVE script?

Marc
--
users@sogo.nu
https://inverse.ca/sogo/lists


Re: [SOGo] Combining Filter Rules

2012-07-27 Thread Daniel Mertens




Are you taking about mail filtering with SIEVE here?

Yes - sorry - the subject wasn´t clear enough!



Can you post the SIEVE script?


snip
require [fileinto];
if anyof (address :contains from i...@gmx.de) {
redirect t...@test.de;
}
elsif anyof (address :contains from gmx.de) {
fileinto Archive;
}
/snip





smime.p7s
Description: S/MIME Cryptographic Signature