Re: gmail label support in offlineimap - update

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/11/12 19:09, David Bremner wrote: Jeremy Nickurak not-m...@trk.nickurak.ca writes: The other direction sounds like it would be trickier though, since there's no obvious way to say what notmuch tags have changed since time X?. Is this

Re: gmail label support in offlineimap - update

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/11/12 19:47, Michal Nazarewicz wrote: On Wed, Nov 28 2012, Jeremy Nickurak wrote: The other direction sounds like it would be trickier though, since there's no obvious way to say what notmuch tags have changed since time X?. Is this

Re: gmail label support patch available for oflineimap

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/11/12 19:39, Michal Nazarewicz wrote: On Wed, Nov 28 2012, David Bremner wrote: Right. But without that, the whole thing could be scripted pretty easily I think, just parse the x-labels header and use notmuch-deliver or something like that.

[PATCH] contrib: pick: remove some debug timing messages

2012-11-29 Thread markwalters1009
When I submitted notmuch-pick I deleted most of the debug messages but I missed two cases. Remove them now. --- contrib/notmuch-pick/notmuch-pick.el |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/contrib/notmuch-pick/notmuch-pick.el

Re: gmail label support patch available for oflineimap

2012-11-29 Thread Michal Nazarewicz
On Wed, Nov 28, 2012 at 1:53 PM, Michal Nazarewicz min...@mina86.com wrote: Go nag developers of whatever you are using to implement fetching labels from Gmail. Or write another tool that does that. On Thu, Nov 29 2012, Felipe Contreras felipe.contre...@gmail.com wrote: Why do that when I

Re: gmail label support patch available for oflineimap

2012-11-29 Thread Michal Nazarewicz
On Thu, Nov 29 2012, Felipe Contreras wrote: I think it would be trivial to add Gmail-style folders to notmuch. Maybe a configuration that maps directories with tags. This in fact wouldn't even be Gmail specific, and would help the people coming from procmail, and other ways of organizing

Re: [PATCH] test: Abort driver if a test script aborts

2012-11-29 Thread David Bremner
Austin Clements amdra...@mit.edu writes: Previously, if a test script aborted (e.g., because it passed too few arguments to a test function), the test driver loop would simply continue on to the next test script and the final results would declare that everything passed (except that the test

Re: gmail label support in offlineimap - update

2012-11-29 Thread Michal Nazarewicz
On Thu, Nov 29 2012, Rainer M Krug wrote: I think a tag changed hook could solve both problems - when there would be an additional messge changed hook: How would you make the “message changed” hook work? What if I do “$EDITOR some-mail”? What is supposed to trigger the hook? -- Best regards,

Re: [PATCH] lib: fix warnings when building with clang

2012-11-29 Thread Tomi Ollila
On Mon, Oct 22 2012, Tomi Ollila wrote: On Sun, Oct 21 2012, Jani Nikula j...@nikula.org wrote: On Sun, 21 Oct 2012, Ethan Glasser-Camp ethan.glasser.c...@gmail.com wrote: Jani Nikula j...@nikula.org writes: Building notmuch with CC=clang and CXX=clang++ produces the warnings: CC -O2

Re: gmail label support in offlineimap - update

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 29/11/12 14:33, Michal Nazarewicz wrote: On Thu, Nov 29 2012, Rainer M Krug wrote: I think a tag changed hook could solve both problems - when there would be an additional messge changed hook: How would you make the ?message changed? hook

Re: On disk tag storage format

2012-11-29 Thread Eirik Byrkjeflot Anonsen
David Bremner da...@tethera.net writes: Austin outlined on IRC a way of representing tags on disk as hardlinks to messages. In order to make the discussion more concrete, I wrote a prototype in python to dump the notmuch database to this format. On my 250k messages, this creates 40k new

Re: [PATCH] contrib: pick: use async parser from lib

2012-11-29 Thread David Bremner
Mark Walters markwalters1...@gmail.com writes: This moves notmuch-pick to use the newly split out async json parser from notmuch-lib.el. This looks fine and seems to work; I'm marking it ready. d ___ notmuch mailing list notmuch@notmuchmail.org

Re: [Patch v2 09/17] tag-util.[ch]: New files for common tagging routines

2012-11-29 Thread David Bremner
Mark Walters markwalters1...@gmail.com writes: I don't know how freeze/thaw work but does it matter that you don't thaw when there is an error? My interpretation is that by not thawing before we destroy the message, we are aborting the transaction, since the freeze/thaw information is stored

[PATCH] test: add test for notmuch tag --batch option

2012-11-29 Thread david
From: Jani Nikula j...@nikula.org Basic test of functionality, along with all combinations of options. Modified extensively by David Bremner da...@tethera.net The choice of @ as a tag is intended to be non-alphanumeric, but still not too much trouble in the shell and in the old sup dump/restore

Re: [PATCH] test: add test for notmuch tag --batch option

2012-11-29 Thread Tomi Ollila
On Fri, Nov 30 2012, da...@tethera.net wrote: From: Jani Nikula j...@nikula.org Basic test of functionality, along with all combinations of options. Modified extensively by David Bremner da...@tethera.net The choice of @ as a tag is intended to be non-alphanumeric, but still not too much

Re: On disk tag storage format

2012-11-29 Thread Tomi Ollila
On Thu, Nov 29 2012, Eirik Byrkjeflot Anonsen ei...@eirikba.org wrote: David Bremner da...@tethera.net writes: Austin outlined on IRC a way of representing tags on disk as hardlinks to messages. In order to make the discussion more concrete, I wrote a prototype in python to dump the notmuch

gmail label support patch available for oflineimap

2012-11-29 Thread Felipe Contreras
On Wed, Nov 28, 2012 at 12:29 PM, Jani Nikula wrote: > > On Nov 28, 2012 12:10 PM, "Felipe Contreras" > wrote: >> >> On Wed, Nov 28, 2012 at 8:32 AM, Rainer M Krug wrote: >> >> >> I just want to say that having notmuch communicate with Gmail is >> >> terrible idea, since this >> >> would mean

gmail label support patch available for oflineimap

2012-11-29 Thread Felipe Contreras
On Wed, Nov 28, 2012 at 1:53 PM, Michal Nazarewicz wrote: > On Wed, Nov 28 2012, Felipe Contreras wrote: >> Not everybody uses offlineimap. > > Go nag developers of whatever you are using to implement fetching labels > from Gmail. Or write another tool that does that. Why do that when I can do

gmail label support patch available for oflineimap

2012-11-29 Thread Felipe Contreras
On Thu, Nov 29, 2012 at 6:01 AM, Jeremy Nickurak wrote: > Doing this on a directory basis is a non-starter for me. The reason that > Notmuch and gmail are a natural fit is that they both operate on labels/tags > instead of folders. There's no simpler way if you are using IMAP and Maildir, and

gmail label support in offlineimap - update

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/11/12 19:09, David Bremner wrote: > Jeremy Nickurak writes: > > >> The other direction sounds like it would be trickier though, since there's >> no obvious way to >> say "what notmuch tags have changed since time X?". Is this something that

gmail label support in offlineimap - update

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/11/12 19:47, Michal Nazarewicz wrote: > On Wed, Nov 28 2012, Jeremy Nickurak wrote: >> The other direction sounds like it would be trickier though, since there's >> no obvious way to >> say "what notmuch tags have changed since time X?". Is

gmail label support patch available for oflineimap

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 29/11/12 08:18, Felipe Contreras wrote: > On Thu, Nov 29, 2012 at 6:01 AM, Jeremy Nickurak > wrote: >> Doing this on a directory basis is a non-starter for me. The reason that >> Notmuch and gmail >> are a natural fit is that they both operate

gmail label support patch available for oflineimap

2012-11-29 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 28/11/12 19:39, Michal Nazarewicz wrote: > On Wed, Nov 28 2012, David Bremner wrote: >> Right. But without that, the whole thing could be scripted pretty easily I >> think, just parse >> the x-labels header and use notmuch-deliver or something

[PATCH] news: add news entry for notmuch-pick

2012-11-29 Thread markwalters1009
--- This is a first draft of a NEWS item for notmuch-pick. It is essentially the first paragraph of the notmuch-pick README. NEWS | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/NEWS b/NEWS index a4ca03e..dadf92a 100644 --- a/NEWS +++ b/NEWS @@ -30,6 +30,17

[PATCH] contrib: pick: remove some debug timing messages

2012-11-29 Thread markwalters1009
When I submitted notmuch-pick I deleted most of the debug messages but I missed two cases. Remove them now. --- contrib/notmuch-pick/notmuch-pick.el |6 +- 1 files changed, 1 insertions(+), 5 deletions(-) diff --git a/contrib/notmuch-pick/notmuch-pick.el

On disk tag storage format

2012-11-29 Thread David Bremner
ttp://notmuchmail.org/pipermail/notmuch/attachments/20121129/75bf508b/attachment.py>

gmail label support patch available for oflineimap

2012-11-29 Thread Michal Nazarewicz
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121129/83b69a4d/attachment-0001.pgp>

[PATCH] test: Make the emacsclient binary user-configurable

2012-11-29 Thread David Bremner
Austin Clements writes: > And require that if TEST_EMACS is specified, so is TEST_EMACSCLIENT. > pushed. d

[PATCH] test: Don't print 'nil' at the beginning of emacs-subject-to-filename

2012-11-29 Thread David Bremner
pushed, d

gmail label support patch available for oflineimap

2012-11-29 Thread Michal Nazarewicz
? Nazarewicz(o o) ooo +--ooO--(_)--Ooo-- -- 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/20

[PATCH] test: Use associative arrays to track external prereqs

2012-11-29 Thread David Bremner
Austin Clements writes: > Using proper associative arrays to track prereqs, in addition to being > much cleaner than generating variable names and using grep to > carefully construct unique string lists, removes restrictions on > prereq names. pushed. FWIW, I think this is a sensible bash4-ism.

[PATCH] test: Abort driver if a test script aborts

2012-11-29 Thread David Bremner
Austin Clements writes: > Previously, if a test script aborted (e.g., because it passed too few > arguments to a test function), the test driver loop would simply > continue on to the next test script and the final results would > declare that everything passed (except that the test count would

[PATCH 2/2] performance-test: add units to In and Out

2012-11-29 Thread David Bremner
david at tethera.net writes: > From: David Bremner > > Austin Read enough Fine Manuals to figure out this is in multiples of > 512 bytes. Pushed both of these trivial patches. d

[PATCH] lib: fix warnings when building with clang

2012-11-29 Thread Tomi Ollila
On Mon, Oct 22 2012, Tomi Ollila wrote: > On Sun, Oct 21 2012, Jani Nikula wrote: > >> On Sun, 21 Oct 2012, Ethan Glasser-Camp >> wrote: >>> Jani Nikula writes: >>> Building notmuch with CC=clang and CXX=clang++ produces the warnings: CC -O2 lib/tags.o lib/tags.c:43:5:

On disk tag storage format

2012-11-29 Thread Eirik Byrkjeflot Anonsen
David Bremner writes: > Austin outlined on IRC a way of representing tags on disk as hardlinks > to messages. In order to make the discussion more concrete, I wrote a > prototype in python to dump the notmuch database to this format. On my > 250k messages, this creates 40k new hardlinks, and

[PATCH] contrib: pick: use async parser from lib

2012-11-29 Thread David Bremner
Mark Walters writes: > This moves notmuch-pick to use the newly split out async json parser > from notmuch-lib.el. This looks fine and seems to work; I'm marking it ready. d

[Patch v2 09/17] tag-util.[ch]: New files for common tagging routines

2012-11-29 Thread David Bremner
Mark Walters writes: > I don't know how freeze/thaw work but does it matter that you don't thaw > when there is an error? My interpretation is that by not thawing before we destroy the message, we are aborting the transaction, since the freeze/thaw information is stored in the message