That is indeed a big in the mail gem. I contributed a patch that is a partial fix.
What is essential is that you only convert headers not the binary attachment as that can corrupt images. On Mon, Feb 11, 2019, 4:11 PM sebb <[email protected] wrote: > It looks as though the mail gem does try to convert the input to CRLF > before parsing. > However, it only does this if the input is ASCII-only (*). > > Whilst this is the best approach, I think we can ignore that check and > just convert to CRLF. > [It may cause a very occasional glitch, but any such should be obvious.] > > It explains why the original email failed to parse: there are several > non-ASCII chars in it. > These have been converted to quoted-printable by the version you > forwarded, thus allowing the parse to complete OK. > > I'll commit a fix shortly. > > S. > (*) This applies to binary data, which is all that we know about the > input at this point. > > On Mon, 11 Feb 2019 at 18:55, sebb <[email protected]> wrote: > > > > Seems to be an issue with the parser not handling certain messages > > which have LF-only line terminators. > > > > I tried converting the mail file to CRLF and reparsing, and the > > attachment appeared. > > > > AFAICT all messages are being stored as LF-only, and I don't know why > > this only affects some mails. > > The one in question is quite complicated with various quoted mails > > before the attachment; that might have affected parsing. > > > > The copy of the mail sent to my GMail account appears to have CRLF > > line terminators, yet the copies on minotaur and mbox-vm are LF-only. > > Perhaps GMail auto-converts the mail? > > Not sure what is happening here. > > > > On Mon, 11 Feb 2019 at 17:20, sebb <[email protected]> wrote: > > > > > > The immediate reason is that the parsed message does not have any > > > attachments listed in the summary yml file, so does not show up in the > > > workbench. > > > > > > I will look further into why the parsing did not see the attachment. > > > > > > S. > > > On Mon, 11 Feb 2019 at 17:11, sebb <[email protected]> wrote: > > > > > > > > I'll take a look > > > > > > > > On Mon, 11 Feb 2019 at 16:27, Craig Russell <[email protected]> > wrote: > > > > > > > > > > Hi, > > > > > > > > > > This seems to be happening more frequently: an ICLA shows up in > secretary mail inbox but does not appear in workbench. > > > > > > > > > > If I forward the message to secretary, it then appears in > workbench. > > > > > > > > > > Without violating PII, I cannot forward the message directly. But > this is the message that was received this AM and never made it to > workbench: > > > > > > > > > > From: Olivier Coutu > > > > > Date: 6:10 AM PST > > > > > Subject: Fwd: Re: Patch to reduce lint time > > > > > > > > > > Any ideas? > > > > > > > > > > Thanks, > > > > > > > > > > Craig > > > > > > > > > > Craig L Russell > > > > > Secretary, Apache Software Foundation > > > > > [email protected] http://db.apache.org/jdo > > > > > >
