Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 22 / a4d2faa8d0270cb692f806143c9f74aa02c110
1 Return-Path: <dme@fenchurch.hh.sledj.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 595B7431FB6\r
6         for <notmuch@notmuchmail.org>; Fri,  5 Sep 2014 05:59:37 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.379\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.379 tagged_above=-999 required=5\r
12         tests=[NO_DNS_FOR_FROM=0.379] autolearn=disabled\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 KqDRZpFMJK3t for <notmuch@notmuchmail.org>;\r
16         Fri,  5 Sep 2014 05:59:32 -0700 (PDT)\r
17 Received: from fenchurch.hh.sledj.net (disaster-area.hh.sledj.net\r
18         [81.149.164.25])\r
19         by olra.theworths.org (Postfix) with ESMTP id 836FA431FAF\r
20         for <notmuch@notmuchmail.org>; Fri,  5 Sep 2014 05:59:32 -0700 (PDT)\r
21 Received: by fenchurch.hh.sledj.net (Postfix, from userid 501)\r
22         id DDB011316558; Fri,  5 Sep 2014 13:59:29 +0100 (BST)\r
23 From: David Edmondson <dme@dme.org>\r
24 To: notmuch@notmuchmail.org\r
25 Subject: [PATCH v1 2/3] emacs: Add `notmuch-user-all-email'.\r
26 Date: Fri,  5 Sep 2014 13:59:28 +0100\r
27 Message-Id: <1409921969-65129-3-git-send-email-dme@dme.org>\r
28 X-Mailer: git-send-email 1.8.5.2 (Apple Git-48)\r
29 In-Reply-To: <1409921969-65129-1-git-send-email-dme@dme.org>\r
30 References: <1409921969-65129-1-git-send-email-dme@dme.org>\r
31 X-BeenThere: notmuch@notmuchmail.org\r
32 X-Mailman-Version: 2.1.13\r
33 Precedence: list\r
34 List-Id: "Use and development of the notmuch mail system."\r
35         <notmuch.notmuchmail.org>\r
36 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
37         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
38 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
39 List-Post: <mailto:notmuch@notmuchmail.org>\r
40 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
41 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
43 X-List-Received-Date: Fri, 05 Sep 2014 12:59:37 -0000\r
44 \r
45 `notmuch-user-all-email' returns a list of the user's primary and\r
46 secondary email addresses.\r
47 ---\r
48  emacs/notmuch-lib.el | 4 ++++\r
49  1 file changed, 4 insertions(+)\r
50 \r
51 diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
52 index 19269e3..685469c 100644\r
53 --- a/emacs/notmuch-lib.el\r
54 +++ b/emacs/notmuch-lib.el\r
55 @@ -228,6 +228,10 @@ on the command line, and then retry your notmuch command")))\r
56    "Return the user.other_email value (as a list) from the notmuch configuration."\r
57    (split-string (notmuch-config-get "user.other_email") "\n" t))\r
58  \r
59 +(defun notmuch-user-all-email ()\r
60 +  "Return all email addresses for the user from the notmuch configuration."\r
61 +  (append (list (notmuch-user-primary-email)) (notmuch-user-other-email)))\r
62 +\r
63  (defun notmuch-poll ()\r
64    "Run \"notmuch new\" or an external script to import mail.\r
65  \r
66 -- \r
67 1.8.5.2 (Apple Git-48)\r
68 \r