[RFC Patch v2 3/3] notmuch-dump: add --format option

2011-12-01 Thread David Bremner
From: David Bremner Note that the new option does not control anything at the moment. --- notmuch-dump.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/notmuch-dump.c b/notmuch-dump.c index 9e0c91d..d0ab360 100644 --- a/notmuch-dump.c +++

[RFC Patch v2 2/3] notmuch-dump: convert to notmuch-opts argument handling.

2011-12-01 Thread David Bremner
From: David Bremner The output file is handled via positional arguments. There are currently no "normal" options. --- notmuch-dump.c | 27 +++ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/notmuch-dump.c b/notmuch-dump.c index

[RFC Patch v2 1/3] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-01 Thread David Bremner
From: David Bremner As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like --format=(raw|json|text). In this version I implement Austin Clements' suggestion of basing

python-notmuch decoding error on a message

2011-12-01 Thread Sebastian Spaeth
application/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111201/27a46d03/attachment.pgp>

[PATCH 1/2] python: add classes to wrap all notmuch_*_t types

2011-12-01 Thread Sebastian Spaeth
ication/pgp-signature Size: 197 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111201/34f4fe1a/attachment.pgp>

[PATCH] python: Store pointers as c_void_p to keep references

2011-12-01 Thread James Westby
From: James Westby ctypes doesn't return c_void_p return values as that, it returns them as 32-bit integers instead. This has two problems: 1 - On 64-bit machines anything higher than the max 32-bit integer will overflow when passed back in to another function

ANNOUNCE: nottoomuch-addresses.pl

2011-12-01 Thread Tomi Ollila
In addition to http://notmuchmail.org/emacstips/#index11h2 and Jani's 'goobook' in id:"87zkfuh3i0.fsf at nikula.org" you can now also use http://www.iki.fi/too/nottoomuch/nottoomuch-addresses.pl for your address completion needs when composing mail/reply. This program is 1) easy to install

Having trouble displaying some html emails

2011-12-01 Thread Bart Bunting
Thanks tomi, I missed your reply. This works beautifully! Thanks Bart On Tue, 15 Nov 2011 09:51:26 +0200, Tomi Ollila wrote: > On Tue, 15 Nov 2011 10:37:42 +1100, Bart Bunting > wrote: > > Hi everyone, > > > > I am having an issue with html emails displaying correctly. > > > > For some

Bugs on adding flag D

2011-12-01 Thread keda...@gmail.com
Hi, I've a recurrent problem on syncing. To solve it, I've to remove internal files (rm -rf ~/.offlineimap/) and mails in .Sent folder. With offlineimap 6.3.5-rc1, the output is the following : Account sync toto_irisa: * Processing account toto_irisa Copying folder structure from IMAP to

python-notmuch crash with threads

2011-12-01 Thread James Westby
-- next part -- A non-text attachment was scrubbed... Name: test.py Type: text/x-python Size: 1170 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20111201/33032025/attachment-0001.py>

ANNOUNCE: nottoomuch-addresses.pl

2011-12-01 Thread Tomi Ollila
In addition to http://notmuchmail.org/emacstips/#index11h2 and Jani's 'goobook' in id:87zkfuh3i0@nikula.org you can now also use http://www.iki.fi/too/nottoomuch/nottoomuch-addresses.pl for your address completion needs when composing mail/reply. This program is 1) easy to install and 2)

python-notmuch crash with threads

2011-12-01 Thread James Westby
Hi, I've been seeing a race with python-notmuch, where it will crash due to pointers being invalidated when threads are used. I've attached a script which shows the problem some of the time. It's about the smallest script I can make, but it's hampered by the fact that making it simpler seems to

Re: ANNOUNCE: nottoomuch-addresses.pl

2011-12-01 Thread Bart Bunting
Hi Tomi, I have had a quick try of setting up nottoomuch-addresses addresses. Here are a couple of issues I have hit and I think it's still not quite right. I attach the shell output from emacs below. - firstly it appears that if the term is set to DUMB then the script assumes it's being

Bugs on adding flag D

2011-12-01 Thread kedals0
Hi, I've a recurrent problem on syncing. To solve it, I've to remove internal files (rm -rf ~/.offlineimap/) and mails in .Sent folder. With offlineimap 6.3.5-rc1, the output is the following : Account sync toto_irisa: * Processing account toto_irisa Copying folder structure from IMAP to

Re: [PATCH 1/2] python: add classes to wrap all notmuch_*_t types

2011-12-01 Thread Sebastian Spaeth
On Mon, 28 Nov 2011 13:36:44 +0100, Justus Winter wrote: Well, quoting my commit message: Add type information to the ctypes._FuncPtr wrappers and use the wrapper classes instead of c_void_p for pointers to notmuch_*_t. This enables the ctypes library to type check parameters being

Re: python-notmuch decoding error on a message

2011-12-01 Thread Sebastian Spaeth
On Thu, 24 Nov 2011 12:13:22 -0400, David Bremner da...@tethera.net wrote: I get a set of critical errors about forgetting to call g_type_init. We actually call g_type_init in the CLI now, thanks to Oooh, ahh, I just saw these message on doing 'notmuch.py search moo' myself. I would prefer if

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

2011-12-01 Thread Dmitry Kurochkin
Change atomicity tests to use the new external binary dependencies. This simplifies the code and makes output consistent. --- test/atomicity | 12 1 files changed, 4 insertions(+), 8 deletions(-) diff --git a/test/atomicity b/test/atomicity index ad7d4a3..6df0a00 100755 ---

Re: [PATCH] python: Store pointers as c_void_p to keep references

2011-12-01 Thread James Westby
On Thu, 1 Dec 2011 18:13:05 -0500, James Westby jw+deb...@jameswestby.net wrote: From: James Westby james.wes...@linaro.org ctypes doesn't return c_void_p return values as that, it returns them as 32-bit integers instead. This has two problems: 1 - On 64-bit machines anything higher

Re: [PATCH 1/2] python: add classes to wrap all notmuch_*_t types

2011-12-01 Thread James Westby
On Thu, 01 Dec 2011 22:25:41 +0100, Sebastian Spaeth sebast...@sspaeth.de wrote: This strikes me as a rather good thing, so the patches went in. Hah, I've just seen this, and I'm going to guess that it fixes my problems too. ... I've tested and it seems to work, so my patch is unneeded witht

[RFC Patch v2 3/3] notmuch-dump: add --format option

2011-12-01 Thread David Bremner
From: David Bremner brem...@debian.org Note that the new option does not control anything at the moment. --- notmuch-dump.c |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/notmuch-dump.c b/notmuch-dump.c index 9e0c91d..d0ab360 100644 --- a/notmuch-dump.c +++

[RFC Patch v2 2/3] notmuch-dump: convert to notmuch-opts argument handling.

2011-12-01 Thread David Bremner
From: David Bremner brem...@debian.org The output file is handled via positional arguments. There are currently no normal options. --- notmuch-dump.c | 27 +++ 1 files changed, 15 insertions(+), 12 deletions(-) diff --git a/notmuch-dump.c b/notmuch-dump.c index

[RFC Patch v2 1/3] notmuch-opts.[ch]: new argument parsing framework for notmuch.

2011-12-01 Thread David Bremner
From: David Bremner brem...@debian.org As we noticed when Jani kindly converted things to getopt_long, much of the work in argument parsing in notmuch is due to the the key-value style arguments like --format=(raw|json|text). In this version I implement Austin Clements' suggestion of basing the

Re: ANNOUNCE: nottoomuch-addresses.pl

2011-12-01 Thread Tomi Ollila
On Fri, 02 Dec 2011 05:38:01 +1100, Bart Bunting b...@ursys.com.au wrote: Hi Tomi, I have had a quick try of setting up nottoomuch-addresses addresses. Here are a couple of issues I have hit and I think it's still not quite right. I attach the shell output from emacs below. -