Re: Complex virtual folder
"Greg A. Woods" <[email protected]> Thu, 03 Jan 2019 18:52:40 -0800
| Newsgroups | gmane.mail.wanderlust.general |
|---|---|
| Organization | Planix, Inc. |
| Message-ID | <m1gfFbE-0036tPC__6125.56578494168$1546570417$gmane$org@more.local> |
At Thu, 03 Jan 2019 16:45:15 -0800, Erik Hetzner <[email protected]> wrote: Subject: Re: Complex virtual folder > > Anecdotally, both AND and OR work fine for me on dovecot. AND works > for me on gmail, but not OR. I’m no IMAP expert but I thought the > parentheses were allowed. See, e.g. > https://www.limilabs.com/blog/imap-search-requires-parentheses I'm not sure I'm reading it entirely correctly, but my understanding is that the IMAPv4 SEARCH command uses NPN (normal Polish Notation, aka prefix notation), and so the use of parenthesis for grouping is not going to work the way elmo-imap4 is doing it. I.e. it should look a wee bit more like lisp than C, and indeed one test confirms: . SEARCH (OR KEYWORD NotJunk KEYWORD JunkRecorded) * SEARCH 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 80 88 93 94 95 98 102 103 104 115 116 118 119 122 123 126 127 128 129 130 132 133 134 135 139 140 146 147 149 150 152 . OK Completed (84 msgs in 0.000 secs) -- Greg A. Woods Planix, Inc. <[email protected]> +1 250 762-7675 http://www.planix.com/
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCXC7KeAAKCRBmfXG3eL/0 fyxyAKCKssCKy9p9bKokvdop5L6T7khFCQCfTgcuxlaT1Czrx4Ww6g3u4OHvFE4= =Zrnv -----END PGP SIGNATURE-----