From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 732868640768 X-Gmail-Labels: Topic type: QUESTION_AND_ANSWER X-Google-Groups: supmua X-Google-Thread: 3030fda1bf,c76173002746d0c6 X-Google-Attributes: gid3030fda1bf,domainid0,public,googlegroup X-Google-NewGroupId: yes X-Received: by 10.112.42.236 with SMTP id r12mr13370875lbl.2.1430598768018; Sat, 02 May 2015 13:32:48 -0700 (PDT) X-BeenThere: supmua@googlegroups.com Received: by 10.152.36.7 with SMTP id m7ls650885laj.70.gmail; Sat, 02 May 2015 13:32:47 -0700 (PDT) X-Received: by 10.112.162.228 with SMTP id yd4mr13254033lbb.8.1430598767539; Sat, 02 May 2015 13:32:47 -0700 (PDT) Return-Path: Received: from mout.web.de (mout.web.de. [212.227.15.4]) by gmr-mx.google.com with ESMTPS id bc3si118949wib.2.2015.05.02.13.32.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 02 May 2015 13:32:47 -0700 (PDT) Received-SPF: pass (google.com: domain of ruthard.baudach@web.de designates 212.227.15.4 as permitted sender) client-ip=212.227.15.4; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of ruthard.baudach@web.de designates 212.227.15.4 as permitted sender) smtp.mail=ruthard.baudach@web.de Received: from localhost ([94.216.24.169]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0LgYRZ-1ZZkbr3vj3-00nvyY for ; Sat, 02 May 2015 22:32:47 +0200 From: Ruthard Baudach To: supmua Subject: Re: [sup] Strangeness in search syntax In-reply-to: References: Date: Sat, 02 May 2015 12:22:21 +0200 Message-Id: <1430561884-sup-6859@ruthard-lappi> User-Agent: Sup/0.21.0 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; boundary="=-1430562145-574359-2980-2143-3-=" X-Provags-ID: V03:K0:XzaT9WlApejTeAtCMplPEUGh3y9F8Ixps4AeLbPJ7tkvYiIzOcZ k+5V+p2/ESw48ipZPybk2I4FOgFqU9cNu1ZKzluzqWVVQIO79s8SnYje/2nNSVB6996K6eZ 9XAL4oPbXVkesFsRVYYapI51hi4ucpLY738QUYxwGQTwTLjDFYFHCxHPft1hQeuBDNX39Hw s/Ln3A00o0Gn2lW7jyAUA== X-UI-Out-Filterresults: notjunk:1; --=-1430562145-574359-2980-2143-3-= Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Greetings back, This is not sup, but xapian related. Xapian (www.xapian.org) draws its power from stemming and indexing the documents it is fed, thus only being able to find what it's stemmer considers to be a "word". I'm not a xapian expert -- only played a bit with it -- but unless there are some deeply buried settings in the xapian API to add brackets to xapian's concept of a word, it's not possible to distinguish [SECURITY] and SECURITY. By the way, this would not be the sup way to do it anyhow. We've got labels, so the thing to do would be to set up a before-add-message hook to autolabel incomming email from Debian with subject [SECURITY], and search for `label:debian AND label:security` Or simply search for `from:debian-security-announce@lists.debian.org AND subject:security` (and label them with debsec or so for faster access -- this address is so long!) Regards, Ruthard >=3D=3D Ausz=C3=BCge aus der Nachricht von Michael Parks vom 2015-04-30 = 11:14: > Greetings all, > = > I've noticed something interesting when trying to do searches against = > specific message fields. As an example, I'm signed up to the Debian = > security advisories list, and those are all tagged with a "[SECURITY]" = in = > the subject line. Getting sup to retrieve these messages, and only thes= e = > messages, has proven to be problematic. > = > Specifically, it appears as if the brackets are ignored. If I run a ful= l = > query for: > = > subject:"[SECURITY]" > = > ..I also get other messages which have the word "security" in the subje= ct = > lines. Similar searches which return identical results include: > = > subject: [SECURITY] > subject:[SECURITY] > subject:\[SECURITY\] > subject: \[SECURITY\] > subject:"\[SECURITY\]" > = > ..none of which result in the desired search behavior. It's as if the = > brackets are being silently ignored. > = > I just wanted to ask and make sure I'm not doing something silly before= = > opening a bug on this :) > = > --M > = > Greetings all, > = > I've noticed something interesting when trying to do searches agains= t > specific message fields. As an example, I'm signed up to the Debian > security advisories list, and those are all tagged with a "[SECURITY= ]" in > the subject line. Getting sup to retrieve these messages, and only t= hese > messages, has proven to be problematic. > = > Specifically, it appears as if the brackets are ignored. If I run a = full > query for: > = > subject:"[SECURITY]" > = > ..I also get other messages which have the word "security" in the su= bject > lines. Similar searches which return identical results include: > = > subject: [SECURITY] > subject:[SECURITY] > subject:\[SECURITY\] > subject: \[SECURITY\] > subject:"\[SECURITY\]" > = > ..none of which result in the desired search behavior. It's as if th= e > brackets are being silently ignored. > = > I just wanted to ask and make sure I'm not doing something silly bef= ore > opening a bug on this :) > = > --M > = > -- > You received this message because you are subscribed to the Google G= roups > "The Sup email client" group. > To unsubscribe from this group and stop receiving emails from it, se= nd an > email to [1]supmua+unsubscribe@googlegroups.com. > To post to this group, send email to [2]supmua@googlegroups.com. > To view this discussion on the web visit > [3]https://groups.google.com/d/msgid/supmua/fe7dd94b-49bf-4495-a5b6-= 591ede08a6ba%40googlegroups.com. > For more options, visit [4]https://groups.google.com/d/optout. > = > References > = > Visible links > 1. mailto:supmua+unsubscribe@googlegroups.com > 2. mailto:supmua@googlegroups.com > 3. https://groups.google.com/d/msgid/supmua/fe7dd94b-49bf-4495-a5b6-= 591ede08a6ba%40googlegroups.com?utm_medium=3Demail&utm_source=3Dfooter > 4. https://groups.google.com/d/optout -- = Dr. Ruthard Baudach Speckertsweg 36a 97209 Veitsh=C3=B6chheim ---- Emails bitte verschl=C3=BCsseln und signieren. Meine PGP-Id: 0xAC5AC6C2 --=-1430562145-574359-2980-2143-3-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJVRKVdAAoJEA852hysWsbCotYH/1r6gyVwSfMVgc0sp5FkkN34 vzR0535g80DPPhrbi+6+sLlzHkVJR6Tp8r4/AglKHpI3vvKuZGD1ptF4rFTmIiT+ E/F5/SGq8ehQerw9t+yWp8nPpvJ0Q69DvsxqkMbTbG60CQt6P/vVQN96Kb5X5CKb 1UlHY8JuSJsHKwvVjitJgxHwsVdhXZs0LwLKolippBX6GGjrqRfLXabWQa3JJlqr Li5Tr1PCZ4r4cLVuHydNTA6M3x5oBfquuFCtygDZ+4jMitjTxvJMBK+nST0f6pSn xejwBdcvc4+LmIYsGa1w3/CarDHclURs7niL3/G45dsmKwhedh4Xb3QS247YvbA= =VPhx -----END PGP SIGNATURE----- --=-1430562145-574359-2980-2143-3-=--