Re: notmuch killed due to out of memory - how to move forward

2014-02-04 Thread Jani Nikula
On Mon, 03 Feb 2014, Hamish Downer ham...@foobacca.co.uk wrote: Hello I recently deleted almost 3 old messages from my maildirs, and since I did that, notmuch new has not managed to complete. I have it running on a server with 1 GB of RAM, and the output is telling me Cleaned up

notmuch new crashing due to out of memory - how to deal with it

2014-02-04 Thread Hamish D
Hello I recently deleted almost 3 old messages from my maildirs, and since I did that, notmuch new has not managed to complete. I have it running on a server with 1 GB of RAM, and the output is telling me Cleaned up 25515 of 29803 messages (1m 10s remaining). at the point it is killed.

notmuch killed by out of memory - how to move forward

2014-02-04 Thread Hamish D
Hello I recently deleted almost 3 old messages from my maildirs, and since I did that, notmuch new has not managed to complete. I have it running on a server with 1 GB of RAM, and the output is telling me Cleaned up 25515 of 29803 messages (1m 10s remaining). at the point it is killed.

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, W. Trevor King wk...@tremily.us wrote: On Mon, Feb 03, 2014 at 11:10:23PM +0200, Tomi Ollila wrote: data['message-id-term'] = 'id:{}'.format(value) ValueError: zero length field name in format Oops, Python 2.6 still needs explicit indexes ('{0}', not '{}'). It's an

Re: [PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, W. Trevor King wk...@tremily.us wrote: On Mon, Feb 03, 2014 at 10:44:39PM +0200, Tomi Ollila wrote: having notmuch patch email as expected test output feels a bit confusing to me -- especially as 'git grep' may catch some of the (possibly future-outdated) content...

Re: sanitization of args notmuch-cli in notmuch-emacs

2014-02-04 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: Maybe the cli should be fixed ? (and/or make emacs MUA resilient to this kind of result) Would it make any sense to output errors in structured format? I guess the downside is it would be harder for a human user to read. d

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread David Bremner
Tomi Ollila tomi.oll...@iki.fi writes: anyway, if this doesn't resolve out and there is no resistance to require python 2.7 (that means from David) I can hack around this to get this reviewed. Currently the production copy of nmbug-status is running with python2.6 on Debian squeeze. I

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
On Tue, Feb 04, 2014 at 09:07:45AM -0400, David Bremner wrote: Tomi Ollila writes: anyway, if this doesn't resolve out and there is no resistance to require python 2.7 (that means from David) I can hack around this to get this reviewed. Currently the production copy of nmbug-status is

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
On Tue, Feb 04, 2014 at 12:30:30PM +0200, Tomi Ollila wrote: On Tue, Feb 04 2014, W. Trevor King wrote: On Mon, Feb 03, 2014 at 11:10:23PM +0200, Tomi Ollila wrote: File devel/nmbug/nmbug-status, line 197, in _write_threads ).format(**message_display_data)) File

Re: notmuch killed due to out of memory - how to move forward

2014-02-04 Thread Kushal Kumaran
Jani Nikula j...@nikula.org writes: On Mon, 03 Feb 2014, Hamish Downer ham...@foobacca.co.uk wrote: Hello I recently deleted almost 3 old messages from my maildirs, and since I did that, notmuch new has not managed to complete. I have it running on a server with 1 GB of RAM, and the

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
On Tue, Feb 04, 2014 at 07:50:32AM -0800, W. Trevor King wrote: That's two votes for Python 2.6 and none for later versions, so I'll just try a bit harder for 2.6 compatibility ;). As a v2 preview, and to help with further review, I've posted my current v1+ version of this branch at:

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
On Tue, Feb 04, 2014 at 12:30:30PM +0200, Tomi Ollila wrote: On Tue, Feb 04 2014, W. Trevor King wrote: On Mon, Feb 03, 2014 at 11:10:23PM +0200, Tomi Ollila wrote: File devel/nmbug/nmbug-status, line 197, in _write_threads ).format(**message_display_data)) File

Re: sanitization of args notmuch-cli in notmuch-emacs

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, David Bremner da...@tethera.net wrote: Tomi Ollila tomi.oll...@iki.fi writes: Maybe the cli should be fixed ? (and/or make emacs MUA resilient to this kind of result) Would it make any sense to output errors in structured format? I guess the downside is it would be

Re: notmuch killed due to out of memory - how to move forward

2014-02-04 Thread Hamish Downer
On 4 February 2014 08:25, Jani Nikula j...@nikula.org wrote: On Mon, 03 Feb 2014, Hamish Downer ham...@foobacca.co.uk wrote: I recently deleted almost 3 old messages from my maildirs, and since I did that, notmuch new has not managed to complete. I have it running on a server with 1 GB of

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, W. Trevor King wk...@tremily.us wrote: On Tue, Feb 04, 2014 at 12:30:30PM +0200, Tomi Ollila wrote: On Tue, Feb 04 2014, W. Trevor King wrote: On Mon, Feb 03, 2014 at 11:10:23PM +0200, Tomi Ollila wrote: File devel/nmbug/nmbug-status, line 197, in _write_threads

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, W. Trevor King wk...@tremily.us wrote: from __future__ import unicode_literals import codecs import locale import sys print(locale.getpreferredencoding()) # same as yours UTF-8 print(sys.getdefaultencoding()) # same as yours ascii

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
On Tue, Feb 04, 2014 at 08:40:18PM +0200, Tomi Ollila wrote: On Tue, Feb 04 2014, W. Trevor King wrote: from __future__ import unicode_literals import codecs import locale import sys print(locale.getpreferredencoding()) # same as yours UTF-8

Re: sanitization of args notmuch-cli in notmuch-emacs

2014-02-04 Thread Mark Walters
On Tue, 04 Feb 2014, David Bremner da...@tethera.net wrote: Tomi Ollila tomi.oll...@iki.fi writes: Maybe the cli should be fixed ? (and/or make emacs MUA resilient to this kind of result) Would it make any sense to output errors in structured format? I guess the downside is it would be

Re: [PATCH 0/5] lib: make folder: prefix literal

2014-02-04 Thread Austin Clements
Quoth Jani Nikula on Feb 01 at 4:54 pm: On Fri, 31 Jan 2014, Austin Clements amdra...@mit.edu wrote: What if we introduce two prefixes, say folder: and path: (maybe dir:?) to address both use cases, each as naturally as possible? Both would be boolean prefixes because of the limitations

Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, W. Trevor King wk...@tremily.us wrote: I don't know what to paste, so i paste this: $ python Python 2.6.6 (r266:84292, Nov 21 2013, 12:39:37) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type help, copyright, credits or license for more information. It looks

Re: [PATCH 0/5] lib: make folder: prefix literal

2014-02-04 Thread Austin Clements
Quoth Rob Browning on Jan 31 at 1:19 pm: Austin Clements amdra...@mit.edu writes: folder: could work the way I suggested (simply the path to the file, with {cur,new} stripped off). Hmm, so would notmuch try to guess whether or not it's dealing with a maildir++ tree, and if so convert

Re: [PATCH 0/5] lib: make folder: prefix literal

2014-02-04 Thread Rob Browning
Austin Clements amdra...@mit.edu writes: The simple algorithm of taking the relative path and stripping {new,cur} (if present) does a good job of supporting both Maildir and non-Maildir stores (while balancing this support with simplicity, predictability, and usability). Unless, of course,

Re: [PATCH 0/5] lib: make folder: prefix literal

2014-02-04 Thread Carl Worth
Austin Clements amdra...@mit.edu writes: Agreed. I believe this will also support MH, if I understand MH correctly (does anyone actually use MH?) When I started notmuch, I had all of my mail in one-message-per-file in various directories, (without these silly cur and new directories that

notmuch killed due to out of memory - how to move forward

2014-02-04 Thread Jani Nikula
On Mon, 03 Feb 2014, Hamish Downer wrote: > Hello > > I recently deleted almost 3 old messages from my maildirs, and > since I did that, notmuch new has not managed to complete. I have it > running on a server with 1 GB of RAM, and the output is telling me > > Cleaned up 25515 of 29803

[PATCH 2/2] emacs: Prefer Content-Description over filename for part buttons

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, "W. Trevor King" wrote: > On Mon, Feb 03, 2014 at 10:44:39PM +0200, Tomi Ollila wrote: >> having notmuch patch email as expected test output feels a bit >> confusing to me -- especially as 'git grep' may catch some of the >> (possibly future-outdated) content... > > There

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread David Bremner
Tomi Ollila writes: > anyway, if this doesn't resolve out and there is no resistance to require > python 2.7 (that means from David) I can hack around this to get this > reviewed. Currently the production copy of nmbug-status is running with python2.6 on Debian squeeze. I _should_ upgrade that

sanitization of args notmuch-cli in notmuch-emacs

2014-02-04 Thread David Bremner
Tomi Ollila writes: > > Maybe the cli should be fixed ? (and/or make emacs MUA resilient to > this kind of result) > Would it make any sense to output errors in structured format? I guess the downside is it would be harder for a human user to read. d

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notm

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
sn't work, can you just paste that whole run in your next email? Thanks, Trevor -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140204/5b72876f/attachment.pgp>

notmuch killed due to out of memory - how to move forward

2014-02-04 Thread Kushal Kumaran
rds, kushal -- next part -- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 489 bytes Desc: not available URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140204/492dda0e/attachment.pgp>

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
rivacy -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140204/636b7af4/attachment.pgp>

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140204/f17c99ed/attachment.pgp>

sanitization of args notmuch-cli in notmuch-emacs

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, David Bremner wrote: > Tomi Ollila writes: > >> >> Maybe the cli should be fixed ? (and/or make emacs MUA resilient to >> this kind of result) >> > > Would it make any sense to output errors in structured format? I guess > the downside is it would be harder for a human

notmuch killed due to out of memory - how to move forward

2014-02-04 Thread Hamish Downer
On 4 February 2014 08:25, Jani Nikula wrote: > On Mon, 03 Feb 2014, Hamish Downer wrote: >> I recently deleted almost 3 old messages from my maildirs, and >> since I did that, notmuch new has not managed to complete. I have it >> running on a server with 1 GB of RAM, and the output is

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, "W. Trevor King" wrote: > On Tue, Feb 04, 2014 at 12:30:30PM +0200, Tomi Ollila wrote: >> On Tue, Feb 04 2014, W. Trevor King wrote: >> > On Mon, Feb 03, 2014 at 11:10:23PM +0200, Tomi Ollila wrote: >> >> File "devel/nmbug/nmbug-status", line 197, in _write_threads >> >>

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, "W. Trevor King" wrote: > > >>> from __future__ import unicode_literals > >>> import codecs > >>> import locale > >>> import sys > >>> print(locale.getpreferredencoding()) # same as yours > UTF-8 > >>> print(sys.getdefaultencoding()) # same as yours > ascii

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread W. Trevor King
b' in However, without unicode_literals or an explicit u'', you're format string '?{from}' is a str (it should be a 'unicode' instance with unicode_literals). > >>> import os > >>> print os.environ['LANG'] > en_US.UTF-8 That's good anyway ;). Thanks for digging into this :). Cheers, Trevor -- This email may be signed or encrypted with GnuPG (http://www.gnupg.org). For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy -- next part -- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: OpenPGP digital signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140204/89b717bd/attachment.pgp>

sanitization of args notmuch-cli in notmuch-emacs

2014-02-04 Thread Mark Walters
On Tue, 04 Feb 2014, David Bremner wrote: > Tomi Ollila writes: > >> >> Maybe the cli should be fixed ? (and/or make emacs MUA resilient to >> this kind of result) >> > > Would it make any sense to output errors in structured format? I guess > the downside is it would be harder for a human

[PATCH 0/5] lib: make folder: prefix literal

2014-02-04 Thread Austin Clements
Quoth Jani Nikula on Feb 01 at 4:54 pm: > On Fri, 31 Jan 2014, Austin Clements wrote: > > What if we introduce two prefixes, say folder: and path: (maybe dir:?) > > to address both use cases, each as naturally as possible? Both would > > be boolean prefixes because of the limitations of

[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring

2014-02-04 Thread Tomi Ollila
On Tue, Feb 04 2014, "W. Trevor King" wrote: >> >> I don't know what to paste, so i paste this: >> >> $ python >> Python 2.6.6 (r266:84292, Nov 21 2013, 12:39:37) >> [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 >> Type "help", "copyright", "credits" or "license" for more information. > >

[PATCH 0/5] lib: make folder: prefix literal

2014-02-04 Thread Austin Clements
Quoth Rob Browning on Jan 31 at 1:19 pm: > Austin Clements writes: > > > folder: could work the way I suggested (simply the path to the file, > > with {cur,new} stripped off). > > Hmm, so would notmuch try to guess whether or not it's dealing with a > maildir++ tree, and if so convert

[PATCH 0/5] lib: make folder: prefix literal

2014-02-04 Thread Rob Browning
Austin Clements writes: > The simple algorithm of taking the relative path and stripping > {new,cur} (if present) does a good job of supporting both Maildir and > non-Maildir stores (while balancing this support with simplicity, > predictability, and usability). Unless, of course, the user has