Re: [afew] announcing afew, an universal tagging solution with some fancy features
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 19 Dec 2011 14:13:51 +0000 (15:13 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:41:04 +0000 (09:41 -0800)
2e/0fa92b5fdd2bc33d0378b10979f5d44cc78376 [new file with mode: 0644]

diff --git a/2e/0fa92b5fdd2bc33d0378b10979f5d44cc78376 b/2e/0fa92b5fdd2bc33d0378b10979f5d44cc78376
new file mode 100644 (file)
index 0000000..107dbbe
--- /dev/null
@@ -0,0 +1,141 @@
+Return-Path: <teythoon@jade-hamburg.de>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id B9C59431FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Dec 2011 06:14:02 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id ZARqxAPBOeTg for <notmuch@notmuchmail.org>;\r
+       Mon, 19 Dec 2011 06:14:02 -0800 (PST)\r
+Received: from mail.cryptobitch.de (cryptobitch.de [88.198.7.68])\r
+       (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E48E0431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Dec 2011 06:14:01 -0800 (PST)\r
+Received: from mail.jade-hamburg.de (unknown [85.183.11.228])\r
+       (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by mail.cryptobitch.de (Postfix) with ESMTPSA id 04F7950FDE9\r
+       for <notmuch@notmuchmail.org>; Mon, 19 Dec 2011 15:14:00 +0100 (CET)\r
+Received: by mail.jade-hamburg.de (Postfix, from userid 401)\r
+       id 1E735DF2A1; Mon, 19 Dec 2011 15:13:59 +0100 (CET)\r
+Received: from thinkbox.jade-hamburg.de (unknown [85.183.11.228])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested) (Authenticated sender: teythoon)\r
+       by mail.jade-hamburg.de (Postfix) with ESMTPSA id 09AEADF29F;\r
+       Mon, 19 Dec 2011 15:13:54 +0100 (CET)\r
+Received: from teythoon by thinkbox.jade-hamburg.de with local (Exim 4.77)\r
+       (envelope-from <teythoon@thinkbox.jade-hamburg.de>)\r
+       id 1RcdyR-0003Vn-Ny; Mon, 19 Dec 2011 15:13:51 +0100\r
+Content-Type: multipart/mixed; boundary="===============1456673022248049802=="\r
+MIME-Version: 1.0\r
+References: <E1RamIG-0003si-K3@thinkbox.jade-hamburg.de>\r
+       <4ee8d62a.596ee30a.1833.ffffc33e@mx.google.com>\r
+To: Patrick Totzke <patricktotzke@googlemail.com>,  notmuch@notmuchmail.org\r
+In-Reply-To: <4ee8d62a.596ee30a.1833.ffffc33e@mx.google.com>\r
+From: Justus Winter <4winter@informatik.uni-hamburg.de>\r
+Subject: Re: [afew] announcing afew,\r
+       an universal tagging solution with some fancy features\r
+Date: Mon, 19 Dec 2011 15:13:51 +0100\r
+Message-Id: <E1RcdyR-0003Vn-Ny@thinkbox.jade-hamburg.de>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 19 Dec 2011 14:14:02 -0000\r
+\r
+--===============1456673022248049802==\r
+Content-Type: text/plain; charset="utf-8"\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Hey Pazz :)\r
+\r
+Quoting Patrick Totzke (2011-12-14 17:59:43)\r
+>Hi Justus,\r
+>\r
+>I have just tried your script and have some questions/remarks about it:\r
+>\r
+>* mkdir -p ~/.config/afew ~/.local/share/afew/categories\r
+>  As far as I can see, this is not needed if one doesn't use ClassifyingFi=\r
+lter,\r
+>  so its OK not to do this directly from the setup.py somehow.\r
+>  But it would be nice if a first run uf `afew --learn` would\r
+>  create these (or die gracefully instead of raising the afew.DBACL.Backen=\r
+dError).\r
+\r
+Ah yes. Good point...\r
+\r
+>* if you renamed the README & co to include the suffix ".md" github would =\r
+nicely\r
+>  render them on the project page.\r
+\r
+Will do that.\r
+\r
+>* I need some more info on how the config works: first, the order in which=\r
+ the\r
+>  sections are defined specifies the filter-pipeline yes?\r
+\r
+Yes.\r
+\r
+>  Secondly, what exactly is a "filter object" in the config?\r
+\r
+Well, you can define filter types either in the configuration file or\r
+in pure python code (see afew/filters). To use them, you need to\r
+create instances of these types.\r
+\r
+The config file is just another way of defining python classes and\r
+creating objects. See afew/Settings.py for details.\r
+\r
+>  Specifically, what do these 3 lines do:\r
+>  https://github.com/teythoon/afew/blob/master/docs/tag_filters#L39\r
+\r
+They create two objects (ShitFilter.0 and ShitFilter.1) of type\r
+ShitFilter (defined in line 32-33). ShitFilter inherits from\r
+SpamFilter and adjusts the message field. ShitFilter.1 also customizes\r
+the message.\r
+\r
+>* this is surely a user error: I cannot use afew for initial tagging as ex=\r
+pected:\r
+>  I installed as stated in the README,\r
+>  trained some of my existing tags and called `afew --update-reference` an=\r
+d `afew --update`.\r
+>  The test with `afew --classify -- ..` works nicely.\r
+>  Now I tagges all my mails with is:new, and called `afew --tag --new`.\r
+>  This returns immediately without output and all my messages are still ta=\r
+gged new.\r
+>  Also, -vv does not result in any output..\r
+>  ideas?\r
+\r
+Is your new tag called 'is:new'? Mine is just called 'new'. That could\r
+be a problem since 'new' as tag for new mails is currently hardcoded\r
+at various locations. I thought it was universally accepted, but then\r
+again hardcoding these things is obviously a bad practice...\r
+\r
+Cheers,\r
+Justus\r
+\r
+--===============1456673022248049802==\r
+Content-Type: application/octet-stream\r
+MIME-Version: 1.0\r
+Content-Transfer-Encoding: base64\r
+Content-Disposition: attachment; filename=".signature"\r
+\r
+bG92ZSB1IGFsb3QgQCxACgo=\r
+\r
+--===============1456673022248049802==--\r