Re: [gmime-devel] problem with BOM in header



On 5/30/2014 5:37 AM, Andreas Amann wrote:
Jeffrey Stedfast <fejj gnome org> writes:
I simply get the string "(null)", but not the actual "From" field.  I
suspect that gmime chokes on parsing the BOM, and considers the
remainder of the message to be part of the body.  Is this the expected
behavior or is this a bug in gmime?
I doubt GMime chokes on it - it handles arbitrary 8-bit data in the
header values.
Hm, maybe it decides that the header finishes at the BOM?

It turns out that the problem is not the BOM, but rather the blank line preceding the BOM:

The message you sent me has multiple headers followed by a blank line (which terminates the headers) which is then followed by the Received header with the BOM.

Because of the blank line, the rest of the message (including the Received header with the BOM) is considered part of the body.

Jeff


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]