Re: [PATCH v4 08/16] reorganize indexing of multipart/signed and multipart/encrypted
[notmuch-archives.git] / 2e / 0fa92b5fdd2bc33d0378b10979f5d44cc78376
1 Return-Path: <teythoon@jade-hamburg.de>\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 olra.theworths.org (Postfix) with ESMTP id B9C59431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 19 Dec 2011 06:14:02 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id ZARqxAPBOeTg for <notmuch@notmuchmail.org>;\r
16         Mon, 19 Dec 2011 06:14:02 -0800 (PST)\r
17 Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
18         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id E48E0431FB6\r
21         for <notmuch@notmuchmail.org>; Mon, 19 Dec 2011 06:14:01 -0800 (PST)\r
22 Received: from mail.jade-hamburg.de (unknown [85.183.11.228])\r
23         (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
24         (No client certificate requested)\r
25         by mail.cryptobitch.de (Postfix) with ESMTPSA id 04F7950FDE9\r
26         for <notmuch@notmuchmail.org>; Mon, 19 Dec 2011 15:14:00 +0100 (CET)\r
27 Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
28         id 1E735DF2A1; Mon, 19 Dec 2011 15:13:59 +0100 (CET)\r
29 Received: from thinkbox.jade-hamburg.de (unknown [85.183.11.228])\r
30         (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
31         (No client certificate requested) (Authenticated sender: teythoon)\r
32         by mail.jade-hamburg.de (Postfix) with ESMTPSA id 09AEADF29F;\r
33         Mon, 19 Dec 2011 15:13:54 +0100 (CET)\r
34 Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)\r
35         (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
36         id 1RcdyR-0003Vn-Ny; Mon, 19 Dec 2011 15:13:51 +0100\r
37 Content-Type: multipart/mixed; boundary="===============1456673022248049802=="\r
38 MIME-Version: 1.0\r
39 References: <E1RamIG-0003si-K3@thinkbox.jade-hamburg.de>\r
40         <4ee8d62a.596ee30a.1833.ffffc33e@mx.google.com>\r
41 To: Patrick Totzke <patricktotzke@googlemail.com>,  notmuch@notmuchmail.org\r
42 In-Reply-To: <4ee8d62a.596ee30a.1833.ffffc33e@mx.google.com>\r
43 From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
44 Subject: Re: [afew] announcing afew,\r
45         an universal tagging solution with some fancy features\r
46 Date: Mon, 19 Dec 2011 15:13:51 +0100\r
47 Message-Id: <E1RcdyR-0003Vn-Ny@thinkbox.jade-hamburg.de>\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Mon, 19 Dec 2011 14:14:02 -0000\r
61 \r
62 --===============1456673022248049802==\r
63 Content-Type: text/plain; charset="utf-8"\r
64 MIME-Version: 1.0\r
65 Content-Transfer-Encoding: quoted-printable\r
66 \r
67 Hey Pazz :)\r
68 \r
69 Quoting Patrick Totzke (2011-12-14 17:59:43)\r
70 >Hi Justus,\r
71 >\r
72 >I have just tried your script and have some questions/remarks about it:\r
73 >\r
74 >* mkdir -p ~/.config/afew ~/.local/share/afew/categories\r
75 >  As far as I can see, this is not needed if one doesn't use ClassifyingFi=\r
76 lter,\r
77 >  so its OK not to do this directly from the setup.py somehow.\r
78 >  But it would be nice if a first run uf `afew --learn` would\r
79 >  create these (or die gracefully instead of raising the afew.DBACL.Backen=\r
80 dError).\r
81 \r
82 Ah yes. Good point...\r
83 \r
84 >* if you renamed the README & co to include the suffix ".md" github would =\r
85 nicely\r
86 >  render them on the project page.\r
87 \r
88 Will do that.\r
89 \r
90 >* I need some more info on how the config works: first, the order in which=\r
91  the\r
92 >  sections are defined specifies the filter-pipeline yes?\r
93 \r
94 Yes.\r
95 \r
96 >  Secondly, what exactly is a "filter object" in the config?\r
97 \r
98 Well, you can define filter types either in the configuration file or\r
99 in pure python code (see afew/filters). To use them, you need to\r
100 create instances of these types.\r
101 \r
102 The config file is just another way of defining python classes and\r
103 creating objects. See afew/Settings.py for details.\r
104 \r
105 >  Specifically, what do these 3 lines do:\r
106 >  https://github.com/teythoon/afew/blob/master/docs/tag_filters#L39\r
107 \r
108 They create two objects (ShitFilter.0 and ShitFilter.1) of type\r
109 ShitFilter (defined in line 32-33). ShitFilter inherits from\r
110 SpamFilter and adjusts the message field. ShitFilter.1 also customizes\r
111 the message.\r
112 \r
113 >* this is surely a user error: I cannot use afew for initial tagging as ex=\r
114 pected:\r
115 >  I installed as stated in the README,\r
116 >  trained some of my existing tags and called `afew --update-reference` an=\r
117 d `afew --update`.\r
118 >  The test with `afew --classify -- ..` works nicely.\r
119 >  Now I tagges all my mails with is:new, and called `afew --tag --new`.\r
120 >  This returns immediately without output and all my messages are still ta=\r
121 gged new.\r
122 >  Also, -vv does not result in any output..\r
123 >  ideas?\r
124 \r
125 Is your new tag called 'is:new'? Mine is just called 'new'. That could\r
126 be a problem since 'new' as tag for new mails is currently hardcoded\r
127 at various locations. I thought it was universally accepted, but then\r
128 again hardcoding these things is obviously a bad practice...\r
129 \r
130 Cheers,\r
131 Justus\r
132 \r
133 --===============1456673022248049802==\r
134 Content-Type: application/octet-stream\r
135 MIME-Version: 1.0\r
136 Content-Transfer-Encoding: base64\r
137 Content-Disposition: attachment; filename=".signature"\r
138 \r
139 bG92ZSB1IGFsb3QgQCxACgo=\r
140 \r
141 --===============1456673022248049802==--\r