[PATCH] TODO: date range queries - check

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, Jameson Graef Rollins wrote: > On Fri, Dec 07 2012, David Bremner wrote: >> Jameson Graef Rollins writes: >>> Has this TODO really been resolved? Do searches like "since:2009-01-1" >>> or "until:2009-01-1" really now work? As far as I can tell they don't. >>> Nor are

[PATCH] TODO: date range queries - check

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, Daniel Kahn Gillmor wrote: > On 12/07/2012 07:19 AM, David Bremner wrote: >> For specifying one-ended ranges, I find the current syntax OK-ish. It >> would be reasonable to formulate a seperate TODO for supporting >> things like date:2012-12-07 > > Out of curiosity, how does

gmail importer script

2012-12-07 Thread Jason A. Donenfeld
http://thread.gmane.org/gmane.mail.imap.offlineimap.general/5943/focus=5970for > details) I see. I use the All Mail folder and get the tags using the X-GM-LABELS imap extension. I don't muck with the mail headers in the process, fortunately. -- next part -- An

gmail importer script

2012-12-07 Thread Jason A. Donenfeld
An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121207/32f19e81/attachment-0001.html>

gmail importer script

2012-12-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/12/12 14:48, Jason A. Donenfeld wrote: > > > On Fri, Dec 7, 2012 at 9:53 AM, Rainer M Krug > > wrote: > > Sounds interesting. > > I don't know much python, so excuse my questions: > > 1) are multiple downloads

gmail importer script

2012-12-07 Thread Jason A. Donenfeld
to watch out for is > exceptions due to a locked notmuch index. > How do I do this? > rock on, > /p > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch > -- next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121207/356df846/attachment.html>

gmail importer script

2012-12-07 Thread Jason A. Donenfeld
gt; -END PGP SIGNATURE- > > ___ > notmuch mailing list > notmuch at notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch > ------ next part -- An HTML attachment was scrubbed... URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121207/f7f1d3e5/attachment.html>

[PATCH] TODO: date range queries - check

2012-12-07 Thread Jameson Graef Rollins
ation/pgp-signature Size: 835 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20121207/b59bcd2c/attachment.pgp>

[PATCH] Minor style changes.

2012-12-07 Thread Michal Nazarewicz
From: Michal Nazarewicz --- gmail-notmuch.py | 29 + 1 files changed, 9 insertions(+), 20 deletions(-) On Fri, Dec 07 2012, Jason A. Donenfeld wrote: > I wrote a script that imports emails and tags from gmail. It's > resumable and appears to be

[PATCH 1/1] NEWS: under-the-hood Emacs interface fixes

2012-12-07 Thread David Bremner
Tomi Ollila writes: > Added the following Emacs Interface NEWS entries: > > Catch errors bodypart insertions may throw, > Improved text/calendar content handling and > Don't do coding conversions when reading in > `with-current-notmuch-show-message`. Oops, I pushed another NEWS patch and this

[PATCH] TODO: date range queries - check

2012-12-07 Thread Daniel Kahn Gillmor
On 12/07/2012 07:19 AM, David Bremner wrote: > For specifying one-ended ranges, I find the current syntax OK-ish. It > would be reasonable to formulate a seperate TODO for supporting > things like date:2012-12-07 Out of curiosity, how does this syntax interact with timezones? If i send a mail in

[PATCH 1/1] NEWS: under-the-hood Emacs interface fixes

2012-12-07 Thread Austin Clements
Quoth Tomi Ollila on Dec 03 at 12:48 am: > Added the following Emacs Interface NEWS entries: > > Catch errors bodypart insertions may throw, > Improved text/calendar content handling and > Don't do coding conversions when reading in > `with-current-notmuch-show-message`. > --- > NEWS | 25

[PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-07 Thread Austin Clements
On Thu, 06 Dec 2012, Peter Feigl wrote: > This patch series adds a new output format "sexp" to notmuch-reply, > notmuch-show and notmuch-search. These are useful for the Android mobile > client, Emacs and perhaps other Lisp programs as well. > After the switch to a generic structured output

[PATCH] TODO: date range queries - check

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, Jameson Graef Rollins wrote: > On Thu, Dec 06 2012, Jani Nikula wrote: >> --- >> devel/TODO |9 - >> 1 file changed, 9 deletions(-) >> >> diff --git a/devel/TODO b/devel/TODO >> index eb757af..277a997 100644 >> --- a/devel/TODO >> +++ b/devel/TODO >> @@ -163,15

gmail importer script

2012-12-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/12/12 05:05, Kushal Kumaran wrote: > "Jason A. Donenfeld" writes: > >> Hi folks, >> >> I wrote a script that imports emails and tags from gmail. It's resumable and >> appears to be >> working reasonably well. I could use some experienced

gmail importer script

2012-12-07 Thread Kushal Kumaran
"Jason A. Donenfeld" writes: > Hi folks, > > I wrote a script that imports emails and tags from gmail. It's > resumable and appears to be working reasonably well. I could use some > experienced eyes looking at it, as my first exposure to notmuch was > just a few hours ago. > >

gmail importer script

2012-12-07 Thread Patrick Totzke
Is this supposed to happen? - Logging in... Selecting all mail... Discovering local messages... Receiving message list... Traceback (most recent call last): File "./gmail-notmuch.py", line 175, in main() File "./gmail-notmuch.py", line 58, in

[PATCH] test: Fix UTF-8 JSON tests in Python 3

2012-12-07 Thread David Bremner
Austin Clements writes: > test_expect_equal_json uses json.tool from the system Python. While > Python 2 wasn't picky about the encoding of stdin, Python 3 decodes > stdin strictly according to the environment. Since we set LC_ALL=C > for the tests, Python 3's json.tool was assuming stdin

[PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-07 Thread David Bremner
Mark Walters writes: > > This looks good to me except there are a couple of trailing whitespace > errors > If the whitespace is the only problem, I can fix that without another series. d P.S. Peter, you probably want to do something like % cd .git/hooks && mv pre-commit.sample pre-commit &&

[PATCH] TODO: date range queries - check

2012-12-07 Thread Jameson Graef Rollins
s a desired feature. 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/20121207/a5c121de/attachment.pgp>

[PATCH] TODO: date range queries - check

2012-12-07 Thread David Bremner
Jameson Graef Rollins writes: > Has this TODO really been resolved? Do searches like "since:2009-01-1" > or "until:2009-01-1" really now work? As far as I can tell they don't. > Nor are they documented if they do. For specifying one-ended ranges, I find the current syntax OK-ish. It would be

[PATCH] emacs: show: make show-get-message-prop usable from pick

2012-12-07 Thread Mark Walters
Just in case anyone is thinking about this: there is a much better solution. I just redefine notmuch-show-get-prop in notmuch-pick and I can achieve exactly the same. Hence forget this patch/thread Many thanks Mark Mark Walters writes: > Hi > > On Sun, 02 Dec 2012, Mark Walters wrote: >>

[PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-07 Thread Mark Walters
Jameson Graef Rollins writes: > On Thu, Dec 06 2012, Peter Feigl wrote: >> -/* Any changes to the JSON format should be reflected in the file >> - * devel/schemata. */ >> +/* Any changes to the JSON or S-Expression format should be >> + * reflected in the file devel/schemata.

[PATCH v2] emacs: add support for stashing the thread id in show view

2012-12-07 Thread Mark Walters
Jani Nikula writes: > Add a prefix argument to notmuch-show-stash-message-id to stash thread > id instead of message id. LGTM +1 Mark > --- > emacs/notmuch-show.el | 14 ++ > 1 file changed, 10 insertions(+), 4 deletions(-) > > diff --git a/emacs/notmuch-show.el

gmail importer script

2012-12-07 Thread Jason A. Donenfeld
Hi folks, I wrote a script that imports emails and tags from gmail. It's resumable and appears to be working reasonably well. I could use some experienced eyes looking at it, as my first exposure to notmuch was just a few hours ago. http://git.zx2c4.com/gmail-notmuch/tree/gmail-notmuch.py

[PATCH v2] emacs: add support for stashing the thread id in show view

2012-12-07 Thread Jani Nikula
Add a prefix argument to notmuch-show-stash-message-id to stash thread id instead of message id. --- emacs/notmuch-show.el | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 4d6c014..658a2be 100644 ---

[PATCH] TODO: date range queries - check

2012-12-07 Thread Jani Nikula
--- devel/TODO |9 - 1 file changed, 9 deletions(-) diff --git a/devel/TODO b/devel/TODO index eb757af..277a997 100644 --- a/devel/TODO +++ b/devel/TODO @@ -163,15 +163,6 @@ vs. tag-when-all-files-flagged (* above)). Add an interface to accept a "key" and a byte stream, rather than

[PATCH 2/2] cli: add --format=text0 to notmuch search

2012-12-07 Thread Jani Nikula
Add new format text0, which is otherwise the same as text, but use the null character as separator instead of the newline character. This is similar to find(1) -print0 option, and works together with the xargs(1) -0 option. --- notmuch-search.c | 11 +-- 1 file changed, 9 insertions(+),

[PATCH 1/2] sprinter: add text0 formatter for null character separated text

2012-12-07 Thread Jani Nikula
Same as the text formatter, but with each field separated by a null character rather than a newline character. --- sprinter-text.c | 22 ++ sprinter.h |6 ++ 2 files changed, 28 insertions(+) diff --git a/sprinter-text.c b/sprinter-text.c index 10343be..7779488

[PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-07 Thread Jameson Graef Rollins
am certainly all for the feature. Definitely don't hold it up on this account. 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/20121207/77b0a105/attachment.pgp>

Re: [PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-07 Thread Mark Walters
Jameson Graef Rollins jroll...@finestructure.net writes: On Thu, Dec 06 2012, Peter Feigl cra...@gmx.net wrote: -/* Any changes to the JSON format should be reflected in the file - * devel/schemata. */ +/* Any changes to the JSON or S-Expression format should be + *

Re: [PATCH] emacs: show: make show-get-message-prop usable from pick

2012-12-07 Thread Mark Walters
Just in case anyone is thinking about this: there is a much better solution. I just redefine notmuch-show-get-prop in notmuch-pick and I can achieve exactly the same. Hence forget this patch/thread Many thanks Mark Mark Walters markwalters1...@gmail.com writes: Hi On Sun, 02 Dec 2012,

Re: [PATCH v4 3/5] Use the S-Expression structured printer in notmuch-show, notmuch-reply and notmuch-search.

2012-12-07 Thread Jameson Graef Rollins
On Fri, Dec 07 2012, Mark Walters markwalters1...@gmail.com wrote: Jameson Graef Rollins jroll...@finestructure.net writes: On Thu, Dec 06 2012, Peter Feigl cra...@gmx.net wrote: -/* Any changes to the JSON format should be reflected in the file - * devel/schemata. */ +/* Any

Re: gmail importer script

2012-12-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/12/12 05:05, Kushal Kumaran wrote: Jason A. Donenfeld ja...@zx2c4.com writes: Hi folks, I wrote a script that imports emails and tags from gmail. It's resumable and appears to be working reasonably well. I could use some experienced

Re: [PATCH] TODO: date range queries - check

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, Jameson Graef Rollins jroll...@finestructure.net wrote: On Thu, Dec 06 2012, Jani Nikula j...@nikula.org wrote: --- devel/TODO |9 - 1 file changed, 9 deletions(-) diff --git a/devel/TODO b/devel/TODO index eb757af..277a997 100644 --- a/devel/TODO +++

Re: gmail importer script

2012-12-07 Thread Patrick Totzke
Is this supposed to happen? - Logging in... Selecting all mail... Discovering local messages... Receiving message list... Traceback (most recent call last): File ./gmail-notmuch.py, line 175, in module main() File ./gmail-notmuch.py, line 58, in

[PATCH] Minor style changes.

2012-12-07 Thread Michal Nazarewicz
From: Michal Nazarewicz min...@mina86.com --- gmail-notmuch.py | 29 + 1 files changed, 9 insertions(+), 20 deletions(-) On Fri, Dec 07 2012, Jason A. Donenfeld wrote: I wrote a script that imports emails and tags from gmail. It's resumable and appears to be

Re: [PATCH] TODO: date range queries - check

2012-12-07 Thread David Bremner
Jameson Graef Rollins jroll...@finestructure.net writes: Has this TODO really been resolved? Do searches like since:2009-01-1 or until:2009-01-1 really now work? As far as I can tell they don't. Nor are they documented if they do. For specifying one-ended ranges, I find the current syntax

Re: [PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-07 Thread David Bremner
Mark Walters markwalters1...@gmail.com writes: This looks good to me except there are a couple of trailing whitespace errors If the whitespace is the only problem, I can fix that without another series. d P.S. Peter, you probably want to do something like % cd .git/hooks mv

Re: gmail importer script

2012-12-07 Thread Jason A. Donenfeld
On Fri, Dec 7, 2012 at 9:53 AM, Rainer M Krug r.m.k...@gmail.com wrote: Sounds interesting. I don't know much python, so excuse my questions: 1) are multiple downloads of an email done, if the mail has multiple labels? No. 2) I am downloading with the patched notmuch (to add x-keywords

Re: gmail importer script

2012-12-07 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/12/12 14:48, Jason A. Donenfeld wrote: On Fri, Dec 7, 2012 at 9:53 AM, Rainer M Krug r.m.k...@gmail.com mailto:r.m.k...@gmail.com wrote: Sounds interesting. I don't know much python, so excuse my questions: 1) are multiple

Re: gmail importer script

2012-12-07 Thread Jason A. Donenfeld
On Fri, Dec 7, 2012 at 2:48 PM, Jason A. Donenfeld ja...@zx2c4.com wrote: 3) are label changes in gmail synched into the local emails? It pulls labels from gmail messages into notmuch, with the labels in tact, once per each email. Okay, it's way more robust now. Just updated it. Now it

Re: gmail importer script

2012-12-07 Thread Jason A. Donenfeld
On Fri, Dec 7, 2012 at 2:57 PM, Rainer M Krug r.m.k...@gmail.com wrote: 2) I am downloading with the patched notmuch (to add x-keywords containing the labels) only the All Mail folder - does your script use this information (if present) to tag the emails? What is the patched

Re: [PATCH 1/1] NEWS: under-the-hood Emacs interface fixes

2012-12-07 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: Added the following Emacs Interface NEWS entries: Catch errors bodypart insertions may throw, Improved text/calendar content handling and Don't do coding conversions when reading in `with-current-notmuch-show-message`. Oops, I pushed another NEWS

Re: [PATCH v5 0/5] New output format sexp (Lisp S-Expressions)

2012-12-07 Thread Austin Clements
On Thu, 06 Dec 2012, Peter Feigl cra...@gmx.net wrote: This patch series adds a new output format sexp to notmuch-reply, notmuch-show and notmuch-search. These are useful for the Android mobile client, Emacs and perhaps other Lisp programs as well. After the switch to a generic structured

Re: [PATCH 1/1] NEWS: under-the-hood Emacs interface fixes

2012-12-07 Thread Austin Clements
Quoth Tomi Ollila on Dec 03 at 12:48 am: Added the following Emacs Interface NEWS entries: Catch errors bodypart insertions may throw, Improved text/calendar content handling and Don't do coding conversions when reading in `with-current-notmuch-show-message`. --- NEWS | 25

Re: [PATCH] TODO: date range queries - check

2012-12-07 Thread Jameson Graef Rollins
On Fri, Dec 07 2012, David Bremner da...@tethera.net wrote: Jameson Graef Rollins jroll...@finestructure.net writes: Has this TODO really been resolved? Do searches like since:2009-01-1 or until:2009-01-1 really now work? As far as I can tell they don't. Nor are they documented if they do.

Re: [PATCH] TODO: date range queries - check

2012-12-07 Thread Daniel Kahn Gillmor
On 12/07/2012 07:19 AM, David Bremner wrote: For specifying one-ended ranges, I find the current syntax OK-ish. It would be reasonable to formulate a seperate TODO for supporting things like date:2012-12-07 Out of curiosity, how does this syntax interact with timezones? If i send a mail in

Re: [PATCH] TODO: date range queries - check

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, Daniel Kahn Gillmor d...@fifthhorseman.net wrote: On 12/07/2012 07:19 AM, David Bremner wrote: For specifying one-ended ranges, I find the current syntax OK-ish. It would be reasonable to formulate a seperate TODO for supporting things like date:2012-12-07 Out of

Re: [PATCH] TODO: date range queries - check

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, Jameson Graef Rollins jroll...@finestructure.net wrote: On Fri, Dec 07 2012, David Bremner da...@tethera.net wrote: Jameson Graef Rollins jroll...@finestructure.net writes: Has this TODO really been resolved? Do searches like since:2009-01-1 or until:2009-01-1 really now

Re: [PATCH] TODO: date range queries - check

2012-12-07 Thread Jameson Graef Rollins
On Fri, Dec 07 2012, Jani Nikula j...@nikula.org wrote: Fine by me. I was just trying to clean up the file a bit, that's all. The only downside I can think of is potential new users stumbling on this and thinking we still don't have date queries. *shrug*. That's why it should probably just be

Re: [PATCH v2] emacs: add support for stashing the thread id in show view

2012-12-07 Thread Tomi Ollila
On Fri, Dec 07 2012, Jani Nikula wrote: Add a prefix argument to notmuch-show-stash-message-id to stash thread id instead of message id. --- LTGM. Tomi emacs/notmuch-show.el | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/emacs/notmuch-show.el

Re: [Patch v3b 2/9] test: add sanity check for dump --format=batch-tag.

2012-12-07 Thread Jani Nikula
LGTM. On Fri, 07 Dec 2012, da...@tethera.net wrote: From: David Bremner brem...@debian.org It's important this does not rely on restore, since it hasn't been written yet. --- test/dump-restore | 13 + 1 file changed, 13 insertions(+) diff --git a/test/dump-restore

Re: [Patch v3b 3/9] util: add string-util.[ch]

2012-12-07 Thread Jani Nikula
LGTM. On Fri, 07 Dec 2012, da...@tethera.net wrote: From: David Bremner brem...@debian.org This is to give a home to strtok_len. It's a bit silly to add a header for one routine, but it needs to be shared between several compilation units (or at least that's the most natural design). ---

Re: [Patch v3b 4/9] tag-util.[ch]: New files for common tagging routines

2012-12-07 Thread Jani Nikula
A few small comments, otherwise LGTM. On Fri, 07 Dec 2012, da...@tethera.net wrote: From: David Bremner brem...@debian.org These are meant to be shared between notmuch-tag and notmuch-restore. The bulk of the routines implement a tag operation list abstract data type act as a structured

Re: [Patch v3b 5/9] notmuch-restore: add support for input format 'batch-tag'

2012-12-07 Thread Jani Nikula
LGTM. On Fri, 07 Dec 2012, da...@tethera.net wrote: From: David Bremner brem...@debian.org This can be enabled with the new --format=batch-tag command line option to notmuch restore. The input must consist of lines of the format: +tag|-tag [...] [--] id:msg-id Each line is

[PATCH V2 1/1] NEWS: under-the-hood Emacs interface fixes

2012-12-07 Thread Tomi Ollila
Added the following Emacs Interface NEWS entries: Catch errors bodypart insertions may throw, Improved text/calendar content handling and Disabled coding conversions when reading in `with-current-notmuch-show-message`. Thanks to Austin for improved content parts. --- This replaces

Re: [Patch v3b 6/9] test: update dump-restore roundtripping test for batch-tag format

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, da...@tethera.net wrote: From: David Bremner brem...@debian.org Now we can actually round trip these crazy tags and and message ids. hex-xcode is no longer needed as it's built in. --- test/dump-restore | 17 - 1 file changed, 8 insertions(+), 9

Re: [Patch v3b 9/9] tag-util: optimization of tag application

2012-12-07 Thread Jani Nikula
On Fri, 07 Dec 2012, da...@tethera.net wrote: From: David Bremner brem...@debian.org The idea is not to bother with restore operations if they don't change the set of tags. This is actually a relatively common case. In order to avoid fancy datastructures, this method is quadratic in the

Tags with spaces

2012-12-07 Thread Jason A. Donenfeld
Do we support them? Are we going to? This doesn't work: notmuch search -tag:This has spaces Nor does: notmuch search -tag:This has spaces ___ notmuch mailing list notmuch@notmuchmail.org http://notmuchmail.org/mailman/listinfo/notmuch

Re: Tags with spaces

2012-12-07 Thread Tomi Ollila
On Sat, Dec 08 2012, Jason A. Donenfeld ja...@zx2c4.com wrote: Do we support them? Are we going to? This doesn't work: notmuch search -tag:This has spaces Nor does: notmuch search -tag:This has spaces This might work: notmuch search -tag:'This has spaces'

Re: Tags with spaces

2012-12-07 Thread Austin Clements
Quoth Jason A. Donenfeld on Dec 08 at 4:44 am: Do we support them? Are we going to? This doesn't work: notmuch search -tag:This has spaces Nor does: notmuch search -tag:This has spaces Tags with spaces are supported, but your shell will strip away the quotes you've used in both examples

Re: Tags with spaces

2012-12-07 Thread Austin Clements
Quoth Tomi Ollila on Dec 08 at 8:21 am: On Sat, Dec 08 2012, Jason A. Donenfeld ja...@zx2c4.com wrote: Do we support them? Are we going to? This doesn't work: notmuch search -tag:This has spaces Nor does: notmuch search -tag:This has spaces This might work: notmuch search