Re: [PATCH 0/4] Allow specifying alternate names for addresses in other_email
[notmuch-archives.git] / 34 / 567d6917b1c638b78593e33521e8dd4d73372a
1 Return-Path: <mpn@google.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 0E8FD431FBF\r
6         for <notmuch@notmuchmail.org>; Mon,  1 Oct 2012 08:56:36 -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.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7]\r
13         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 2iK+LPjDVKdo for <notmuch@notmuchmail.org>;\r
17         Mon,  1 Oct 2012 08:56:35 -0700 (PDT)\r
18 Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
19         [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id E5D81431FAE\r
22         for <notmuch@notmuchmail.org>; Mon,  1 Oct 2012 08:56:34 -0700 (PDT)\r
23 Received: by eabm6 with SMTP id m6so2264671eab.26\r
24         for <notmuch@notmuchmail.org>; Mon, 01 Oct 2012 08:56:33 -0700 (PDT)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\r
26  s=20120113;    h=sender:from:to:cc:subject:in-reply-to:organization:references\r
27         :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version\r
28         :content-type; bh=RkGAU9mEF5COrGdV5cYh76GXtuUdDf0pxoNA8B8cgGs=;\r
29         b=F/wh2KyGmkIJHIMbFw2NnezebXKvLSTnuWnGkUOmYBtln99/ki3/CpbpPf/aMlImpp\r
30         E7tmc9Pu2FqSfRQ/8iCzee6EiOce+FDPXDux62Roi3jsMEofN1FlPcUqFzXBvngQsI87\r
31         sGq8hPll+x/tLeqfmf6NcnDq4p8DGCw6/rL56wMw0o4mWkhoUg476jBkXVHP7ATrAogL\r
32         s0ud1/ZpxVG9ZPL1hp73/cG3tFBRYWfmBA0APX3AwU4INnQ3yyBx0VGOz0D8g7IfoQSH\r
33         QlqWMQkoUOQYmSC81mgRBNt0GSOHQs5bGi6vLhdmN7AsoOe46AnulLoVhNsqLQ4kZImZ    NLSg==\r
34 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
35         d=google.com; s=20120113;\r
36         h=sender:from:to:cc:subject:in-reply-to:organization:references\r
37         :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version\r
38         :content-type:x-gm-message-state;\r
39         bh=RkGAU9mEF5COrGdV5cYh76GXtuUdDf0pxoNA8B8cgGs=;\r
40         b=LpJj4IoHJXWjaAlHHB/3iiwdUiI7l2zF6Ecuk5r+j0OMZWUmOO6iOEwJIPofLgFWYF\r
41         Suhs+7RgXpxQvZ/pqsE7hHpLLHRxpytogFQRnGdkxhH5VPJwPwPyYeyGyySfZcljJMz5\r
42         bsTpsykl6wTiLNe2F9XzquKe2RdAkiRwZY/afDQaikEuyPUDQi3VCE258HlIZZUdprAI\r
43         Z3OId1UblWbfvyj9EaeSgOmN2WGAJzOtpk4pi4AfQrVTypT+66MS7XY7/HGT0XDQbMJa\r
44         M2lkMDekaJ3d8mCqDuhesRjm4Q8nf+DGGGG221U6lGNEatMNbek8E9tzR/udEBOIDElc\r
45         uJXw==\r
46 Received: by 10.14.203.69 with SMTP id e45mr2842759eeo.38.1349106993600;\r
47         Mon, 01 Oct 2012 08:56:33 -0700 (PDT)\r
48 Received: by 10.14.203.69 with SMTP id e45mr2842744eeo.38.1349106993415;\r
49         Mon, 01 Oct 2012 08:56:33 -0700 (PDT)\r
50 Received: from mpn-glaptop (77-253-106-92.adsl.inetia.pl. [77.253.106.92])\r
51         by mx.google.com with ESMTPS id m42sm48950260eep.16.2012.10.01.08.56.31\r
52         (version=TLSv1/SSLv3 cipher=OTHER);\r
53         Mon, 01 Oct 2012 08:56:32 -0700 (PDT)\r
54 Sender: Michal Nazarewicz <mpn@google.com>\r
55 From: Michal Nazarewicz <mina86@mina86.com>\r
56 To: David Bremner <bremner@debian.org>, 687390@bugs.debian.org\r
57 Subject: Re: solution to gnus-alias problems?\r
58 In-Reply-To: <87pq53xb3l.fsf@zancas.localnet>\r
59 Organization: http://mina86.com/\r
60 References: <87pq53xb3l.fsf@zancas.localnet>\r
61 User-Agent: Notmuch/0.14+22~g8bdc16b (http://notmuchmail.org) Emacs/24.2.50.1\r
62         (x86_64-unknown-linux-gnu)\r
63 X-Face: PbkBB1w#)bOqd`iCe"Ds{e+!C7`pkC9a|f)Qo^BMQvy\q5x3?vDQJeN(DS?|-^$uMti[3D*#^_Ts"pU$jBQLq~Ud6iNwAw_r_o_4]|JO?]}P_}Nc&"p#D(ZgUb4uCNPe7~a[DbPG0T~!&c.y$Ur,=N4RT>]dNpd;        KFrfMCylc}gc??'U2j,!8%xdD\r
64 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWbfGlUPDDHgE57V0jUupKjgIObY0PLrom9mH4dFRK4gmjPs41MxjOgAAACQElEQVQ4jW3TMWvbQBQHcBk1xE6WyALX1069oZBMlq+ouUwpEQQ6uRjttkWP4CmBgGM0BQLBdPFZYPsyFUo6uEtKDQ7oy/U96XR2Ux8ehH/89Z6enqxBcS7Lg81jmSuujrfCZcLI/TYYvbGj+jbgFpHJ/bqQAUISj8iLyu4LuFHJTosxsucO4jSDNE0Hq3hwK/ceQ5sx97b8LcUDsILfk+ovHkOIsMbBfg43VuQ5Ln9YAGCkUdKJoXR9EclFBhixy3EGVz1K6eEkhxCAkeMMnqoAhAKwhoUJkDrCqvbecaYINlFKSRS1i12VKH1XpUd4qxL876EkMcDvHj3s5RBajHHMlA5iK32e0C7VgG0RlzFPvoYHZLRmAC0BmNcBruhkE0KsMsbEc62ZwUJDxWUdMsMhVqovoT96i/DnX/ASvz/6hbCabELLk/6FF/8PNpPCGqcZTGFcBhhAaZZDbQPaAB3+KrWWy2XgbYDNIinkdWAFcCpraDE/knwe5DBqGmgzESl1p2E4MWAz0VUPgYYzmfWb9yS4vCvgsxJriNTHoIBz5YteBvg+VGISQWUqhMiByPIPpygeDBE6elD973xWwKkEiHZAHKjhuPsFnBuArrzxtakRcISv+XMIPl4aGBUJm8Emk7qBYU8IlgNEIpiJhk/No24jHwkKTFHDWfPniR4iw5vJaw2nzSjfq2zffcE/GDjRC2dn0J0XwPAbDL84TvaFCJEU4Oml9pRyEUhR3Cl2t01AoEjRbs0sYugp14/4X5n4pU4EHHnMAAAAAElFTkSuQmCC\r
65 X-PGP: 50751FF4\r
66 X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4\r
67 Date: Mon, 01 Oct 2012 17:56:29 +0200\r
68 Message-ID: <xa1ttxuedw42.fsf@mina86.com>\r
69 MIME-Version: 1.0\r
70 Content-Type: multipart/mixed; boundary="=-=-="\r
71 X-Gm-Message-State: ALoCoQkeyevsY0Zl4F+1srfQ6MBMZvUQ2OOlxX3KEvkCU+gr/pf3Cq/mgoVdBm2DMEKncak1DEkKusgXmJsaEEovhygTdpTjKmqO9zApBAixl8SrJOIAecfBjs12Pku2uJr3j63bToalFu8xF7pnPjev+1tg+7S5EOITUBbi04Mc1gs2Ixb4wM7AvJR+BiOc9bIzOynQeicSyPkWz5KXNsRipr5orJirxA==\r
72 Cc: notmuch@notmuchmail.org\r
73 X-BeenThere: notmuch@notmuchmail.org\r
74 X-Mailman-Version: 2.1.13\r
75 Precedence: list\r
76 List-Id: "Use and development of the notmuch mail system."\r
77         <notmuch.notmuchmail.org>\r
78 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
79         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
80 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
81 List-Post: <mailto:notmuch@notmuchmail.org>\r
82 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
83 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
84         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
85 X-List-Received-Date: Mon, 01 Oct 2012 15:56:36 -0000\r
86 \r
87 --=-=-=\r
88 Content-Type: text/plain; charset=utf-8\r
89 Content-Transfer-Encoding: quoted-printable\r
90 \r
91 On Mon, Oct 01 2012, David Bremner <bremner@debian.org> wrote:\r
92 > Geoff writes:\r
93 >\r
94 >    Hi David,\r
95 >\r
96 >    I've found the source of the problem I was having. It seems to be due\r
97 >    to some interference with the notmuch-mua-reply function and\r
98 >    gnus-alias. In particular, there was a problem with the part of\r
99 >    notmuch-mua-reply that inserted the newly setup message contents.\r
100 >\r
101 >    Towards the end of the notmuch-mua-reply function, there is the follow=\r
102 ing code:\r
103 >\r
104 >        ;; insert the message body - but put it in front of the signature\r
105 >        ;; if one is present\r
106 >        (goto-char (point-max))\r
107 >    *    (if (re-search-backward message-signature-separator nil t)\r
108 >    *    (forward-line -1)\r
109 >        (goto-char (point-max)))\r
110 >        (insert body)\r
111 >        (push-mark))\r
112 >      (set-buffer-modified-p nil)\r
113 >\r
114 >    The problem is with the two lines I've marked with a *. Suppose the\r
115 >    main message reply buffer already contains a signature and looks like\r
116 >    this\r
117 >\r
118 >    [Headers]\r
119 >    --text follows this line\r
120 >    --\r
121 >    [Signature text]\r
122 >\r
123 >    The above goes goes to the end of buffer with (point-max), then\r
124 >    searches back to the beginning of the signature separator, which is\r
125 >    fine. But then it moves one line up to the beginning of '--text\r
126 >    follows this line--" and then inserts the newly created message body,\r
127 >    which means that it inserts it before the '--text follows this\r
128 >    line--'.\r
129 >\r
130 >    I've solved the problem (I think) by adjust the above code as follows:\r
131 >\r
132 >        (if (re-search-backward message-signature-separator nil t)\r
133 >            (progn\r
134 >              (beginning-of-line)\r
135 \r
136 Call to `beginning-of-line' seems redundant, `re-search-backward' should\r
137 move point to the beginning of the match which starts at the beginning\r
138 of a line.  Or am I missing something?\r
139 \r
140 >              (newline))\r
141 >        (goto-char (point-max)))\r
142 \r
143 --=20\r
144 Best regards,                                         _     _\r
145 .o. | Liege of Serenely Enlightened Majesty of      o' \,=3D./ `o\r
146 ..o | Computer Science,  Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz   =\r
147  (o o)\r
148 ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--\r
149 --=-=-=\r
150 Content-Type: multipart/signed; boundary="==-=-=";\r
151         micalg=pgp-sha1; protocol="application/pgp-signature"\r
152 \r
153 --==-=-=\r
154 Content-Type: text/plain\r
155 \r
156 \r
157 --==-=-=\r
158 Content-Type: application/pgp-signature\r
159 \r
160 -----BEGIN PGP SIGNATURE-----\r
161 Version: GnuPG v1.4.10 (GNU/Linux)\r
162 \r
163 iQIcBAEBAgAGBQJQab0tAAoJECBgQBJQdR/0Xf8QAICRZ2Pb64wc3ODNjOkEE2jJ\r
164 nH0QnqXkaKc0hKw2b9ES3Rn0/Ko4xUSamVYqz0Wc/0sJywKuuPAU1QXONpnahlzY\r
165 c9X4sGmMLV0mmtRZJk8Bsjcmfk/RmDKXDOcQ5iXVBAC3mwX2Mp+9NKPpP6YbFaF7\r
166 O4DS6C68lsi1NrqY0Cy9s7f7dvePYkSXMIad+HY9gLyWld9r0F3a7iICf1Ocq8Jk\r
167 RKyNsYA2QwbDrbGPVCsXFmns1VGOD1We4X4Yx36rrqCHFOSElvwRCc7A8V9KvrP2\r
168 EnL3y0rHX55b+Mclzoq6Z85YcnOKr2ltVdP3/VBdeERVLiQPIbRxps5biRifZuxV\r
169 JG2DadLbvfJb1s1hRPiODXDflh6O58miNvy9GtCB7GBHzBBSFtlSbt7234adAwV6\r
170 n2l0zsJNUQ6XiRN0UxRky0BlsJzim4AFAWrQqYRmjI18ZjjJxb2blqrkEafSV6WJ\r
171 bESFDMW3g3ixKbN4OSjoYBDkqJQ3ywYciH83q+WZZbyxSo+I5kGc4OJvlIl8wXSs\r
172 FS5AYZEh32RG+9IAZVee7dJY3lTjEtOeYuvpiyPWT2xSZR4786A0XGbI8Qq3VhvE\r
173 tBI3ywDcEwmYxyXcI1+J/4ILS86+rJEOYmf18JSm0/cpPsBVGkXInwM6BPNuGcFq\r
174 LO3OlNTKgVDHe9v7EN/g\r
175 =R1O1\r
176 -----END PGP SIGNATURE-----\r
177 --==-=-=--\r
178 \r
179 --=-=-=--\r