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 2B7AB429E33 for ; Fri, 6 Jan 2012 04:35:02 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled 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 Dsq1AVlf3LUR for ; Fri, 6 Jan 2012 04:35:01 -0800 (PST) Received: from mail-ee0-f53.google.com (mail-ee0-f53.google.com [74.125.83.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 6B256429E3E for ; Fri, 6 Jan 2012 04:35:01 -0800 (PST) Received: by eekd41 with SMTP id d41so1235800eek.26 for ; Fri, 06 Jan 2012 04:35:00 -0800 (PST) Received: by 10.14.123.79 with SMTP id u55mr2234992eeh.120.1325853299948; Fri, 06 Jan 2012 04:34:59 -0800 (PST) Received: from localhost (dsl-hkibrasgw4-fe5cdc00-23.dhcp.inet.fi. [80.220.92.23]) by mx.google.com with ESMTPS id 13sm247125532eeu.1.2012.01.06.04.34.57 (version=SSLv3 cipher=OTHER); Fri, 06 Jan 2012 04:34:58 -0800 (PST) From: Jani Nikula To: Mark Walters , notmuch@notmuchmail.org, david@tethera.net Subject: Re: [PATCH 0/4] notmuch reply bugfix & reply to sender only In-Reply-To: <87hb0924hx.fsf@qmul.ac.uk> References: <87hb0924hx.fsf@qmul.ac.uk> User-Agent: Notmuch/0.10.2+182~g93862a2 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) Date: Fri, 06 Jan 2012 14:34:55 +0200 Message-ID: <87fwft80wg.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Fri, 06 Jan 2012 12:35:02 -0000 Hi Mark - On Thu, 05 Jan 2012 22:01:30 +0000, Mark Walters wrote: > > Bikeshedding topic #1: How about making replying to just the sender the default > > in "notmuch reply", and having --reply-all option (instead of --no-reply-all)? > > In id:"87pqn5cg4g.fsf@yoom.home.cworth.org" cworth suggested using > --reply-to=sender vs. --reply-to=all (keeping the latter the default). That is a sound proposal too, leaving room for extension if such need might arise. > However, one more significant choice is what to do on reply-to-sender to > an email from the user himself. My patch used the following logic: look > at the reply-to, from , to, cc lines until you find a non-user address > and use that line for the reply. My recollection is that this is roughly > what mutt does. That is a very good point, and one that my patch fails to address. > (*) I have a version of that patch-set which applies to master if that > would be useful to anyone, and I recently started writing tests in > preparation for re-submitting. Ah, it's old, no wonder I didn't know about it. Looking at the v2 of it that I found gmane, it looks like the approach is roughly the same. I think me passing the 'add' parameter makes things a bit more obvious and explicit, while your use of "g_mime_message_get_all_recipients (reply) == NULL" might be more robust (including handling reply to user's own message). Switching to new style argument parsing is probably something David will insist on, and that's a ready, independent patch in my set. On emacs side I think my patch is just slightly cleaner, but no big difference. How about you post what you have now as a reply to this thread, and let others be the judge? I really don't mind whether it's you or I who finishes this as long as we get the feature, and preferrably combining the best of what we both have. I'm also open to splitting this between you and me; just let me know what you think. BR, Jani.