Hi Kevin,
My comments are inline below: On 10/22/2018 6:32 AM, chenkevin via gmime-devel-list wrote:
Yea, because that's not an mbox marker. Mbox markers may only start with "From " (i.e. From-space).
You are misunderstanding what that method is doing. It allows for checking ">From " because that is a common glob of text that might preface the headers of a message/rfc822 attachment. In other words: [top-level message headers] Content-Type: multipart/mixed; boundary="blahblah" --blahblah Content-Type: text/plain This is the message body --blahblah Content-Type: message/rfc822 >From joe someplace org blah blah blah Received: blah blah blah [more message headers] The is_mbox_marker() function is just trying to determine if the garbage that it just encountered might be something like the above snippet. It is not meant to decide if that is the start of a new message in the mbox file.
This documentation confirms what I've just been telling you and does not, afaict, say that ">>From" is a valid mbox marker.
No. This doesn't make any sense to do. I would recommend reading this: https://www.jwz.org/doc/content-length.html
GMime's current mbox parser handles those above formats just fine. You just don't have a valid mbox file of any kind. Hope that helps to clear things up, Jeff |