[notmuch] [PATCH] Add SWIG interface file

2010-01-25 Thread Ben Gamari
--- swig/Makefile| 18 swig/notmuch.py | 222 ++ swig/notmuch_funcs.i |9 ++ 3 files changed, 249 insertions(+), 0 deletions(-) create mode 100644 swig/Makefile create mode 100644 swig/notmuch.py create mode 100644 swig/no

[notmuch] [PATCH] SWIG bindings

2010-01-25 Thread Ben Gamari
Hey all, Here's the latest version of my patch adding SWIG interface generation to notmuch. It has been rebased on the shared-library patches I sent over earlier this week, so you'll need those as well. Unfortunately, SWIG has effectively no support for exposing notmuch's C-style object-oriented

Re: [notmuch] [PATCH] Make the date parser nicer

2010-01-25 Thread Keith Packard
On Fri, 22 Jan 2010 16:26:11 +0100, Sebastian Spaeth wrote: > Currently we have to enter mail dates as timestamps. This approach > does 2 things: it requires the prefix 'date:' and it allows timestamps > to be specified as , MM or MMDD. So a notmuch show > date:2005..20060512 will fin

[notmuch] [PATCH] Make the date parser nicer

2010-01-25 Thread Keith Packard
On Fri, 22 Jan 2010 16:26:11 +0100, Sebastian Spaeth wrote: > Currently we have to enter mail dates as timestamps. This approach > does 2 things: it requires the prefix 'date:' and it allows timestamps > to be specified as , MM or MMDD. So a notmuch show > date:2005..20060512 will fin

[PATCH] Add date.c

2010-01-25 Thread Keith Packard
} +return notmuch_one_date(text, first, last, 0); +} + +#if 1 +int +main (int argc, char **argv) +{ +inti; +for (i = 1; i < argc; i++) { + time_t first, last; + + if (notmuch_date(argv[i], &first, &last) == 0) { + charfirst_string[80], last_string[80]; + + ctime_r(&first, first_string); + first_string[strlen(first_string)-1] = '\0'; + ctime_r(&last, last_string); + last_string[strlen(last_string)-1] = '\0'; + printf ("%s: %s - %s\n", argv[i], first_string, last_string); + } +} +} +#endif -- 1.6.6 -- keith.packard at intel.com -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100125/1fa59cc1/attachment-0001.pgp>

[notmuch] [PATCH] Mail::Notmuch Perl wrapper

2010-01-25 Thread Ben Gamari
Excerpts from Simon Cozens's message of Mon Jan 25 13:17:16 -0500 2010: > (Resent with compressed patch) > > Hi there, > Here's a Perl library, Mail::Notmuch, which wraps the notmuch library. > I've attached it because it's pretty huge. It requires you to > build notmuch as a shared library -

[notmuch] proposal for more streamlined mail flow in notmuch

2010-01-25 Thread Ben Gamari
Excerpts from Jameson Rollins's message of Sat Jan 16 15:49:55 -0500 2010: > To fascilitate this, two new functions should be implemented at the > notmuch CLI level, so that things don't get fractured by different > mail reader implementations: > > notmuch purge > > delete all 'delete' tagged m

[notmuch] [PATCH] Build and link against notmuch shared library

2010-01-25 Thread Ben Gamari
Inger in #notmuch brought to light some build issues that will occur when the notmuch binary is being built before libnotmuch is installed. Here is an updated patch that resolves these issues. --- .gitignore |1 + Makefile |1 + Makefile.local |6 -- lib/Make

Re: [notmuch] [PATCH] Add SWIG interface file

2010-01-25 Thread Ben Gamari
For the record, both the swig branch and the shared-library branch are available from, anonymous: git://goldnerlab.physics.umass.edu/notmuch gitweb: http://goldnerlab.physics.umass.edu/git?p=notmuch.git;a=summary Hope this helps, - Ben ___ notmuch

[notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread martin f krafft
- emma goldman spamtraps: madduck.bogus at madduck.net -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature (see http://martin-krafft.net/gpg/) URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100125/0c16410d/attachment.pgp>

[notmuch] [PATCH] Add SWIG interface file

2010-01-25 Thread Ben Gamari
--- swig/Makefile| 18 swig/notmuch.py | 222 ++ swig/notmuch_funcs.i |9 ++ 3 files changed, 249 insertions(+), 0 deletions(-) create mode 100644 swig/Makefile create mode 100644 swig/notmuch.py create mode 100644 swig/no

[notmuch] [PATCH] SWIG bindings

2010-01-25 Thread Ben Gamari
Hey all, Here's the latest version of my patch adding SWIG interface generation to notmuch. It has been rebased on the shared-library patches I sent over earlier this week, so you'll need those as well. Unfortunately, SWIG has effectively no support for exposing notmuch's C-style object-oriented

Re: [notmuch] [PATCH] Mail::Notmuch Perl wrapper

2010-01-25 Thread Ben Gamari
Excerpts from Simon Cozens's message of Mon Jan 25 13:17:16 -0500 2010: > (Resent with compressed patch) > > Hi there, > Here's a Perl library, Mail::Notmuch, which wraps the notmuch library. > I've attached it because it's pretty huge. It requires you to > build notmuch as a shared library -

Re: [notmuch] proposal for more streamlined mail flow in notmuch

2010-01-25 Thread Ben Gamari
Excerpts from Jameson Rollins's message of Sat Jan 16 15:49:55 -0500 2010: > To fascilitate this, two new functions should be implemented at the > notmuch CLI level, so that things don't get fractured by different > mail reader implementations: > > notmuch purge > > delete all 'delete' tagged m

[notmuch] [PATCH] Mail::Notmuch Perl wrapper

2010-01-25 Thread Simon Cozens
hat. Notmuch else to say, really. Enjoy. Simon -- next part -- A non-text attachment was scrubbed... Name: Mail-Notmuch-perl.patch.gz Type: application/x-gzip Size: 55832 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100125/9

[notmuch] tag dir proposal [was: Re: Git as notmuch object store]

2010-01-25 Thread Jameson Rollins
plicate the current behavior): [tags] * = +inbox,+unread I would love to see this. Hopefully we can rally some more support for this idea. 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/20100125/4b013ce3/attachment.pgp>

Re: [notmuch] Git feature branch

2010-01-25 Thread sebastian
> I think it would make sense to move the mainline to git.debian.org > for now, or another place where everyone can easily get an account. > As alternatives I propose repo.or.cz. I'd prefer to stay away from > commercial services like Github. Any of those sounds fine to me, really. No preferences.

[notmuch] Git feature branch

2010-01-25 Thread sebast...@sspaeth.de
> I think it would make sense to move the mainline to git.debian.org > for now, or another place where everyone can easily get an account. > As alternatives I propose repo.or.cz. I'd prefer to stay away from > commercial services like Github. Any of those sounds fine to me, really. No preferences.

[notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread Sebastian Spaeth
On Mon, 25 Jan 2010 13:46:59 +1300, martin f krafft wrote: > I think we all kinda agreed that the Maildir flags should not be > used by notmuch and that things like Sebastian's notmuchsync should > be used if people wanted flags represented in Maildir filenames. While notmuchsync fullfils my ne

[notmuch] [PATCH] Make the date parser nicer (v3 + 'now' keyword) (final mail)

2010-01-25 Thread Sebastian Spaeth
Sorry, very last mail from me on this issue. I squashed the patches into 3 distinct ones, and inherited a tree from cworth's master tree for easier pulling (rather than basing it off my all-features branch). This branch is here: http://github.com/spaetz/notmuch-all-feature/commits/dateparser2 (

[notmuch] [PATCH] Mail::Notmuch Perl wrapper

2010-01-25 Thread Mike Kelly
On Mon, 25 Jan 2010 18:17:16 +, Simon Cozens wrote: > (Resent with compressed patch) > > Hi there, > Here's a Perl library, Mail::Notmuch, which wraps the notmuch library. > I've attached it because it's pretty huge. It requires you to > build notmuch as a shared library - there's a pa

[notmuch] tag dir proposal [was: Re: Git as notmuch object store]

2010-01-25 Thread Jameson Rollins
On Mon, 25 Jan 2010 11:22:47 -0500 (EST), Mike Kelly wrote: > Similarly, provide a mechanism for correlating the folder name with > some set of tags, and change those tags as messages are moved around. > > For example, I might have: > > ~/.notmuch-config: > > [database] > path=/ho

[notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread martin f krafft
achment was scrubbed... Name: not available Type: application/pgp-signature Size: 198 bytes Desc: Digital signature (see http://martin-krafft.net/gpg/) URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20100125/6a70e84f/attachment.pgp>

Re: [notmuch] Git feature branch

2010-01-25 Thread martin f krafft
also sprach Carl Worth [2010.01.23.1010 +1300]: > Anyway, I'll be on vacation for the next few days, so will likely > not have much, (likely have not much?), time for patch merging. > > But I *am* anxious to get back to the backlog. And in the > meantime, I really appreciate others merging and sh

[notmuch] [PATCH] Make the date parser nicer (v3 + 'now' keyword)

2010-01-25 Thread Sebastian Spaeth
The patch previously sent can be considered my final attempt to a nicer date parser. In addition to some testing, I have updated the documentation to reflect the new syntax, and I have also added the keyword 'now' as a possibility. So 'date:2002..now' (all mails from 2002 until now) or 'date:now..

[notmuch] debs of xapian upstream

2010-01-25 Thread Jameson Rollins
i?bug=564830 -- 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/20100125/71216e90/attachment-0001.pgp>

Re: [notmuch] proposal for more streamlined mail flow in notmuch

2010-01-25 Thread martin f krafft
also sprach Jameson Rollins [2010.01.17.0949 +1300]: > I would like to put forth here a proposal for a couple of changes > to notmuch that I believe will considerably streamline message > handling and new message flow through notmuch. Notmuch is still > new and I believe it hasn't quite figured

[notmuch] [PATCH] Make the date parser nicer. This is v3 and considered to be final (but the documentation).

2010-01-25 Thread Sebastian Spaeth
Currently we have to enter mail dates as timestamps. This approach does 2 things: 1) it requires the prefix 'date:' 2) it allows dates to be specified in a flexible way. So a notmuch show date:2005..2006-05-12 will find all mails from 2005-01-01 until 2006-05-12. Possible time formats: -MM-D

Re: [notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread martin f krafft
also sprach Sebastian Spaeth [2010.01.26.0249 +1300]: > While notmuchsync fullfils my needs, it is a kludge. It needs to > call "notmuch" for each mail where a MailDir flag has changed > (which can be quite often on an initial run, where most mails are > likely to be read), this can take a long, l

[notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread Mike Kelly
On Mon, 25 Jan 2010 14:49:00 +0100, "Sebastian Spaeth" wrote: > > On Mon, 25 Jan 2010 13:46:59 +1300, martin f krafft > wrote: > > I think we all kinda agreed that the Maildir flags should not be > > used by notmuch and that things like Sebastian's notmuchsync should > > be used if people wante

Re: [notmuch] [PATCH] Mail::Notmuch Perl wrapper

2010-01-25 Thread Mike Kelly
On Mon, 25 Jan 2010 18:17:16 +, Simon Cozens wrote: > (Resent with compressed patch) > > Hi there, > Here's a Perl library, Mail::Notmuch, which wraps the notmuch library. > I've attached it because it's pretty huge. It requires you to > build notmuch as a shared library - there's a pat

[notmuch] debs of xapian upstream

2010-01-25 Thread Jameson Rollins
Hey, folks. I'm being killed by the slowness of {,un}tagging in notmuch on Debian, which, as I understand it, comes from a xapian bug that has been fixed upstream (all of which has been discussed quite a bit on this list). A request for an upload of a new xapian verion that fixes the bug has been

Re: [notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread Mike Kelly
On Mon, 25 Jan 2010 14:49:00 +0100, "Sebastian Spaeth" wrote: > > On Mon, 25 Jan 2010 13:46:59 +1300, martin f krafft > wrote: > > I think we all kinda agreed that the Maildir flags should not be > > used by notmuch and that things like Sebastian's notmuchsync should > > be used if people want

Re: [notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread Sebastian Spaeth
On Mon, 25 Jan 2010 13:46:59 +1300, martin f krafft wrote: > I think we all kinda agreed that the Maildir flags should not be > used by notmuch and that things like Sebastian's notmuchsync should > be used if people wanted flags represented in Maildir filenames. While notmuchsync fullfils my nee

Re: [notmuch] [PATCH] Make the date parser nicer (v3 + 'now' keyword) (final mail)

2010-01-25 Thread Sebastian Spaeth
Sorry, very last mail from me on this issue. I squashed the patches into 3 distinct ones, and inherited a tree from cworth's master tree for easier pulling (rather than basing it off my all-features branch). This branch is here: http://github.com/spaetz/notmuch-all-feature/commits/dateparser2

Re: [notmuch] [PATCH] Make the date parser nicer (v3 + 'now' keyword)

2010-01-25 Thread Sebastian Spaeth
The patch previously sent can be considered my final attempt to a nicer date parser. In addition to some testing, I have updated the documentation to reflect the new syntax, and I have also added the keyword 'now' as a possibility. So 'date:2002..now' (all mails from 2002 until now) or 'date:now..

[notmuch] [PATCH] Make the date parser nicer. This is v3 and considered to be final (but the documentation).

2010-01-25 Thread Sebastian Spaeth
Currently we have to enter mail dates as timestamps. This approach does 2 things: 1) it requires the prefix 'date:' 2) it allows dates to be specified in a flexible way. So a notmuch show date:2005..2006-05-12 will find all mails from 2005-01-01 until 2006-05-12. Possible time formats: -MM-D

[notmuch] Git as notmuch object store (was: Potential problem using Git for mail)

2010-01-25 Thread Asheesh Laroia
On Mon, 25 Jan 2010, martin f krafft wrote: > also sprach Asheesh Laroia [2010.01.21.1928 > +1300]: >>> I suppose that I never actually considered merges on the IMAP server >>> side, but obviously the IMAP server has to work off a clone, and that >>> means it needs to merge. >> >> It's not "me