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

2011-12-11 Thread Jani Nikula
Let notmuch-poll-script be a function as well as a string. Make default value nil instead of an empty string, but allow "" for backwards compatibility. Add a notmuch poll function to call "notmuch new" using the configured notmuch-command. This allows taking better advantage of the "notmuch new"

[PATCH] util/hex-escape.[ch]: encoding/decoding strings into restricted character set

2011-12-11 Thread Dmitry Kurochkin
On Sun, 11 Dec 2011 12:19:44 -0400, David Bremner wrote: > From: David Bremner > > The character set is chosen to be suitable for pathnames, and the same > as that used by contrib/nmbug. The new encoded/decoded strings are > allocated using talloc. > --- > This isn't urgent, but it is useful

[PATCH] cli: factor out config handling code to get/set lists.

2011-12-11 Thread Dmitry Kurochkin
Hi David. On Sun, 11 Dec 2011 12:07:51 -0400, David Bremner wrote: > From: David Bremner > > Two new internal routines are created _config_get_list and > _config_set_list; the notmuch_config_get_* functions that deal with > lists are simply wrappers for these functions. Looks good to me.

experimental logging branch

2011-12-11 Thread David Bremner
On Sat, 10 Dec 2011 23:27:02 -0400, David Bremner wrote: > This uses the jlog library (http://labs.omniti.com/labs/jlog) > to atomically log messages in pub-sub model. Some more explanations. Part 1: pub-what? = What is pub-sub? Conceptually you can think of it as a set of

[alot] announcing v0.2 aka. "robot santa"

2011-12-11 Thread Patrick Totzke
Hi everyone! I have just released version 0.2 of my terminal GUI `alot`. You can grab a tarball here [0]. There are some halfway working solutions for long standing open feature requests (e.g. gnupg integration, messages search..) lying around. However, I decided against working on those and

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

2011-12-11 Thread Austin Clements
Quoth Jani Nikula on Dec 12 at 1:10 am: >On Dec 12, 2011 12:56 AM, "Austin Clements" <[1]amdragon at mit.edu> wrote: >> >> Quoth Dmitry Kurochkin on Dec 12 at ?2:00 am: >> > Hi Jani. >> > >> > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula <[2]jani at nikula.org> >

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

2011-12-11 Thread Austin Clements
Quoth Dmitry Kurochkin on Dec 12 at 2:00 am: > Hi Jani. > > On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula wrote: > > Let notmuch-poll-script be a function as well as a string. Make default > > value nil instead of an empty string, but allow "" for backwards > > compatibility. Add a notmuch

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

2011-12-11 Thread Jameson Graef Rollins
Debian tags have been using '/', instead of '-' as a separator. --- debian/gbp.conf |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/debian/gbp.conf b/debian/gbp.conf index dba526f..6cb451a 100644 --- a/debian/gbp.conf +++ b/debian/gbp.conf @@ -10,5 +10,8 @@

[alot] announcing v0.2 aka. "robot santa"

2011-12-11 Thread Jameson Graef Rollins
ttp://notmuchmail.org/pipermail/notmuch/attachments/20111211/9c840d18/attachment.pgp>

[alot] announcing v0.2 aka. "robot santa"

2011-12-11 Thread Jameson Graef Rollins
erwise I'll follow through on these things as time permits. jamie. -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111211/5116a1e7/attachment.pgp>

[PATCH v3 0/4] First step of 'show' rewrite

2011-12-11 Thread Dmitry Kurochkin
Austin, good job! :) Thanks for this work. (and continue, please :)) Most comments in my review are minor and/or concern the old code (i.e. the new code does not make it worse). Please feel free to ignore them. I vote for pushing this series as soon as Austin finds it appropriate. If Austin

[PATCH 4/4] show: Rewrite show_message_body to use the MIME tree interface.

2011-12-11 Thread Dmitry Kurochkin
Hi Austin. I enjoyed reviewing this patch. It is a pleasure to see how complex and confusing code becomes much smaller and cleaner. I still have some questions with the new code. It seems confusing to me that part_content is called first and then go envelope headers. But I this is just the

[PATCH v4 0/3] notmuch hooks

2011-12-11 Thread David Bremner
On Fri, 9 Dec 2011 00:48:28 +0200, Jani Nikula wrote: > Hi all, this is v4 of the notmuch hooks patches. Changes: > > * Fix WIFEXITED (id:"8739cxzv30.fsf at nikula.org"). > > * Add tests. v4 is pushed, thanks everyone. d

[PATCH] util/hex-escape.[ch]: encoding/decoding strings into restricted character set

2011-12-11 Thread David Bremner
From: David Bremner The character set is chosen to be suitable for pathnames, and the same as that used by contrib/nmbug. The new encoded/decoded strings are allocated using talloc. --- This isn't urgent, but it is useful for a couple projects I have brewing (nmbug compatible

[PATCH] cli: factor out config handling code to get/set lists.

2011-12-11 Thread David Bremner
From: David Bremner Two new internal routines are created _config_get_list and _config_set_list; the notmuch_config_get_* functions that deal with lists are simply wrappers for these functions. --- notmuch-config.c | 130 +++--

[PATCH] test: cleanup gdb external dependency in atomicity tests

2011-12-11 Thread David Bremner
On Fri, 2 Dec 2011 02:02:46 +0400, Dmitry Kurochkin wrote: > Change atomicity tests to use the new external binary dependencies. > This simplifies the code and makes output consistent. Pushed. d

[PATCH v3] Release memory allocated by internet_address_list_parse_string()

2011-12-11 Thread David Bremner
On Sat, 10 Dec 2011 12:18:54 +0200, Tomi Ollila wrote: > g_object_unref() releases the memory of the InternetAddressList object > returned by internet_address_list_parse_string() -- when last (only) > reference is released, internet_address_list_finalize() will do cleanup. Pushed this version.

[PATCH 1/2] test: add a function to run Python tests

2011-12-11 Thread David Bremner
On Wed, 7 Dec 2011 10:46:17 +0100, Thomas Jost wrote: > The new test_python() function makes writing Python tests a little easier: > - it sets the environment variables as needed > - it redirects stdout to the OUTPUT file (like test_emacs()). pushed both, after rebasing.

Exporting a single email as JSON

2011-12-11 Thread Ciprian Dorin Craciun
On Sun, Dec 11, 2011 at 01:19, Jameson Graef Rollins wrote: > On Sun, 11 Dec 2011 00:46:51 +0200, Ciprian Dorin Craciun gmail.com> wrote: >> ? ? * in my use-case I would need each line of the output to be a >> standalone JSON object of an individual message; (thus I can script >> with Bash

Exporting a single email as JSON

2011-12-11 Thread Ciprian Dorin Craciun
On Sat, Dec 10, 2011 at 22:15, Jameson Graef Rollins wrote: > On Sat, 10 Dec 2011 20:32:22 +0200, Ciprian Dorin Craciun gmail.com> wrote: >> ? ? Quick question: why isn't it reasonable to export a **single** >> email in JSON format (by using the `show` sub-command)? (I mean I >> understand that

Re: [PATCH 4/4] show: Rewrite show_message_body to use the MIME tree interface.

2011-12-11 Thread Dmitry Kurochkin
Hi Austin. I enjoyed reviewing this patch. It is a pleasure to see how complex and confusing code becomes much smaller and cleaner. I still have some questions with the new code. It seems confusing to me that part_content is called first and then go envelope headers. But I this is just the

Re: [PATCH v3 0/4] First step of 'show' rewrite

2011-12-11 Thread Dmitry Kurochkin
Austin, good job! :) Thanks for this work. (and continue, please :)) Most comments in my review are minor and/or concern the old code (i.e. the new code does not make it worse). Please feel free to ignore them. I vote for pushing this series as soon as Austin finds it appropriate. If Austin

Re: [PATCH 1/2] test: add a function to run Python tests

2011-12-11 Thread David Bremner
On Wed, 7 Dec 2011 10:46:17 +0100, Thomas Jost schno...@schnouki.net wrote: The new test_python() function makes writing Python tests a little easier: - it sets the environment variables as needed - it redirects stdout to the OUTPUT file (like test_emacs()). pushed both, after rebasing.

Re: [PATCH 1/2] test: add a function to run Python tests

2011-12-11 Thread Dmitry Kurochkin
Hi Thomas. On Wed, 7 Dec 2011 10:46:17 +0100, Thomas Jost schno...@schnouki.net wrote: The new test_python() function makes writing Python tests a little easier: - it sets the environment variables as needed - it redirects stdout to the OUTPUT file (like test_emacs()). This commit also

[PATCH] cli: factor out config handling code to get/set lists.

2011-12-11 Thread David Bremner
From: David Bremner brem...@debian.org Two new internal routines are created _config_get_list and _config_set_list; the notmuch_config_get_* functions that deal with lists are simply wrappers for these functions. --- notmuch-config.c | 130 +++--

[PATCH] util/hex-escape.[ch]: encoding/decoding strings into restricted character set

2011-12-11 Thread David Bremner
From: David Bremner brem...@debian.org The character set is chosen to be suitable for pathnames, and the same as that used by contrib/nmbug. The new encoded/decoded strings are allocated using talloc. --- This isn't urgent, but it is useful for a couple projects I have brewing (nmbug compatible

Re: [PATCH] cli: factor out config handling code to get/set lists.

2011-12-11 Thread Dmitry Kurochkin
Hi David. On Sun, 11 Dec 2011 12:07:51 -0400, David Bremner da...@tethera.net wrote: From: David Bremner brem...@debian.org Two new internal routines are created _config_get_list and _config_set_list; the notmuch_config_get_* functions that deal with lists are simply wrappers for these

Re: [PATCH] util/hex-escape.[ch]: encoding/decoding strings into restricted character set

2011-12-11 Thread Dmitry Kurochkin
On Sun, 11 Dec 2011 12:19:44 -0400, David Bremner da...@tethera.net wrote: From: David Bremner brem...@debian.org The character set is chosen to be suitable for pathnames, and the same as that used by contrib/nmbug. The new encoded/decoded strings are allocated using talloc. --- This isn't

Re: [PATCH v4 0/3] notmuch hooks

2011-12-11 Thread David Bremner
On Fri, 9 Dec 2011 00:48:28 +0200, Jani Nikula j...@nikula.org wrote: Hi all, this is v4 of the notmuch hooks patches. Changes: * Fix WIFEXITED (id:8739cxzv30@nikula.org). * Add tests. v4 is pushed, thanks everyone. d ___ notmuch mailing

[alot] announcing v0.2 aka. robot santa

2011-12-11 Thread Patrick Totzke
Hi everyone! I have just released version 0.2 of my terminal GUI `alot`. You can grab a tarball here [0]. There are some halfway working solutions for long standing open feature requests (e.g. gnupg integration, messages search..) lying around. However, I decided against working on those and

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

2011-12-11 Thread Jani Nikula
Let notmuch-poll-script be a function as well as a string. Make default value nil instead of an empty string, but allow for backwards compatibility. Add a notmuch poll function to call notmuch new using the configured notmuch-command. This allows taking better advantage of the notmuch new hooks

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

2011-12-11 Thread Dmitry Kurochkin
Hi Jani. On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula j...@nikula.org wrote: Let notmuch-poll-script be a function as well as a string. Make default value nil instead of an empty string, but allow for backwards compatibility. Add a notmuch poll function to call notmuch new using the

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

2011-12-11 Thread Jani Nikula
Hi Dmitry - On Mon, 12 Dec 2011 02:00:45 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula j...@nikula.org wrote: Let notmuch-poll-script be a function as well as a string. Make default value nil instead of an empty string, but allow

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

2011-12-11 Thread Dmitry Kurochkin
On Mon, 12 Dec 2011 00:19:36 +0200, Jani Nikula j...@nikula.org wrote: Hi Dmitry - On Mon, 12 Dec 2011 02:00:45 +0400, Dmitry Kurochkin dmitry.kuroch...@gmail.com wrote: On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula j...@nikula.org wrote: Let notmuch-poll-script be a function as

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

2011-12-11 Thread Jani Nikula
On Dec 12, 2011 12:56 AM, Austin Clements amdra...@mit.edu wrote: Quoth Dmitry Kurochkin on Dec 12 at 2:00 am: Hi Jani. On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula j...@nikula.org wrote: Let notmuch-poll-script be a function as well as a string. Make default value nil instead of

Re: [alot] announcing v0.2 aka. robot santa

2011-12-11 Thread Jameson Graef Rollins
On Sun, 11 Dec 2011 19:55:14 +, Patrick Totzke patricktot...@googlemail.com wrote: I have just released version 0.2 of my terminal GUI `alot`. You can grab a tarball here [0]. Hi, Patrick. Congratulations on the new release. I don't personally use alot, but I've played around with it a

Re: experimental logging branch

2011-12-11 Thread David Bremner
On Sat, 10 Dec 2011 23:27:02 -0400, David Bremner da...@tethera.net wrote: This uses the jlog library (http://labs.omniti.com/labs/jlog) to atomically log messages in pub-sub model. Some more explanations. Part 1: pub-what? = What is pub-sub? Conceptually you can think of it

Re: [alot] announcing v0.2 aka. robot santa

2011-12-11 Thread Jameson Graef Rollins
Hey, Patrick. I'm guessing this isn't actually an alot issue, but when I start up alot I get the following message to the terminal: /usr/lib/python2.7/dist-packages/zope/__init__.py:3: UserWarning: Module argparse was already imported from /usr/lib/python2.7/argparse.pyc, but

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

2011-12-11 Thread Austin Clements
Quoth Jani Nikula on Dec 12 at 1:10 am: On Dec 12, 2011 12:56 AM, Austin Clements [1]amdra...@mit.edu wrote: Quoth Dmitry Kurochkin on Dec 12 at  2:00 am: Hi Jani. On Sun, 11 Dec 2011 23:48:20 +0200, Jani Nikula [2]j...@nikula.org wrote: Let

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

2011-12-11 Thread Dmitry Kurochkin
On Sun, 11 Dec 2011 19:31:03 -0500, Austin Clements amdra...@mit.edu wrote: Quoth Jani Nikula on Dec 12 at 1:10 am: On Dec 12, 2011 12:56 AM, Austin Clements [1]amdra...@mit.edu wrote: Quoth Dmitry Kurochkin on Dec 12 at  2:00 am: Hi Jani. On Sun, 11 Dec

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

2011-12-11 Thread Jameson Graef Rollins
Debian tags have been using '/', instead of '-' as a separator. --- debian/gbp.conf |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/debian/gbp.conf b/debian/gbp.conf index dba526f..6cb451a 100644 --- a/debian/gbp.conf +++ b/debian/gbp.conf @@ -10,5 +10,8 @@