Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 9d / b7cdc4f6aa378fe0cd7d04c2825f516a0709bf
1 Return-Path: <peterjohnhartman@gmail.com>\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 2DB05431FD0\r
6         for <notmuch@notmuchmail.org>; Tue, 25 Jan 2011 21:00:58 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.799\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id e20UA6hqrNUj for <notmuch@notmuchmail.org>;\r
17         Tue, 25 Jan 2011 21:00:53 -0800 (PST)\r
18 Received: from mail-vw0-f53.google.com (mail-vw0-f53.google.com\r
19         [209.85.212.53]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id 77F30431FB6\r
22         for <notmuch@notmuchmail.org>; Tue, 25 Jan 2011 21:00:53 -0800 (PST)\r
23 Received: by vws8 with SMTP id 8so291331vws.26\r
24         for <notmuch@notmuchmail.org>; Tue, 25 Jan 2011 21:00:52 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:date:from:to:subject:message-id:mime-version\r
27         :content-type:content-disposition:user-agent;\r
28         bh=rhzlzWYaQ53sHc+tHWKGIyQhVMfQH+GFOC+WeFs2IsE=;\r
29         b=s5q/u8dHBDY+9p7h3T9eIed41pBxNMdxY2n3IkRiPjYU9J+7ttNqDFG56iHV1VaEfo\r
30         J1z4LzR+em32ps98BCSSSwWHY0eCo1sFT7xtUv+DSOPvf0CSRrDwrk47IzXnpThin2VR\r
31         UbK3+HZZ/NehmfaT0uAeQXdWpsm9r/WTMMPE4=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=date:from:to:subject:message-id:mime-version:content-type\r
34         :content-disposition:user-agent;\r
35         b=ddCno3Z4nnlOuCy9x0N0ZDEmgfVQ5HyYCpJHxTXRmVaYQzJnegnXYwjpbWXsG3ZNQx\r
36         20cvkkocCdhi4Dbat/8R0hdiUMJHMH0fB1aW/eOT8iOJrqulxmI8WglObTcoKRiyooMt\r
37         hH1IGwsFvifhT0vubdXCVHF4GT7oneEJ1vMtQ=\r
38 Received: by 10.220.200.135 with SMTP id ew7mr1921737vcb.37.1296018051003;\r
39         Tue, 25 Jan 2011 21:00:51 -0800 (PST)\r
40 Received: from localhost (dyn-160-39-49-31.dyn.columbia.edu [160.39.49.31])\r
41         by mx.google.com with ESMTPS id e18sm9210232vbm.15.2011.01.25.21.00.49\r
42         (version=SSLv3 cipher=RC4-MD5); Tue, 25 Jan 2011 21:00:49 -0800 (PST)\r
43 Date: Wed, 26 Jan 2011 00:01:19 -0500\r
44 From: Peter John Hartman <peterjohnhartman@gmail.com>\r
45 To: notmuch@notmuchmail.org\r
46 Subject: fix notmuch.vim NM_compuse_get_user_email() (Patch)\r
47 Message-ID: <20110126050119.GA11761@triltoucheee>\r
48 MIME-Version: 1.0\r
49 Content-Type: text/plain; charset=us-ascii\r
50 Content-Disposition: inline\r
51 User-Agent: Mutt/1.5.20 (2009-06-14)\r
52 X-BeenThere: notmuch@notmuchmail.org\r
53 X-Mailman-Version: 2.1.13\r
54 Precedence: list\r
55 List-Id: "Use and development of the notmuch mail system."\r
56         <notmuch.notmuchmail.org>\r
57 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
59 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
60 List-Post: <mailto:notmuch@notmuchmail.org>\r
61 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
62 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
64 X-List-Received-Date: Wed, 26 Jan 2011 05:00:58 -0000\r
65 \r
66 Here's a bitty patch to the vim plugin; it now calculates the primary email\r
67 of the user based on a call to notmuch config.  There's still a lot of work\r
68 that needs to get done on notmuch.vim, e.g., the ability to have multiple\r
69 emails/accounts.\r
70 \r
71 Best, Peter\r
72 \r
73 --- notmuch.vim 2010-11-18 17:26:14.000000000 -0500\r
74 +++ notmuch.vim.mine    2011-01-25 23:57:50.000000000 -0500\r
75 @@ -18,7 +18,8 @@\r
76  " along with Notmuch.  If not, see <http://www.gnu.org/licenses/>.\r
77  "\r
78  " Authors: Bart Trojanowski <bart@jukie.net>\r
79 -\r
80 +" Contributors: Peter Hartman <peterjohnhartman@gmail.com>\r
81 +"\r
82  " --- configuration defaults {{{1\r
83  \r
84  let s:notmuch_defaults = {\r
85 @@ -1024,11 +1025,9 @@\r
86  " --- --- compose screen helper functions {{{2\r
87  \r
88  function! s:NM_compose_get_user_email()\r
89 -        let name = substitute(system('id -u -n'), '\v(^\s*|\s*$|\n)', '', 'g')\r
90 -        let fqdn = substitute(system('hostname -f'), '\v(^\s*|\s*$|\n)', '', 'g')\r
91 -\r
92 -        " TODO: do this properly\r
93 -        return name . '@' . fqdn\r
94 +        " TODO: do this properly (still), i.e., allow for multiple email accounts\r
95 +        let email = substitute(system('notmuch config get user.primary_email'), '\v(^\s*|\s*$|\n)', '', 'g')\r
96 +       return email\r
97  endfunction\r
98  \r
99  function! s:NM_compose_find_line_match(start, pattern, failure)\r
100 \r
101 -- \r
102 sic dicit magister P\r
103 PhD Candidate\r
104 Collaborative Programme in Ancient and Medieval Philosophy\r
105 University of Toronto\r
106 http://individual.utoronto.ca/peterjh\r