Re: [Imap-protocol] SEARCH semantics

Arnt Gulbrandsen <[email protected]> Wed, 8 Apr 2015 10:05:28 +0200
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
David Harris writes:
> 3: The following search is valid, according to the syntax in RFC3501:
>
>    xx SEARCH OR OR <exp1> <exp2> <exp3>
>
> and allows an OR expression to cover three terms instead of 
> just two. As such, it 
> seems quite useful, but it would certainly have mystified my 
> old search code (it was 
> rubbish, as I've pointed out), and I was wondering how 
> generally safe it would be to 
> use this type of expression?

I've seen this kind of thing many times, e.g. OR OR FROM x TO x CC x, and I 
think it's fairly widely used. IIRC the Symantec IMAP proxy uses nested ORs 
en masse.

I agree about the vagueness with regard to searching. My best advice is to 
do what seems useful to users, and make searching inclusive rather than 
exact.

Arnt

_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman13.u.washington.edu/mailman/listinfo/imap-protocol