Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id B912E4196F0 for ; Wed, 28 Apr 2010 14:33:23 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.19 X-Spam-Level: X-Spam-Status: No, score=-4.19 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hMH1Ovt7K+nf for ; Wed, 28 Apr 2010 14:33:22 -0700 (PDT) Received: from brinza.cc.columbia.edu (brinza.cc.columbia.edu [128.59.29.8]) by olra.theworths.org (Postfix) with ESMTP id CE17B431FC1 for ; Wed, 28 Apr 2010 14:33:22 -0700 (PDT) Received: from servo.finestructure.net (cpe-72-227-128-66.nyc.res.rr.com [72.227.128.66]) (user=jgr2110 author=jrollins@finestructure.net mech=PLAIN bits=0) by brinza.cc.columbia.edu (8.14.3/8.14.3) with ESMTP id o3SLXMUu012333 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 28 Apr 2010 17:33:22 -0400 (EDT) Received: from jrollins by servo.finestructure.net with local (Exim 4.71) (envelope-from ) id 1O7Esj-0000Yf-SL for notmuch@notmuchmail.org; Wed, 28 Apr 2010 17:33:21 -0400 From: Jameson Rollins To: Notmuch Mail list Subject: Re: [PATCH] Remove bcc header from notmuch reply. In-Reply-To: <87r5pcad5v.fsf@servo.finestructure.net> References: <87r5pcad5v.fsf@servo.finestructure.net> User-Agent: Notmuch/0.3-12-g78345c5 (http://notmuchmail.org) Emacs/23.1.1 (i486-pc-linux-gnu) Date: Wed, 28 Apr 2010 17:33:18 -0400 Message-ID: <87d3xjxnxd.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.68 on 128.59.29.8 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2010 21:33:23 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Notmuch reply should not be Bcc'ing the sender by default. This is not the appropriate way to save copies of sent mail (which should probably be handled by an Fcc header) and it doesn't give the user the option to not be bcc'd. This is really something that should be handled by the reader UI. For instance, emacs message-mode can easily be configured to add Bcc's if the user wishes. =2D-- Now that we finally have good built-in fcc support, we can finally get rid of the annoying bcc in notmuch-reply. This is a resubmit of an old patch that has been rebased against the current head of cworth/master. notmuch-reply.c | 9 +-------- 1 files changed, 1 insertions(+), 8 deletions(-) diff --git a/notmuch-reply.c b/notmuch-reply.c index fd1de3b..856d5e9 100644 =2D-- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -267,8 +267,7 @@ add_recipients_from_message (GMimeMessage *reply, } reply_to_map[] =3D { { "reply-to", "from", GMIME_RECIPIENT_TYPE_TO }, { "to", NULL, GMIME_RECIPIENT_TYPE_TO }, =2D { "cc", NULL, GMIME_RECIPIENT_TYPE_CC }, =2D { "bcc", NULL, GMIME_RECIPIENT_TYPE_BCC } + { "cc", NULL, GMIME_RECIPIENT_TYPE_CC } }; const char *from_addr =3D NULL; unsigned int i; @@ -481,9 +480,6 @@ notmuch_reply_format_default(void *ctx, notmuch_config_= t *config, notmuch_query_ g_mime_object_set_header (GMIME_OBJECT (reply), "From", from_addr); =20 =2D g_mime_object_set_header (GMIME_OBJECT (reply), "Bcc", =2D notmuch_config_get_user_primary_email (config)); =2D in_reply_to =3D talloc_asprintf (ctx, "<%s>", notmuch_message_get_message_id (message)); =20 @@ -558,9 +554,6 @@ notmuch_reply_format_headers_only(void *ctx, notmuch_co= nfig_t *config, notmuch_q =20 (void)add_recipients_from_message (reply, config, message); =20 =2D g_mime_object_set_header (GMIME_OBJECT (reply), "Bcc", =2D notmuch_config_get_user_primary_email (config)); =2D reply_headers =3D g_mime_object_to_string (GMIME_OBJECT (reply)); printf ("%s", reply_headers); free (reply_headers); =2D-=20 1.7.0 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBCAAGBQJL2KmeAAoJEO00zqvie6q8V3YP/2DTdhIE8/T9gXgplKVpvVNw G+YthrYTZN0yzLTJiU16zXIIYxsXVpn+Qf1wdDYKck341sWnTxSBY/F6DWzFBB3B Ubq7pRHjUmaz/JmSes6uwSdgb/dLBz+dVmZEPkeg36IFLasMNoEinWjXdfgDT8+C h4qlzj7XCkU6Et6bi+SIztgCa5P89+CEcAAVFalxqt02JmMw5tJNNGacucCdAcFv VbgghjQYaXE4Jw5n8mT+IazZJg/O98prV5kgGJisnKGfTVizaipD/4UJ82fnSlI8 ovdBbaZWFEgrK0+OEGkVlhSn5aj6dTckbKw83Sm/2jBgQqn4gF1CDDS2G+f0kg4X Z/QKm523pAiay2AU9BIUlT2yKO0gKDWtdEPZJzBvUWo8Mml/DviSgL9UbZSNAUK7 ajHLUBRVW60rhNiSPUEyzSppikBMsgtsKrbxuo5FTRLRU9NG1ty0oqXCvqyP/h3Z DoaXWDe6BX/LlzpZ8oDkw5G8LDOkGKeyHYow24nEhYRviUWq3hrMP3p2LJZSXFj3 THx7g3HxlX+BbP8dY65dR08tXBAYY+xoOIYKl6kTY0ngkkKDje1doce686G5ghuw wo//LmOsPuCLYcv953KUoFLzEGhJfAG7reeM/8Qgta3B9BQu6cTb38JKLQygjUTw rc7o6QTIsFTNcQzemAa6 =klOe -----END PGP SIGNATURE----- --=-=-=--