Re: mailinfo: don't require text mime type for attachments

2012-10-01 Thread Don Zickus
On Sun, Sep 30, 2012 at 03:10:48PM -0700, Linus Torvalds wrote: This code goes all the way back to March of 2007, in commit 87ab79923463 (builtin-mailinfo.c infrastrcture changes), and apparently Don used to pass random mbox contents to git. However, the pre-decode vs post-decode logic

mailinfo: don't require text mime type for attachments

2012-09-30 Thread Linus Torvalds
Currently git am does insane things if the mbox it is given contains attachments with a MIME type that aren't text/*. In particular, it will still decode them, and pass them one line at a time to the mail body filter, but because it has determined that they aren't text (without actually