Re: sieve filter based on utf-8 encoded text part of address

2019-10-01 Thread Anatoli via Info-cyrus
Hi Pete,

I guess the 'address' test command matches only the actual address, not
the description. In your example it would match "my@address".

I suggest you check
https://www.cyrusimap.org/imap/reference/admin/sieve.html and
https://thsmi.github.io/sieve-reference/en/index.html.

Regards,
Anatoli

On 30/9/19 08:12, Hans-Peter Jansen wrote:
> Hi,
> 
> I try to filter based on the text part of an utf-8 encoded address, but the 
> string matches neither decoded nor encoded.
> 
> This is a periodic mail from one of a couple of different routers, where only 
> the text part defines a useful origin:
> 
> From: "=?UTF-8?B?RlJJVFohQm94IDc0OTAgU0ZK?=" 
> 
> which decodes to:
> 
> FRITZ!Box 7490 SFJ 
> 
> sieve filter script except:
> 
> ; my requirements
> require ["fileinto", "reject", "regex", "vacation"];
> 
> ; the filter rule
> if address :contains "From" [
>   "FRITZ!Box 7490 SFJ",
>   "=?UTF-8?B?RlJJVFohQm94IDc0OTAgU0ZK?="
> ] {
> fileinto "INBOX.some.folder";
> stop;
> }
> 
> How do I do this correctly?
> 
> Thanks in advance,
> Pete
> 
> 
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> 

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: strange sort order of these emails

2019-10-01 Thread Anatoli via Info-cyrus
Hi Gabriele,

I suggest you send the actual headers of both emails here as plain text
in the body of the email, as people may not want to open attachments
from unknown sources. Also it's easier to analyze and reply this way.

Regards,
Anatoli

On 26/9/19 11:52, Gabriele Bulfon wrote:
> Hello,
> someone received these two emails in the inbox, but strangely sorting by
> date descending was showing them swapped (they have same date but
> different hour).
> I did not beleive my eyes, so I downloaded the two eml files and
> uploaded them into a cyrus folder of mine, on another server.
> Same effect: the SORT command with descending DATE, will always returns
> indexes in swapped order, so the one at 3am is before the one at 9am.
>  
> I looked at all the headers but didn't find anything strange.
> Cyrus is version 2.5.11.
> Any idea?!
> Thanks!
> Gabriele
> 
>  
> *Sonicle S.r.l. *: http://www.sonicle.com 
> *Music: *http://www.gabrielebulfon.com 
> *Quantum Mechanics : *http://www.cdbaby.com/cd/gabrielebulfon
> 
> 
> Cyrus Home Page: http://www.cyrusimap.org/
> List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
> To Unsubscribe:
> https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus
> 

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus