unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Warning when GMime is parsing broken email addresses
@ 2010-11-17 22:20 Matthieu Lemerre
  2010-11-18 18:37 ` Matthieu Lemerre
  2011-04-25 22:23 ` Carl Worth
  0 siblings, 2 replies; 9+ messages in thread
From: Matthieu Lemerre @ 2010-11-17 22:20 UTC (permalink / raw)
  To: notmuch


Hi,

I just realized that GMime is not robust to some broken email addresses
sent by broken email clients. I received a mail, with the to field being

xxxx.yyyy <uuuu-vvvv@gmail.com>

The email client (Exchange) had forgotten to put a "" around
"xxxx.yyyy", which is necessary because `.' is a special character, and
this confused GMime. This resulted in notmuch storing xxxx.yyyy as the
email address, instead of using uuuu-vvvv@gmail.com. Because of that I
had trouble finding one of my mail using a to: in the search terms.

I have filed a bug report for GMime
(https://bugzilla.gnome.org/show_bug.cgi?id=545333), but I just wanted
to make people using notmuch aware of this problem, because I guess that
such problems might be extremely common.

Maybe it would also be interesting to add a warning/assertion to check
that all email adresses added to the database are correct email
addresses? I.e. check that the `addr' variable in _index_address_mailbox
always has a @. This check is in fact already done using the function
strchr, but a bad value is explicitly ignored...

Matthieu

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2011-05-13 22:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-17 22:20 Warning when GMime is parsing broken email addresses Matthieu Lemerre
2010-11-18 18:37 ` Matthieu Lemerre
2010-11-18 18:51   ` Daniel Kahn Gillmor
2010-11-20 11:23     ` Matthieu Lemerre
2010-11-20 14:35       ` Daniel Kahn Gillmor
2011-04-25 22:23 ` Carl Worth
2011-04-27 16:30   ` Xavier Maillard
2011-04-27 19:59     ` Pieter Praet
2011-05-13 22:33       ` Matthieu Lemerre

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).