Re: [PATCH v3] Allow content preference based on message content.
[notmuch-archives.git] / dc / 800152854ef405c1f9dbe22ed183229500f28d
1 Return-Path: <eg@gaute.vetsj.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 557A46DE01BE\r
6  for <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 01:38:19 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.479\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.479 tagged_above=-999 required=5 tests=[AWL=0.241,\r
12   DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
13  RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id ZgtPIUEKCYtu for <notmuch@notmuchmail.org>;\r
17  Fri, 10 Jun 2016 01:38:11 -0700 (PDT)\r
18 Received: from mail-wm0-f47.google.com (mail-wm0-f47.google.com\r
19  [74.125.82.47]) by arlo.cworth.org (Postfix) with ESMTPS id DDDC86DE0130 for\r
20  <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 01:38:10 -0700 (PDT)\r
21 Received: by mail-wm0-f47.google.com with SMTP id k204so92077322wmk.0\r
22  for <notmuch@notmuchmail.org>; Fri, 10 Jun 2016 01:38:10 -0700 (PDT)\r
23 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
24  d=gaute-vetsj-com.20150623.gappssmtp.com; s=20150623;\r
25  h=date:from:subject:to:cc:references:in-reply-to:user-agent\r
26  :message-id:mime-version:content-transfer-encoding;\r
27  bh=P21RWLKa/uWEzsk1DFcVa4TUlF8jlM/k7RXiqj2E/J8=;\r
28  b=stSS5iqAkRiiadhozZ+9r6IIDBVT3Sa96C1yzK6GZwPuyQwg+DGFZIGOq0tO5D8Gt6\r
29  upoNmLnSpAl0UvLyDYdvG8849sj3EXCGoxNcgRAA5MAOEDZY08Kwjn16270LDWp5rHSo\r
30  GvfLW7T2QObgOwI6xI57SH8gNvS6AMo7O9H43PIkkNI0iCSAeOiMlLuQsUToeXO6HuyZ\r
31  kceM2MVzxuXozwKSATjsG0gF4i/WmVZtdVMh5f61bLmw8b4tagjZhxA5nXCO7m0vMa2a\r
32  48hA32Hrv8guS6koRBlBoEEeho5mhAe0h1u1Hj4i69KiYzd2XLIQQX2cOMQW8n5e5bkY\r
33  XmLg==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35  d=1e100.net; s=20130820;\r
36  h=x-gm-message-state:date:from:subject:to:cc:references:in-reply-to\r
37  :user-agent:message-id:mime-version:content-transfer-encoding;\r
38  bh=P21RWLKa/uWEzsk1DFcVa4TUlF8jlM/k7RXiqj2E/J8=;\r
39  b=Lnn07+R1sxWGpfCopDOpU1ArMJIMK08YuM6lrustBcsDSsh2O9fz1fU4mVH4nKvSRw\r
40  80wjMIi1ozvRtt5wFABEHGBo2HnBfnqZvO8EM9yMaC8LFRMNM6sEDLl1Zr3qiEfXoBFi\r
41  Z5GuR0Zcdwyt4WNXb+u9JYxu8rDk7xhuhAbDUwervFTy1bF1OksyKcOdzIOZ0ziKGJlF\r
42  30PkxETAhSQMQEHYOnpkdvCYJwtbz4ovFtCIzwpDkq47S33Rqp/rYCwORDtB+UenHRm0\r
43  N2h2bZCBI4ed5DQj7s5ZbEypKBOXgHFD1BeOkU5zgAC+H9nFMuIz6Af123Q3q9UdZhH/\r
44  HDHQ==\r
45 X-Gm-Message-State:\r
46  ALyK8tKov1hxyArtskk2sgMpv2/XiqM6CGZTl+9QOI+ToExvxULt0FlnZVKWiPKkPgERAg==\r
47 X-Received: by 10.28.176.7 with SMTP id z7mr1435714wme.17.1465547888501;\r
48  Fri, 10 Jun 2016 01:38:08 -0700 (PDT)\r
49 Received: from localhost (241.89-20-241.enivest.net. [89.20.241.241])\r
50  by smtp.gmail.com with ESMTPSA id m5sm11180254wji.16.2016.06.10.01.38.06\r
51  (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
52  Fri, 10 Jun 2016 01:38:06 -0700 (PDT)\r
53 Date: Fri, 10 Jun 2016 08:38:05 +0000\r
54 From: Gaute Hope <eg@gaute.vetsj.com>\r
55 Subject: Re: [PATCH] WIP: regexp matching in 'subject' and 'from'\r
56 To: David Bremner <david@tethera.net>, Austin Clements\r
57  <aclements@csail.mit.edu>\r
58 Cc: sfischme@uwaterloo.ca, notmuch <notmuch@notmuchmail.org>\r
59 References: <1465265149-7174-1-git-send-email-david@tethera.net>\r
60  <1465525688-30913-1-git-send-email-david@tethera.net>\r
61 In-Reply-To: <1465525688-30913-1-git-send-email-david@tethera.net>\r
62 User-Agent: astroid/v0.5-221-g4c2c7173 (https://github.com/gauteh/astroid)\r
63 Message-Id: <1465547660-astroid-0-nudmv20lbk-1296@strange>\r
64 MIME-Version: 1.0\r
65 Content-Type: text/plain; charset=utf-8; format=flowed\r
66 Content-Transfer-Encoding: quoted-printable\r
67 X-BeenThere: notmuch@notmuchmail.org\r
68 X-Mailman-Version: 2.1.20\r
69 Precedence: list\r
70 List-Id: "Use and development of the notmuch mail system."\r
71  <notmuch.notmuchmail.org>\r
72 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
73  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
75 List-Post: <mailto:notmuch@notmuchmail.org>\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
77 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
78  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
79 X-List-Received-Date: Fri, 10 Jun 2016 08:38:19 -0000\r
80 \r
81 David Bremner writes on juni 10, 2016 4:28:\r
82 > the idea is that you can run\r
83 >=20\r
84 > % notmuch search subject_re:<your-favourite-regexp>\r
85 > % notmuch search from_re:<your-favourite-regexp>'\r
86 >=20\r
87 > or\r
88 >=20\r
89 > % notmuch search subject:"your usual phrase search"\r
90 > % notmuch search from:"usual phrase search"\r
91 >=20\r
92 > This should also work with bindings, since it extends the query parser.\r
93 >=20\r
94 > This is trivial to extend for other value slots, but currently the only\r
95 > value slots are date, message_id, from, subject, and last_mod. Date is\r
96 > already searchable, and message_id is not obviously useful to regex\r
97 > match.\r
98 > ---\r
99 >=20\r
100 > This is more or less complete codewise, it fixes the know problems\r
101 > with the last version. Names of prefixes are debatable, and of course\r
102 > it needs doc and tests.  I don't see any reason not to do this at the mom=\r
103 ent,\r
104 > since it's basically free; no new terms are added to the database.\r
105 \r
106 Cool!\r
107 \r
108 Would it break a lot of things if you just replace the original prefix?\r
109 \r
110 Could it be made to work on the message body?\r
111 \r
112 Regards, Gaute\r
113 \r
114 =\r