Parsing regression with gmime-2.6?

Daniel Kahn Gillmor dkg at fifthhorseman.net
Thu Mar 8 12:30:21 PST 2012


On Tue, 06 Mar 2012 18:04:50 -0400, David Bremner <david at tethera.net> wrote:
> There seems to be something weird going on with gmime-2.6; maybe we
> didn't catch some api change? 

This does seem to be a regression in gmime 2.6.  I've reported the bug
upstream, along with a simplified (non-notmuch) demonstration:

 https://bugzilla.gnome.org/show_bug.cgi?id=671680

We'll see what gmime's upstream has to say about it.

As a devil's advocate, i could argue that a message in a maildir that
starts with a "From " line isn't a proper e-mail message in the first
place, and therefore gmime 2.6 is being more rigorously correct about
what it accepts.  In particular, if a user were to place a multi-message
mbox file in their notmuch message store, i think that notmuch linked
against 2.4 would happily index only the first message of it, and the
rest of the message would be "hidden", whereas gmime 2.6 allows us to
detect these failures and avoid indexing them directly.

That said, i understand that this is probably not an entirely rare
situation, and i lean toward the idea that gmime 2.4's behavior was
actually the Right Thing.  Also, I haven't been able to find any
explicit documentation to indicate that the behavior change was
a deliberate one.

I'm happy to relay any helpful or constructive suggestions to the gmime
upstream ticket, if folks don't want to deal with bugzilla directly.

        --dkg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 965 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120308/191964c6/attachment.pgp>


More information about the notmuch mailing list