1 Return-Path: <five9a2@gmail.com>
\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 3F731431FBC
\r
6 for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 10:29:26 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
8 Received: from olra.theworths.org ([127.0.0.1])
\r
9 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
10 with ESMTP id pwJshMU-XFUA for <notmuch@notmuchmail.org>;
\r
11 Mon, 23 Nov 2009 10:29:25 -0800 (PST)
\r
12 Received: from mail-bw0-f210.google.com (mail-bw0-f210.google.com
\r
14 by olra.theworths.org (Postfix) with ESMTP id 679FC431FAE
\r
15 for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 10:29:25 -0800 (PST)
\r
16 Received: by bwz2 with SMTP id 2so5545362bwz.0
\r
17 for <notmuch@notmuchmail.org>; Mon, 23 Nov 2009 10:29:24 -0800 (PST)
\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
19 h=domainkey-signature:received:received:sender:from:to:cc:subject
\r
20 :date:message-id:x-mailer;
\r
21 bh=GsZ30rYyCv1Y3zZF3E/jdJq8F4pEOJqPQLn8CcKqtUk=;
\r
22 b=D40yURe2HwQebtIJsUIE/+5Fe8Ao40lp3+YM2tigOqlJFH5pDdndv9p4BRKl4TPWfo
\r
23 LOS6CgA6uAVQG62TwhRIdjyjX/nVAFPo+OlrhnHkgkIwvEE+0N8fpk9dkIQrRTLJ2AQ7
\r
24 xLtM0RxlfjDTt6YY6pQVJTD+tZ804kvMt2wPs=
\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
26 h=sender:from:to:cc:subject:date:message-id:x-mailer;
\r
27 b=lflQE37PtucWgouWD3awibK4+Xsp5jPoHYz6Z32uBizP4mT14bUHn0pm5YACuSJhTI
\r
28 hzEXrRE55vh1rVKaziJYbG6kJxGqiDVO3f9QDzBLgyR02jFlvs2FTT6dbZKqbAfrZuko
\r
29 OxbdBw30tew2oeiHM43ICdij7ckqXbQm8QRvs=
\r
30 Received: by 10.204.7.197 with SMTP id e5mr4984860bke.184.1259000964486;
\r
31 Mon, 23 Nov 2009 10:29:24 -0800 (PST)
\r
32 Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11])
\r
33 by mx.google.com with ESMTPS id p9sm6054851fkb.44.2009.11.23.10.29.22
\r
34 (version=TLSv1/SSLv3 cipher=RC4-MD5);
\r
35 Mon, 23 Nov 2009 10:29:23 -0800 (PST)
\r
36 Sender: Jed Brown <five9a2@gmail.com>
\r
37 From: Jed Brown <jed@59A2.org>
\r
38 To: notmuch@notmuchmail.org
\r
39 Date: Mon, 23 Nov 2009 19:29:52 +0100
\r
40 Message-Id: <1259000992-31796-1-git-send-email-jed@59A2.org>
\r
41 X-Mailer: git-send-email 1.6.5.3
\r
42 Subject: [notmuch] [PATCH] Make addresses case insensitive for the purpose
\r
43 of constructing replies.
\r
44 X-BeenThere: notmuch@notmuchmail.org
\r
45 X-Mailman-Version: 2.1.12
\r
47 List-Id: "Use and development of the notmuch mail system."
\r
48 <notmuch.notmuchmail.org>
\r
49 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
50 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
51 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
52 List-Post: <mailto:notmuch@notmuchmail.org>
\r
53 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
54 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
55 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
56 X-List-Received-Date: Mon, 23 Nov 2009 18:29:26 -0000
\r
58 The domain is alway case insensitive, but in principle the username is
\r
59 case sensitive. Few systems actually enforce this so I think a good
\r
60 default is to treat the entire address as case insensitive, it will
\r
61 eliminate a lot of superfluous self-addressed messages and reply from
\r
62 the correct address in these cases.
\r
64 Signed-off-by: Jed Brown <jed@59A2.org>
\r
66 notmuch-reply.c | 4 ++--
\r
67 1 files changed, 2 insertions(+), 2 deletions(-)
\r
69 diff --git a/notmuch-reply.c b/notmuch-reply.c
\r
70 index 44e1766..cd81e76 100644
\r
71 --- a/notmuch-reply.c
\r
72 +++ b/notmuch-reply.c
\r
73 @@ -97,12 +97,12 @@ address_is_users (const char *address, notmuch_config_t *config)
\r
74 size_t i, other_len;
\r
76 primary = notmuch_config_get_user_primary_email (config);
\r
77 - if (strcmp (primary, address) == 0)
\r
78 + if (strcasecmp (primary, address) == 0)
\r
81 other = notmuch_config_get_user_other_email (config, &other_len);
\r
82 for (i = 0; i < other_len; i++)
\r
83 - if (strcmp (other[i], address) == 0)
\r
84 + if (strcasecmp (other[i], address) == 0)
\r