Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 0e / 86a85c850c299d3d66ddc84477448c8f558dbc
1 Return-Path: <mueen@nawaz.org>\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 arlo.cworth.org (Postfix) with ESMTP id A35746DE172B\r
6  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 22:06:45 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.701\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.701 tagged_above=-999 required=5\r
12  tests=[RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001]\r
13  autolearn=disabled\r
14 Received: from arlo.cworth.org ([127.0.0.1])\r
15  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
16  with ESMTP id i--2aH2ZhcBv for <notmuch@notmuchmail.org>;\r
17  Sat, 18 Jul 2015 22:06:43 -0700 (PDT)\r
18 X-Greylist: delayed 403 seconds by postgrey-1.35 at arlo;\r
19  Sat, 18 Jul 2015 22:06:43 PDT\r
20 Received: from filter02.dlls.pa.frontiernet.net\r
21  (filter02.dlls.pa.frontiernet.net [199.224.80.229])\r
22  by arlo.cworth.org (Postfix) with ESMTP id 991836DE13D2\r
23  for <notmuch@notmuchmail.org>; Sat, 18 Jul 2015 22:06:43 -0700 (PDT)\r
24 Received: from localhost (localhost [127.0.0.1])\r
25  by filter02.dlls.pa.frontiernet.net (Postfix) with ESMTP id 4DAD042C0FF\r
26  for <notmuch@notmuchmail.org>; Sun, 19 Jul 2015 04:59:58 +0000 (UTC)\r
27 Received: from relay04.dlls.pa.frontiernet.net ([199.224.80.247]) by localhost\r
28  (filter02.dlls.pa.frontiernet.net [199.224.80.229]) (amavisd-new, port 10024)\r
29  with LMTP id ArOfKhtECiyl for <notmuch@notmuchmail.org>; Sun, 19 Jul 2015\r
30  04:59:46 +0000 (UTC)\r
31 X-Originating-IP: [50.43.37.138]\r
32 X-Previous-IP: 50.43.37.138\r
33 Received: from beetle_b (static-50-43-37-138.bvtn.or.frontiernet.net\r
34  [50.43.37.138])\r
35  by relay04.dlls.pa.frontiernet.net (Postfix) with ESMTPA id A16E52F8098\r
36  for <notmuch@notmuchmail.org>; Sun, 19 Jul 2015 04:59:46 +0000 (UTC)\r
37 Received: by beetle_b (Postfix, from userid 1000)\r
38  id 76A508BC90; Sat, 18 Jul 2015 21:59:45 -0700 (PDT)\r
39 From: mailinglists@nawaz.org\r
40 To: notmuch@notmuchmail.org\r
41 Subject: Modify message after send...?\r
42 User-Agent: Notmuch/0.19 (http://notmuchmail.org) Emacs/24.4.1\r
43  (x86_64-pc-linux-gnu)\r
44 nm-tags: \r
45 Date: Sat, 18 Jul 2015 21:59:45 -0700\r
46 Message-ID: <878uacpwse.fsf@fester.com>\r
47 MIME-Version: 1.0\r
48 Content-Type: text/plain\r
49 X-BeenThere: notmuch@notmuchmail.org\r
50 X-Mailman-Version: 2.1.18\r
51 Precedence: list\r
52 List-Id: "Use and development of the notmuch mail system."\r
53  <notmuch.notmuchmail.org>\r
54 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
55  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
56 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
57 List-Post: <mailto:notmuch@notmuchmail.org>\r
58 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
59 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
60  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
61 X-List-Received-Date: Sun, 19 Jul 2015 05:06:45 -0000\r
62 \r
63 Hi,\r
64 \r
65 I use notmuch via Emacs.\r
66 \r
67 Here's what I want:\r
68 \r
69 When I hit C-c C-c to send a message, I'd like it to be passed to a\r
70 script (likely a Python one, although I may consider an Elisp function\r
71 if an external script is not possible) for modification of headers,\r
72 before it is sent to the MTA (Postfix in my case). A bonus would be to\r
73 have the modified message stored in the FCC location, instead of the\r
74 original one.\r
75 \r
76 Is this possible? An alternative may be to modify the message /before/\r
77 it goes to message-send-and-exit. I'm inexperienced in Elisp - would\r
78 this be via what's called "advising"?\r
79 \r
80 BTW, all I really want to do is modify the From: field based on the\r
81 recipients (for every email, with no default From). I'll welcome\r
82 suggestions for existing ways to do that. I Googled a little, but didn't\r
83 find a clear good solution. Furthermore, I expect over time the rules by\r
84 which I pick the From: field will get more complex than my knowledge of\r
85 Elisp.\r
86 \r
87 Thanks.\r
88 \r
89 -- \r
90 My sister opened a computer store in Hawaii. She sells C shells down by\r
91 the seashore.\r
92 \r
93 \r
94                     /\  /\               /\  /\r
95                    /  \/  \ u e e n     /  \/  a w a z\r
96                        >>>>>>mueen@nawaz.org<<<<<<\r
97                                    anl\r
98 \r
99  \r