1 Return-Path: <racin@free.fr>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id C4C7140DEFA
\r
6 for <notmuch@notmuchmail.org>; Wed, 17 Nov 2010 14:08:19 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.03 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1.929,
\r
13 RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id Xs0elegNI0it for <notmuch@notmuchmail.org>;
\r
17 Wed, 17 Nov 2010 14:08:09 -0800 (PST)
\r
18 Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3])
\r
19 by olra.theworths.org (Postfix) with ESMTP id 3CBC640DEF4
\r
20 for <notmuch@notmuchmail.org>; Wed, 17 Nov 2010 14:08:07 -0800 (PST)
\r
21 Received: from racin (unknown [82.239.207.166])
\r
22 by smtp3-g21.free.fr (Postfix) with ESMTP id 90942A6228
\r
23 for <notmuch@notmuchmail.org>; Wed, 17 Nov 2010 23:08:03 +0100 (CET)
\r
24 From: Matthieu Lemerre <racin@free.fr>
\r
25 To: notmuch@notmuchmail.org
\r
26 Subject: Warning when GMime is parsing broken email addresses
\r
27 User-Agent: Notmuch/0.5 (http://notmuchmail.org) Emacs/23.2.1
\r
29 Date: Wed, 17 Nov 2010 23:20:26 +0100
\r
30 Message-ID: <87ipzvk2xh.fsf@free.fr>
\r
32 Content-Type: text/plain; charset=us-ascii
\r
33 X-BeenThere: notmuch@notmuchmail.org
\r
34 X-Mailman-Version: 2.1.13
\r
36 List-Id: "Use and development of the notmuch mail system."
\r
37 <notmuch.notmuchmail.org>
\r
38 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
39 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
40 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
41 List-Post: <mailto:notmuch@notmuchmail.org>
\r
42 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
43 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
44 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
45 X-List-Received-Date: Wed, 17 Nov 2010 22:08:19 -0000
\r
50 I just realized that GMime is not robust to some broken email addresses
\r
51 sent by broken email clients. I received a mail, with the to field being
\r
53 xxxx.yyyy <uuuu-vvvv@gmail.com>
\r
55 The email client (Exchange) had forgotten to put a "" around
\r
56 "xxxx.yyyy", which is necessary because `.' is a special character, and
\r
57 this confused GMime. This resulted in notmuch storing xxxx.yyyy as the
\r
58 email address, instead of using uuuu-vvvv@gmail.com. Because of that I
\r
59 had trouble finding one of my mail using a to: in the search terms.
\r
61 I have filed a bug report for GMime
\r
62 (https://bugzilla.gnome.org/show_bug.cgi?id=545333), but I just wanted
\r
63 to make people using notmuch aware of this problem, because I guess that
\r
64 such problems might be extremely common.
\r
66 Maybe it would also be interesting to add a warning/assertion to check
\r
67 that all email adresses added to the database are correct email
\r
68 addresses? I.e. check that the `addr' variable in _index_address_mailbox
\r
69 always has a @. This check is in fact already done using the function
\r
70 strchr, but a bad value is explicitly ignored...
\r