Re: Hi all
[notmuch-archives.git] / c7 / 0b4e99b0d070df3a5e88ff8e38140e642d17c8
1 Return-Path: <jrollins@finestructure.net>\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 52074431FBC\r
6         for <notmuch@notmuchmail.org>; Tue, 26 Jan 2010 11:17:51 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -3.559\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-3.559 tagged_above=-999 required=5 tests=[AWL=0.626,\r
12         BAYES_40=-0.185, RCVD_IN_DNSWL_MED=-4] autolearn=ham\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id 1tndAgqwZzm6 for <notmuch@notmuchmail.org>;\r
16         Tue, 26 Jan 2010 11:17:50 -0800 (PST)\r
17 Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8])\r
18         by olra.theworths.org (Postfix) with ESMTP id A73C3431FAE\r
19         for <notmuch@notmuchmail.org>; Tue, 26 Jan 2010 11:17:50 -0800 (PST)\r
20 Received: from servo.finestructure.net (cpe-72-227-128-66.nyc.res.rr.com\r
21         [72.227.128.66])\r
22         (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0)\r
23         by brinza.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o0QJHnef012617\r
24         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
25         for <notmuch@notmuchmail.org>; Tue, 26 Jan 2010 14:17:50 -0500 (EST)\r
26 Received: from jrollins by servo.finestructure.net with local (Exim 4.71)\r
27         (envelope-from <jrollins@finestructure.net>) id 1NZqv7-0000Ly-Fm\r
28         for notmuch@notmuchmail.org; Tue, 26 Jan 2010 14:17:49 -0500\r
29 From: Jameson Rollins <jrollins@finestructure.net>\r
30 To: Notmuch Mail list <notmuch@notmuchmail.org>\r
31 Date: Tue, 26 Jan 2010 13:49:46 -0500\r
32 Message-ID: <87r5pcad5v.fsf@servo.finestructure.net>\r
33 MIME-Version: 1.0\r
34 Content-Type: multipart/signed; boundary="=-=-=";\r
35         micalg=pgp-sha256; protocol="application/pgp-signature"\r
36 X-No-Spam-Score: Local\r
37 X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8\r
38 Subject: [notmuch] [PATCH] Remove bcc header from notmuch reply.\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Tue, 26 Jan 2010 19:17:51 -0000\r
52 \r
53 --=-=-=\r
54 Content-Transfer-Encoding: quoted-printable\r
55 \r
56 Notmuch reply should not be Bcc'ing the sender by default.  This is\r
57 not the appropriate way to save copies of sent mail (which should\r
58 probably be handled by an Fcc header) and it doesn't give the user the\r
59 option to not be bcc'd.  This is really something that should be\r
60 handled by the reader UI.  For instance, emacs message-mode can easily\r
61 be configured to add Bcc's if the user wishes.\r
62 =2D--\r
63  notmuch-reply.c |    9 +--------\r
64  1 files changed, 1 insertions(+), 8 deletions(-)\r
65 \r
66 diff --git a/notmuch-reply.c b/notmuch-reply.c\r
67 index 0cda72d..de05aaf 100644\r
68 =2D-- a/notmuch-reply.c\r
69 +++ b/notmuch-reply.c\r
70 @@ -30,8 +30,7 @@ static const struct {\r
71  } reply_to_map[] =3D {\r
72      { "reply-to", "from", GMIME_RECIPIENT_TYPE_TO  },\r
73      { "to",         NULL, GMIME_RECIPIENT_TYPE_TO  },\r
74 =2D    { "cc",         NULL, GMIME_RECIPIENT_TYPE_CC  },\r
75 =2D    { "bcc",        NULL, GMIME_RECIPIENT_TYPE_BCC }\r
76 +    { "cc",         NULL, GMIME_RECIPIENT_TYPE_CC  }\r
77  };\r
78 =20\r
79  static void\r
80 @@ -254,9 +253,6 @@ notmuch_reply_format_default(void *ctx, notmuch_config_=\r
81 t *config, notmuch_query_\r
82         g_mime_object_set_header (GMIME_OBJECT (reply),\r
83                                   "From", from_addr);\r
84 =20\r
85 =2D     g_mime_object_set_header (GMIME_OBJECT (reply), "Bcc",\r
86 =2D                        notmuch_config_get_user_primary_email (config));\r
87 =2D\r
88         in_reply_to =3D talloc_asprintf (ctx, "<%s>",\r
89                              notmuch_message_get_message_id (message));\r
90 =20\r
91 @@ -346,9 +342,6 @@ notmuch_reply_format_headers_only(void *ctx, notmuch_co=\r
92 nfig_t *config, notmuch_q\r
93                                               recipients);\r
94         }\r
95 =20\r
96 =2D     g_mime_object_set_header (GMIME_OBJECT (reply), "Bcc",\r
97 =2D                        notmuch_config_get_user_primary_email (config));\r
98 =2D\r
99         reply_headers =3D g_mime_object_to_string (GMIME_OBJECT (reply));\r
100         printf ("%s", reply_headers);\r
101         free (reply_headers);\r
102 =2D-=20\r
103 1.6.5\r
104 \r
105 \r
106 --=-=-=\r
107 Content-Type: application/pgp-signature\r
108 \r
109 -----BEGIN PGP SIGNATURE-----\r
110 Version: GnuPG v1.4.10 (GNU/Linux)\r
111 \r
112 iQIcBAEBCAAGBQJLXz/cAAoJEO00zqvie6q89XkP/1Emg/RY8vJQCAMj4FfKemip\r
113 C6NXtOvhQOEJzCtq8nDfhsIRo2NQZk22AirzQGcqhZj6dHJwElbKcds93Nvkyu03\r
114 8e+/uvHH2TrQXHGhVtwJbCTbkIwYskt3sL1PZYEnKoes37QLZkdLPQVIvcSYr/Xj\r
115 Rei/7NsjXOK8hASjo/MH2jw21x708E7wyIpk7bLNROyKBGW5ZsHxeM51gluZYVoq\r
116 3E34lwC7jAFec05Mj5TfEz52O6P/m4dyWB1wqki1Z3GKMBGury3xl6sDrx1MHT1w\r
117 mGOrA5HcSU9Zz+GqUFDqvj3MPR4j+fb0XmLtuwe5wBr9jDnen0+UloOYwSdLiX0S\r
118 yScLLxHs1l+h1tQfQXY/UhNBDKlbxEgZw94N6LdyDNv+UCRrDkCgZlscth8VK4zs\r
119 C4zXRywFvmFe6zhJiM9PUxu0nkyYeWWJ5H6ZFAF8yhsftIYFfjCpTY05jJIaRwtR\r
120 gXGrI+sBEWEYa5vXPFK6X9mzuP+6EtuEKr6QJug2MpEy9aGcvO7cgZTjhOR8Kuo3\r
121 nlh3XSxT4uRoAYWZkDw67RfLHECSlpGjXeOsUUqqbRlUmm4ezoHmS3jiqBlE8NPE\r
122 /t7KIcAG0kx2hqq2eOaKOpCVwwE+jgH5zZPLMheEPzK/PiCK7FukmO9/7Ghky9GF\r
123 yHGNfCXb8t1gk3Hz25vX\r
124 =FH8l\r
125 -----END PGP SIGNATURE-----\r
126 --=-=-=--\r