Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 14 / 24a9622602402bd66b92d4f6a8465f4afa6496
1 Return-Path: <schnouki@schnouki.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 296B8431FD0\r
6         for <notmuch@notmuchmail.org>; Mon, 16 May 2011 03:02:56 -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.09\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         T_MIME_NO_TEXT=0.01] 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 MG9zdlQL5sBv for <notmuch@notmuchmail.org>;\r
17         Mon, 16 May 2011 03:02:53 -0700 (PDT)\r
18 X-Greylist: delayed 598 seconds by postgrey-1.32 at olra;\r
19         Mon, 16 May 2011 03:02:53 PDT\r
20 Received: from ks3536.kimsufi.com (schnouki.net [87.98.217.222])\r
21         by olra.theworths.org (Postfix) with ESMTP id 6F618431FB6\r
22         for <notmuch@notmuchmail.org>; Mon, 16 May 2011 03:02:53 -0700 (PDT)\r
23 Received: from thor.loria.fr (unknown\r
24         [IPv6:2001:660:4501:1:dad3:85ff:fe94:599c])\r
25         by ks3536.kimsufi.com (Postfix) with ESMTPSA id 8D7E86A06A9\r
26         for <notmuch@notmuchmail.org>; Mon, 16 May 2011 11:52:54 +0200 (CEST)\r
27 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=schnouki.net;\r
28         s=key-schnouki; t=1305539574;\r
29         bh=R7R/N0mk95+qxV7f6sarD+9vzekUn/MaHE/vn+NM0W4=;\r
30         h=From:To:Subject:In-Reply-To:References:Date:Message-ID:\r
31         MIME-Version:Content-Type;\r
32         b=HnwUNcPUg0ntpDtRM9bq2F6wJmErLSdo2UOWdL+l441uHWd2WbzZMCcgnH5We7TSe\r
33         cKvRo1aAYMXYtpISfnzc7hpvXRfHIUoa8Ifch3/41KaHspZ8rJ3HkKb00TIWnjtTVM\r
34         aCCXb2LZm0FYoNAIaIJ4fD7gbgsT3qly0QbGNtAQ=\r
35 From: Thomas Jost <schnouki@schnouki.net>\r
36 To: notmuch <notmuch@notmuchmail.org>\r
37 Subject: Re: Multiple sender identities (composing)\r
38 In-Reply-To: <87vcxb0za4.fsf@flamingspork.com>\r
39 References: <87vcxb0za4.fsf@flamingspork.com>\r
40 User-Agent: Notmuch/0.5-156-g539f505 (http://notmuchmail.org) Emacs/23.3.1\r
41         (x86_64-unknown-linux-gnu)\r
42 Date: Mon, 16 May 2011 11:52:43 +0200\r
43 Message-ID: <8762pb55w4.fsf@thor.loria.fr>\r
44 MIME-Version: 1.0\r
45 Content-Type: multipart/signed; boundary="=-=-=";\r
46         micalg=pgp-sha1; protocol="application/pgp-signature"\r
47 X-BeenThere: notmuch@notmuchmail.org\r
48 X-Mailman-Version: 2.1.13\r
49 Precedence: list\r
50 List-Id: "Use and development of the notmuch mail system."\r
51         <notmuch.notmuchmail.org>\r
52 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
54 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
55 List-Post: <mailto:notmuch@notmuchmail.org>\r
56 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
57 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
58         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
59 X-List-Received-Date: Mon, 16 May 2011 10:02:56 -0000\r
60 \r
61 --=-=-=\r
62 Content-Transfer-Encoding: quoted-printable\r
63 \r
64 On Mon, 16 May 2011 19:29:07 +1000, Stewart Smith <stewart@flamingspork.com=\r
65 > wrote:\r
66 > Thought I'd share this bit of my .emacs snippet that may be useful to go\r
67 > on the emacs tips page.\r
68 >=20\r
69 > This does the following:\r
70 > - sets up a list of possible identities to have mail From\r
71 > - on composing mail, it prompts you for who you want to send mail from\r
72 > - pressing enter will give you the default (first in the list)\r
73 > - otherwise you have tab completion\r
74 \r
75 And here's the same for choosing the identity when forwarding a mail:\r
76 \r
77 ;; Choose the identity used to forward a mail\r
78 (defun schnouki/notmuch-mua-forward-message ()\r
79   (interactive)\r
80   (let* ((from (ido-completing-read "Sender identity: " schnouki/mua-identi=\r
81 ties\r
82                                     nil nil nil nil (car schnouki/mua-identities)))\r
83          (address-components (mail-extract-address-components from))\r
84          (user-full-name (car address-components))\r
85          (user-mail-address (cadr address-components)))\r
86     (notmuch-mua-forward-message)))\r
87 \r
88 (people who don't use or like ido may want to replace\r
89 ido-completing-read with completing-read)\r
90 \r
91 If anyone is interested, I have some more useful snippets available on\r
92 https://github.com/Schnouki/dotfiles/blob/master/emacs/init-50-mail.el#L232:\r
93 =2D function to choose a signature according to the From header\r
94 =2D function to choose the sender identity according to the To header\r
95   (useful for replying to work e-mails using your work address, or for\r
96   replying to a ML with a subscribed address that won't be rejected)\r
97 =2D function to change the SMTP server that will be used for sending the\r
98   mail according to the From header\r
99 \r
100 It seriously lacks documentation so don't hesitate to ask if you have\r
101 any problem with it :)\r
102 \r
103 Regards,\r
104 \r
105 =2D-=20\r
106 Thomas/Schnouki\r
107 \r
108 --=-=-=\r
109 Content-Type: application/pgp-signature\r
110 \r
111 -----BEGIN PGP SIGNATURE-----\r
112 Version: GnuPG v1.4.11 (GNU/Linux)\r
113 \r
114 iQEcBAEBAgAGBQJN0PPrAAoJEMPdciX+bh5Iu/0H/2bhnIqrieBzWahh4PhEo/rP\r
115 jBsUEofNMa8pTZKh018jZtGUbBhMdUCNNXd2uKhW0yEmF7Gnry3frjUNpF9IPDTN\r
116 Keh+L29YotbccQpgTy4cflRiuGjfFKAn8bH9rU1ddO0POMAXBbVb57PVJclUsZth\r
117 3noYrAW+pj0cMOS3/urL270Stxnlt2+8/viZ3mAX2t4SuCGrdztN2La1hO75dXjm\r
118 1D6FlNBMEWKb/RhTI96EDL7F7EsG01FjJuUNmLi6go/WGYfitXYPukaEQWHZLOme\r
119 LcwigQc6aXhpAmMQgVThhhXsf/XtkBFGB8rKiSc5Z+ewMx3kHKEY2X3yiM1oI2I=\r
120 =Wy7a\r
121 -----END PGP SIGNATURE-----\r
122 --=-=-=--\r