[alot] on Arch Linux

2011-12-14 Thread Philipp Überbacher
Hi there, I'm a new notmuch/alot user, this is my first mail since I switched from sup. Yes, switched. notmuch/alot works for me well enough now to be usable. I run Arch Linux. Here's some information for fellow Archers: PKGBUILD for alot-git: https://aur.archlinux.org/packages.php?ID=54955

ANNOUNCE: nottoomuch-addresses.pl version 1.4

2011-12-14 Thread Tomi Ollila
notmuch-addresses.sh -- email address substring matcher -- completion helper version 1.4 is available. This version uses 'notmuch search --sort=newest-first --output=files ...' (instead of notmuch show ...) to retrieve message information from notmuch ... and now scans headers from mail files

[PATCH 2/5] lib: Add a MTIME value to every mail document

2011-12-14 Thread Austin Clements
A few minor comments below. At a higher level, I'm curious what the tag synchronization protocol you're building on top of this is. I can't think of one that doesn't have race conditions, but maybe I'm not thinking about it right. Quoth Thomas Jost on Dec 13 at 6:11 pm: > This is a time_t

[Alpha Patch 2/2] test: update dump-restore tests for 8 bit characters.

2011-12-14 Thread David Bremner
On Thu, 15 Dec 2011 00:36:38 +0400, Dmitry Kurochkin wrote: > > I did not do a proper review. But I think the encoder and decoder > should accept and return the same type, either char* or unsigned char*. > The decision should be based on what type strings (that would be fed to > the encoder and

[afew] announcing afew, an universal tagging solution with some fancy features

2011-12-14 Thread Patrick Totzke
Hi Justus, I have just tried your script and have some questions/remarks about it: * mkdir -p ~/.config/afew ~/.local/share/afew/categories As far as I can see, this is not needed if one doesn't use ClassifyingFilter, so its OK not to do this directly from the setup.py somehow. But it

[PATCH v6 1/2] emacs: User-defined sections in notmuch-hello

2011-12-14 Thread Dmitry Kurochkin
On Wed, 14 Dec 2011 07:11:21 +0400, Dmitry Kurochkin wrote: > Hi Daniel. > > I have finished reviewing this patch at last. Sorry, it is a bit messy. > Overall, I like the patch. It is a very nice improvement. > > I am sure I have missed some important points, but I guess this is the > best I

[Alpha Patch 2/2] test: update dump-restore tests for 8 bit characters.

2011-12-14 Thread David Bremner
From: David Bremner hex-escape: fix for handling of 8 bit chars The low level problem was passing negative numbers to sprintf(s,"%x"); we fix this and clarify the api for hex_(decode|encode) by making encode go from (unsigned char *) (i.e. 8bit) to (char *) and decode

[Alpha Patch 1/2] test: add (currently broken) test 8 bit characters hex-escape and dump-restore

2011-12-14 Thread David Bremner
From: David Bremner The problem is a use of signed chars in places where unsigned chars (i.e. 0-255) should be used. --- Well, I did mention more tests were needed ;). I failed to test 8 bit (>127) stuff and sure enough it was broken. This sets up some tests to demonstrate

[PATCH 2/5] lib: Add a MTIME value to every mail document

2011-12-14 Thread Mark Anderson
On Tue, 13 Dec 2011 11:11:42 -0600, Thomas Jost wrote: > This is a time_t value, similar to the message date (TIMESTAMP). It is first > set > when the message is added to the database, and is then updated every time a > tag > is added or removed. It can thus be used for doing incremental dumps

[PATCH 6/7] py3k: Add and use a mixin class that implements __str__

2011-12-14 Thread Tomi Ollila
On Wed, 14 Dec 2011 11:58:24 +0100, Justus Winter <4winter at informatik.uni-hamburg.de> wrote: > --- [ ... snip ... ] > > -class Filenames(object): > +class Filenames(Python3StringMixIn): > """Represents a list of filenames as returned by notmuch > > This object contains the

[PATCH 3/7] py3k: All strings are unicode strings in py3k

2011-12-14 Thread Tomi Ollila
On Wed, 14 Dec 2011 11:58:21 +0100, Justus Winter <4winter at informatik.uni-hamburg.de> wrote: > --- > bindings/python/notmuch/globals.py |4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/bindings/python/notmuch/globals.py > b/bindings/python/notmuch/globals.py

[PATCH 6/7] py3k: Add and use a mixin class that implements __str__

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/filename.py |7 ++- bindings/python/notmuch/globals.py | 15 +++ bindings/python/notmuch/message.py |8 +++- bindings/python/notmuch/tag.py |7 ++- bindings/python/notmuch/thread.py |7 ++- 5 files changed, 20

[PATCH 3/7] py3k: All strings are unicode strings in py3k

2011-12-14 Thread Justus Winter
will be automatically coerced to unicode if it is used in a unicode context. OTOH it is possible to use from __future__ import unicode_literals to turn all string literals to unicode literals in python 2.x. Justus -- next part -- A non-text attachment was scrubbed... Name: .signature Type: application/octet-stream Size: 17 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111214/30164683/attachment-0001.obj>

[afew] announcing afew,

2011-12-14 Thread Justus Winter
Yes. Cheers, Justus -- next part -- A non-text attachment was scrubbed... Name: .signature Type: application/octet-stream Size: 17 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111214/b2a08933/attachment.obj>

[afew] announcing afew, an universal tagging solution with some fancy features

2011-12-14 Thread Jani Nikula
On Wed, 14 Dec 2011 11:42:36 +0100, Justus Winter <4winter at informatik.uni-hamburg.de> wrote: > https://github.com/teythoon/afew > > It has some nifty features, citing the README: """ Basic tagging stuff requires no configuration, just run $ afew --tag --new To do this automatically you can

[PATCH 7/7] python: add missing conversions from and to utf-8

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/database.py |6 +++--- bindings/python/notmuch/filename.py |2 +- bindings/python/notmuch/message.py |8 bindings/python/notmuch/thread.py |2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH 6/7] py3k: Add and use a mixin class that implements __str__

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/filename.py |7 ++- bindings/python/notmuch/globals.py | 15 +++ bindings/python/notmuch/message.py |8 +++- bindings/python/notmuch/tag.py |7 ++- bindings/python/notmuch/thread.py |6 +++--- 5 files changed, 21

[PATCH 5/7] py3k: the basestring and unicode types are removed in python 3

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/globals.py |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 99e6a10..c52790c 100644 --- a/bindings/python/notmuch/globals.py +++

[PATCH 4/7] py3k: Rename .next() to __next__(), add python2.x compatibility alias

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/database.py |3 ++- bindings/python/notmuch/message.py |3 ++- bindings/python/notmuch/tag.py |3 ++- bindings/python/notmuch/thread.py |3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bindings/python/notmuch/database.py

[PATCH 3/7] py3k: All strings are unicode strings in py3k

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/globals.py |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 54a49b2..99e6a10 100644 --- a/bindings/python/notmuch/globals.py +++

[PATCH 2/7] py3k: The ConfigParser module has been renamed to configparser

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch.py |7 ++- bindings/python/notmuch/database.py |8 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch.py b/bindings/python/notmuch.py index 8d11859..3ff53ec 100755 --- a/bindings/python/notmuch.py +++

[PATCH 1/7] py3k: The execfile built-in has been removed in python 3

2011-12-14 Thread Justus Winter
--- bindings/python/setup.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 286fd19..2e58dab 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -7,7 +7,7 @@ from distutils.core import setup

[python] RFC: supporting python 2 and 3 with one codebase

2011-12-14 Thread Justus Winter
Hi everyone :) attached is a patch series that makes the notmuch python bindings compatible with both python 2.x and python 3.x. There are some workarounds, but those are mostly in globals.py and in my opinion the benefit of supporting both versions with one codebase is totally worth it. Patch

[afew] announcing afew, an universal tagging solution with some fancy features

2011-12-14 Thread Justus Winter
ing for your feedback and patches ;) Justus -- next part -- A non-text attachment was scrubbed... Name: .signature Type: application/octet-stream Size: 17 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111214/f8bd5a9c/attachment.obj>

[afew] announcing afew,

2011-12-14 Thread Kazuo Teramoto
an universal tagging solution with some fancy features From: Kazuo Teramoto In-Reply-To: On 2011-12-14T08:42:36, Justus Winter wrote: >I'd like to introduce my initial tagging approach, afew tags: > >https://github.com/teythoon/afew > Very good! Thanks for it. I'm

[PATCH v6 1/2] emacs: User-defined sections in notmuch-hello

2011-12-14 Thread Dmitry Kurochkin
Hi Daniel. I have finished reviewing this patch at last. Sorry, it is a bit messy. Overall, I like the patch. It is a very nice improvement. I am sure I have missed some important points, but I guess this is the best I can do right now. Perhaps I will find more comments for the next version

[PATCH] test: optionally print subtest number

2011-12-14 Thread Dmitry Kurochkin
On Tue, 13 Dec 2011 15:35:53 -0800, Jameson Graef Rollins wrote: > On Wed, 14 Dec 2011 03:24:23 +0400, Dmitry Kurochkin gmail.com> wrote: > > BTW I have some plans to introduce optional explicit test ids that can > > be used for inter-test dependencies. E.g.: > > > > test_begin_subtest

[PATCH] test: optionally print subtest number

2011-12-14 Thread Dmitry Kurochkin
On Tue, 13 Dec 2011 19:18:16 -0400, David Bremner wrote: > On Tue, 13 Dec 2011 14:22:21 -0800, Jameson Graef Rollins finestructure.net> wrote: > > > I've only been vaguely following this "test count" stuff, but I'm not > > sure I understand what's the point of giving tests a number that is > >

[PATCH] test: optionally print subtest number

2011-12-14 Thread Dmitry Kurochkin
On Tue, 13 Dec 2011 22:55:18 +0200, Tomi Ollila wrote: > On Wed, 14 Dec 2011 00:15:43 +0400, Dmitry Kurochkin gmail.com> wrote: > > On Tue, 13 Dec 2011 15:56:47 -0400, David Bremner > > wrote: > > > From: David Bremner > > > > > > The idea is that $test_count could be used in tests to label

[PATCH] test: optionally print subtest number

2011-12-14 Thread Dmitry Kurochkin
On Tue, 13 Dec 2011 15:56:47 -0400, David Bremner wrote: > From: David Bremner > > The idea is that $test_count could be used in tests to label > intermediate files. The output enabled by this patch (and --debug) > helps figure out which OUTPUT.nn file belongs to which test in case > several

[afew] announcing afew, an universal tagging solution with some fancy features

2011-12-14 Thread Justus Winter
Hey everyone :) I'd like to introduce my initial tagging approach, afew tags: https://github.com/teythoon/afew It has some nifty features, citing the README: * text classification, magic tags aka the mailing list without server * spam handling (flush all tags, add spam) * killed thread

[PATCH 1/7] py3k: The execfile built-in has been removed in python 3

2011-12-14 Thread Justus Winter
--- bindings/python/setup.py |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 286fd19..2e58dab 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -7,7 +7,7 @@ from distutils.core import setup

[PATCH 2/7] py3k: The ConfigParser module has been renamed to configparser

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch.py |7 ++- bindings/python/notmuch/database.py |8 +++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch.py b/bindings/python/notmuch.py index 8d11859..3ff53ec 100755 --- a/bindings/python/notmuch.py +++

[PATCH 3/7] py3k: All strings are unicode strings in py3k

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/globals.py |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 54a49b2..99e6a10 100644 --- a/bindings/python/notmuch/globals.py +++

[PATCH 5/7] py3k: the basestring and unicode types are removed in python 3

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/globals.py |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 99e6a10..c52790c 100644 --- a/bindings/python/notmuch/globals.py +++

[PATCH 4/7] py3k: Rename .next() to __next__(), add python2.x compatibility alias

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/database.py |3 ++- bindings/python/notmuch/message.py |3 ++- bindings/python/notmuch/tag.py |3 ++- bindings/python/notmuch/thread.py |3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bindings/python/notmuch/database.py

[PATCH 6/7] py3k: Add and use a mixin class that implements __str__

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/filename.py |7 ++- bindings/python/notmuch/globals.py | 15 +++ bindings/python/notmuch/message.py |8 +++- bindings/python/notmuch/tag.py |7 ++- bindings/python/notmuch/thread.py |6 +++--- 5 files changed, 21

Re: [afew] announcing afew,

2011-12-14 Thread Kazuo Teramoto
an universal tagging solution with some fancy features From: Kazuo Teramoto kaz@gmail.com In-Reply-To: e1ramig-0003si...@thinkbox.jade-hamburg.de On 2011-12-14T08:42:36, Justus Winter wrote: I'd like to introduce my initial tagging approach, afew tags: https://github.com/teythoon/afew

Re: [PATCH 3/7] py3k: All strings are unicode strings in py3k

2011-12-14 Thread Tomi Ollila
On Wed, 14 Dec 2011 11:58:21 +0100, Justus Winter 4win...@informatik.uni-hamburg.de wrote: --- bindings/python/notmuch/globals.py |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index

Re: [PATCH 6/7] py3k: Add and use a mixin class that implements __str__

2011-12-14 Thread Tomi Ollila
On Wed, 14 Dec 2011 11:58:24 +0100, Justus Winter 4win...@informatik.uni-hamburg.de wrote: --- [ ... snip ... ] -class Filenames(object): +class Filenames(Python3StringMixIn): Represents a list of filenames as returned by notmuch This object contains the Filenames iterator.

Re: [PATCH v6 1/2] emacs: User-defined sections in notmuch-hello

2011-12-14 Thread Dmitry Kurochkin
On Wed, 14 Dec 2011 07:11:21 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: Hi Daniel. I have finished reviewing this patch at last. Sorry, it is a bit messy. Overall, I like the patch. It is a very nice improvement. I am sure I have missed some important points, but I guess

Re: [PATCH 6/7] py3k: Add and use a mixin class that implements __str__

2011-12-14 Thread Justus Winter
Quoting Tomi Ollila (2011-12-14 13:26:38) On Wed, 14 Dec 2011 11:58:24 +0100, Justus Winter 4win...@informatik.uni-hamburg.de wrote: --- [ ... snip ... ] -class Filenames(object): +class Filenames(Python3StringMixIn): Represents a list of filenames as returned by notmuch

[PATCH 6/7] py3k: Add and use a mixin class that implements __str__

2011-12-14 Thread Justus Winter
--- bindings/python/notmuch/filename.py |7 ++- bindings/python/notmuch/globals.py | 15 +++ bindings/python/notmuch/message.py |8 +++- bindings/python/notmuch/tag.py |7 ++- bindings/python/notmuch/thread.py |7 ++- 5 files changed, 20

Re: [afew] announcing afew, an universal tagging solution with some fancy features

2011-12-14 Thread Jani Nikula
On Wed, 14 Dec 2011 11:42:36 +0100, Justus Winter 4win...@informatik.uni-hamburg.de wrote: https://github.com/teythoon/afew It has some nifty features, citing the README: Basic tagging stuff requires no configuration, just run $ afew --tag --new To do this automatically you can add the

Re: [afew] announcing afew, an universal tagging solution with some fancy features

2011-12-14 Thread Patrick Totzke
Hi Justus, I have just tried your script and have some questions/remarks about it: * mkdir -p ~/.config/afew ~/.local/share/afew/categories As far as I can see, this is not needed if one doesn't use ClassifyingFilter, so its OK not to do this directly from the setup.py somehow. But it

ANNOUNCE: nottoomuch-addresses.pl version 1.4

2011-12-14 Thread Tomi Ollila
notmuch-addresses.sh -- email address substring matcher -- completion helper version 1.4 is available. This version uses 'notmuch search --sort=newest-first --output=files ...' (instead of notmuch show ...) to retrieve message information from notmuch ... and now scans headers from mail files

[Alpha Patch 2/2] test: update dump-restore tests for 8 bit characters.

2011-12-14 Thread David Bremner
From: David Bremner brem...@debian.org hex-escape: fix for handling of 8 bit chars The low level problem was passing negative numbers to sprintf(s,%x); we fix this and clarify the api for hex_(decode|encode) by making encode go from (unsigned char *) (i.e. 8bit) to (char *) and decode

[Alpha Patch 1/2] test: add (currently broken) test 8 bit characters hex-escape and dump-restore

2011-12-14 Thread David Bremner
From: David Bremner brem...@debian.org The problem is a use of signed chars in places where unsigned chars (i.e. 0-255) should be used. --- Well, I did mention more tests were needed ;). I failed to test 8 bit (127) stuff and sure enough it was broken. This sets up some tests to demonstrate the

Re: [Alpha PATCH 6/6] test: second set of dump/restore --format=notmuch tests

2011-12-14 Thread Dmitry Kurochkin
On Tue, 13 Dec 2011 16:27:55 -0400, David Bremner da...@tethera.net wrote: From: David Bremner brem...@debian.org These one need the completed functionality in notmuch-restore. Fairly exotic tags are tested, but no weird message id's. --- test/dump-restore | 33

Re: [Alpha Patch 2/2] test: update dump-restore tests for 8 bit characters.

2011-12-14 Thread Dmitry Kurochkin
On Wed, 14 Dec 2011 16:14:01 -0400, David Bremner da...@tethera.net wrote: From: David Bremner brem...@debian.org hex-escape: fix for handling of 8 bit chars The low level problem was passing negative numbers to sprintf(s,%x); we fix this and clarify the api for hex_(decode|encode) by

Re: [PATCH 2/5] lib: Add a MTIME value to every mail document

2011-12-14 Thread Mark Anderson
On Tue, 13 Dec 2011 11:11:42 -0600, Thomas Jost schno...@schnouki.net wrote: This is a time_t value, similar to the message date (TIMESTAMP). It is first set when the message is added to the database, and is then updated every time a tag is added or removed. It can thus be used for doing

[alot] on Arch Linux

2011-12-14 Thread Philipp Überbacher
Hi there, I'm a new notmuch/alot user, this is my first mail since I switched from sup. Yes, switched. notmuch/alot works for me well enough now to be usable. I run Arch Linux. Here's some information for fellow Archers: PKGBUILD for alot-git: https://aur.archlinux.org/packages.php?ID=54955

Re: [Alpha Patch 2/2] test: update dump-restore tests for 8 bit characters.

2011-12-14 Thread David Bremner
On Thu, 15 Dec 2011 00:36:38 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: I did not do a proper review. But I think the encoder and decoder should accept and return the same type, either char* or unsigned char*. The decision should be based on what type strings (that would be

Re: [PATCH 2/5] lib: Add a MTIME value to every mail document

2011-12-14 Thread Austin Clements
A few minor comments below. At a higher level, I'm curious what the tag synchronization protocol you're building on top of this is. I can't think of one that doesn't have race conditions, but maybe I'm not thinking about it right. Quoth Thomas Jost on Dec 13 at 6:11 pm: This is a time_t

Re: [PATCH] debian: add upstream-tag and fix debian-tag configs for git-buildpackage

2011-12-14 Thread David Bremner
On Sun, 11 Dec 2011 17:21:09 -0800, Jameson Graef Rollins jroll...@finestructure.net wrote: Debian tags have been using '/', instead of '-' as a separator. pushed d ___ notmuch mailing list notmuch@notmuchmail.org

Re: [PATCH v3] emacs: support notmuch new as a notmuch-poll-script

2011-12-14 Thread David Bremner
On Mon, 12 Dec 2011 22:50:04 +0200, Jani Nikula j...@nikula.org wrote: Support nil value for notmuch-poll-script to run notmuch new instead of an external script, and make this the new default. notmuch new is run using the configured notmuch-command. pushed. d