Re: Debugging strangeness in To: field

Subject: Re: Debugging strangeness in To: field

Date: Wed, 6 Apr 2011 15:26:06 -0600

To: Aaron Williamson

Cc: notmuch@notmuchmail.org

From: Mark Anderson


On Wed, 06 Apr 2011 13:35:44 -0600, Mark Anderson <MarkR.Anderson@amd.com> wrote:
Hello All,

> It is rather painful that I can have a lot of recipients dropped
> silently by gmime.

Well, it's not this bad, I only lose the rest of the display name and
the true email address for the recipients where this matches.  Later
recipients are preserved.  That's better than I thought, but definitely
not good, since the same email list can have multiple display names
depending on the sender's preferences, and now I have no guarantee that
notmuch will have the true email address indexed.  Hopefully this poor
behavior is related to my exposure to Exchange and isn't contagious
without willful stupidity. :)

This behavior also breaks the idea that I can just copy and paste from
the To: field into a search, since some terms will be missing.

It looks like it would be better to stuff the entire string of the To:
field directly into Xapian.  GMime will give you a string output of what it
figured out from the message header, but that already has terms pruned
as shown below:

>From the raw file:

To: One Big Happy <OneBigHappy@amd.com>, 
	dist.Happy Group <dist.HappyGroup@amd.com>,
        This Really Stinks <something_smelly@notfromhere.com>,
        This.WillPrune <wrinkled_plum@plumfarm.com>,
        This Will Not Prune <plump_plums@plumsrus.com>

Trace output:

Email address list: One Big Happy <OneBigHappy@amd.com>, dist.Happy, This Really Stinks <something_smelly@notfromhere.com>, This.WillPrune, This Will Not Prune <plump_plums@plumsrus.com>
Email address: One Big Happy <OneBigHappy@amd.com>
Email address: dist.Happy
Email address: This Really Stinks <something_smelly@notfromhere.com>
Email address: This.WillPrune
Email address: This Will Not Prune <plump_plums@plumsrus.com>

Any suggestions for how to fix this?  Or is my mail broken irreparably?

-Mark


Thread: