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 DDEE5431FC3 for ; Sun, 26 Feb 2012 03:22:16 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 KZ0Gje9KPFUP for ; Sun, 26 Feb 2012 03:22:15 -0800 (PST) Received: from mail-ww0-f45.google.com (mail-ww0-f45.google.com [74.125.82.45]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2DBD6431FBD for ; Sun, 26 Feb 2012 03:22:15 -0800 (PST) Received: by wgbdt14 with SMTP id dt14so73678wgb.2 for ; Sun, 26 Feb 2012 03:22:12 -0800 (PST) Received-SPF: pass (google.com: domain of patricktotzke@googlemail.com designates 10.181.12.106 as permitted sender) client-ip=10.181.12.106; Authentication-Results: mr.google.com; spf=pass (google.com: domain of patricktotzke@googlemail.com designates 10.181.12.106 as permitted sender) smtp.mail=patricktotzke@googlemail.com; dkim=pass header.i=patricktotzke@googlemail.com Received: from mr.google.com ([10.181.12.106]) by 10.181.12.106 with SMTP id ep10mr9940226wid.8.1330255332645 (num_hops = 1); Sun, 26 Feb 2012 03:22:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:content-transfer-encoding:from:user-agent :to:references:in-reply-to:message-id:subject:date; bh=6yBHCcEs10uCnZ7h4SDr8Y9eMAQqTlBeeSfhzWyHgSs=; b=CTeSVb3rEUCj/Pg4BGZ5GfWAT51MIaeR1687WK2dP+AiwG7mSHXxTHoYalKX7lU3ye NDl7TPMdsvJCU45tgJo4TSWCqG77FFDPDy4a+7yCsEoas5/Sp0wgsb5Z9smFzMFSdP13 SmCKUgJPJLiy4tTXQhVCrHQcyKg6l71VMtkhM= Received: by 10.181.12.106 with SMTP id ep10mr7870558wid.8.1330255332569; Sun, 26 Feb 2012 03:22:12 -0800 (PST) Received: from localhost (cpc1-sgyl2-0-0-cust548.18-2.cable.virginmedia.com. [82.41.10.37]) by mx.google.com with ESMTPS id gp8sm14843093wib.5.2012.02.26.03.22.11 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 26 Feb 2012 03:22:11 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Patrick Totzke User-Agent: alot/$VERSION To: Daniel , notmuch@notmuchmail.org References: In-Reply-To: Message-ID: <20120226112210.5422.8471@brick.lan> Subject: Re: Replacing my name/email with "me" (or similar) in author lists Date: Sun, 26 Feb 2012 11:22:10 +0000 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: Sun, 26 Feb 2012 11:22:17 -0000 Quoting Daniel (2012-02-25 16:34:15) >From what I understand, at least the Python bindings deliver primarily aut= hor >names (not addresses), To clarify, `notmuch.Thread.get_authors` returns a comma separated list of = the = realname parts of all From-headers that occur in messages of this thread. > so it would seem more appropriate that this be done in the backend. I agree. I personally think this is a nice feature to have in all user interfaces to notmuch and therefore it makes sense to implement it once in the lib. Also because ~/.notmuch-config already contains a list of my ad= dresses and therefore should have all information needed. Implementing this feature for alot in python is easily doable, by construct= ing the authors list from the messages From headers directly, comparing the address part with all known own addresses. We will do so if the response here is all too negative or nobody is brave e= nough to step forward and touch the lib in this respect. If I'm not mistaken, the lib extracts the authors name from the From-header of a message, which is indexed. Somewhere around line 248 in thread.cc, this string is added to a list of names. Cheers, /p