Sieve filter with spaces

Michael Menge michael.menge at zdv.uni-tuebingen.de
Tue May 26 09:27:22 EDT 2009


Hi

have you tried

header :contains "from" "Mall LM Giver"



Quoting Gabriele Bulfon <gbulfon at sonicle.com>:

> Uhm....so...how would I let it match the complete From header  
> instead of just the email address?
> I assumed that "from" was all the from string, including the display name.
> And...actually I have remembrances of having the same problem with a  
> Subject containing spaces...
> Gabriele Bulfon - Sonicle S.r.l.
> Tel +39 028246016 Int. 30 - Fax +39 028243880
> Via Felice Cavallotti 16 - 20089, Rozzano - Milano - ITALY
> http://www.sonicle.com
> ----------------------------------------------------------------------------------
> Da: Michael Menge <michael.menge at zdv.uni-tuebingen.de>
> A: info-cyrus at lists.andrew.cmu.edu
> Data: 26 maggio 2009 11.30.27 CEST
> Oggetto: Re: Sieve filter with spaces
> Hi,
> Quoting Gabriele Bulfon <gbulfon at sonicle.com>:
>> Hello,
>> I'm having trouble with some filters that match a sentence with spaces.
>> Is there a special way I should specify spaces in a rule?
>> This is the rule that is not considered at all:
>> ...
>> elsif allof (address :contains ["from"] "Mall LM Giver") {
>>         fileinto "SL.Mall";
>> }
>> ...
>> The mails that should be matched, all contains this header:
>> ...
>> From: "Mall LM Giver"
>> <2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com>
>> ...
> The space is not the problem. String has to match the address not
> the display name. In your case
> "2yojfioavbclku66o6sizjkk32inpbiaqqbysp3foyqi2d5lsrknu3ks6svsd35v at im.agni.lindenlab.com"
> --------------------------------------------------------------------------------
> M.Menge                                Tel.: (49) 7071/29-70316
> Universität Tübingen                   Fax.: (49) 7071/29-5912
> Zentrum für Datenverarbeitung          mail:
> michael.menge at zdv.uni-tuebingen.de
> Wächterstraße 76
> 72074 Tübingen
> ----
> Cyrus Home Page: http://cyrusimap.web.cmu.edu/
> Cyrus Wiki/FAQ: http://cyrusimap.web.cmu.edu/twiki
> List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html
>



--------------------------------------------------------------------------------
M.Menge                                Tel.: (49) 7071/29-70316
Universität Tübingen                   Fax.: (49) 7071/29-5912
Zentrum für Datenverarbeitung          mail:  
michael.menge at zdv.uni-tuebingen.de
Wächterstraße 76
72074 Tübingen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5339 bytes
Desc: S/MIME krytographische Unterschrift
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20090526/e2d50c29/attachment.bin 


More information about the Info-cyrus mailing list