Re: Replacing my name/email with "me" (or similar) in author lists
authorPatrick Totzke <patricktotzke@googlemail.com>
Sun, 26 Feb 2012 11:22:10 +0000 (11:22 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:00 +0000 (09:45 -0800)
5d/a66c8ed06cf76ff0811a81f683c8dbc4751c2b [new file with mode: 0644]

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