Re: solution to gnus-alias problems?
authorMichal Nazarewicz <mina86@mina86.com>
Mon, 1 Oct 2012 15:56:29 +0000 (17:56 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:49:41 +0000 (09:49 -0800)
34/567d6917b1c638b78593e33521e8dd4d73372a [new file with mode: 0644]

diff --git a/34/567d6917b1c638b78593e33521e8dd4d73372a b/34/567d6917b1c638b78593e33521e8dd4d73372a
new file mode 100644 (file)
index 0000000..ef469f2
--- /dev/null
@@ -0,0 +1,179 @@
+Return-Path: <mpn@google.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 0E8FD431FBF\r
+       for <notmuch@notmuchmail.org>; Mon,  1 Oct 2012 08:56:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id 2iK+LPjDVKdo for <notmuch@notmuchmail.org>;\r
+       Mon,  1 Oct 2012 08:56:35 -0700 (PDT)\r
+Received: from mail-ey0-f181.google.com (mail-ey0-f181.google.com\r
+       [209.85.215.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id E5D81431FAE\r
+       for <notmuch@notmuchmail.org>; Mon,  1 Oct 2012 08:56:34 -0700 (PDT)\r
+Received: by eabm6 with SMTP id m6so2264671eab.26\r
+       for <notmuch@notmuchmail.org>; Mon, 01 Oct 2012 08:56:33 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\r
+ s=20120113;   h=sender:from:to:cc:subject:in-reply-to:organization:references\r
+       :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version\r
+       :content-type; bh=RkGAU9mEF5COrGdV5cYh76GXtuUdDf0pxoNA8B8cgGs=;\r
+       b=F/wh2KyGmkIJHIMbFw2NnezebXKvLSTnuWnGkUOmYBtln99/ki3/CpbpPf/aMlImpp\r
+       E7tmc9Pu2FqSfRQ/8iCzee6EiOce+FDPXDux62Roi3jsMEofN1FlPcUqFzXBvngQsI87\r
+       sGq8hPll+x/tLeqfmf6NcnDq4p8DGCw6/rL56wMw0o4mWkhoUg476jBkXVHP7ATrAogL\r
+       s0ud1/ZpxVG9ZPL1hp73/cG3tFBRYWfmBA0APX3AwU4INnQ3yyBx0VGOz0D8g7IfoQSH\r
+       QlqWMQkoUOQYmSC81mgRBNt0GSOHQs5bGi6vLhdmN7AsoOe46AnulLoVhNsqLQ4kZImZ    NLSg==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=sender:from:to:cc:subject:in-reply-to:organization:references\r
+       :user-agent:x-face:face:x-pgp:x-pgp-fp:date:message-id:mime-version\r
+       :content-type:x-gm-message-state;\r
+       bh=RkGAU9mEF5COrGdV5cYh76GXtuUdDf0pxoNA8B8cgGs=;\r
+       b=LpJj4IoHJXWjaAlHHB/3iiwdUiI7l2zF6Ecuk5r+j0OMZWUmOO6iOEwJIPofLgFWYF\r
+       Suhs+7RgXpxQvZ/pqsE7hHpLLHRxpytogFQRnGdkxhH5VPJwPwPyYeyGyySfZcljJMz5\r
+       bsTpsykl6wTiLNe2F9XzquKe2RdAkiRwZY/afDQaikEuyPUDQi3VCE258HlIZZUdprAI\r
+       Z3OId1UblWbfvyj9EaeSgOmN2WGAJzOtpk4pi4AfQrVTypT+66MS7XY7/HGT0XDQbMJa\r
+       M2lkMDekaJ3d8mCqDuhesRjm4Q8nf+DGGGG221U6lGNEatMNbek8E9tzR/udEBOIDElc\r
+       uJXw==\r
+Received: by 10.14.203.69 with SMTP id e45mr2842759eeo.38.1349106993600;\r
+       Mon, 01 Oct 2012 08:56:33 -0700 (PDT)\r
+Received: by 10.14.203.69 with SMTP id e45mr2842744eeo.38.1349106993415;\r
+       Mon, 01 Oct 2012 08:56:33 -0700 (PDT)\r
+Received: from mpn-glaptop (77-253-106-92.adsl.inetia.pl. [77.253.106.92])\r
+       by mx.google.com with ESMTPS id m42sm48950260eep.16.2012.10.01.08.56.31\r
+       (version=TLSv1/SSLv3 cipher=OTHER);\r
+       Mon, 01 Oct 2012 08:56:32 -0700 (PDT)\r
+Sender: Michal Nazarewicz <mpn@google.com>\r
+From: Michal Nazarewicz <mina86@mina86.com>\r
+To: David Bremner <bremner@debian.org>, 687390@bugs.debian.org\r
+Subject: Re: solution to gnus-alias problems?\r
+In-Reply-To: <87pq53xb3l.fsf@zancas.localnet>\r
+Organization: http://mina86.com/\r
+References: <87pq53xb3l.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.14+22~g8bdc16b (http://notmuchmail.org) Emacs/24.2.50.1\r
+       (x86_64-unknown-linux-gnu)\r
+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
+Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEWbfGlUPDDHgE57V0jUupKjgIObY0PLrom9mH4dFRK4gmjPs41MxjOgAAACQElEQVQ4jW3TMWvbQBQHcBk1xE6WyALX1069oZBMlq+ouUwpEQQ6uRjttkWP4CmBgGM0BQLBdPFZYPsyFUo6uEtKDQ7oy/U96XR2Ux8ehH/89Z6enqxBcS7Lg81jmSuujrfCZcLI/TYYvbGj+jbgFpHJ/bqQAUISj8iLyu4LuFHJTosxsucO4jSDNE0Hq3hwK/ceQ5sx97b8LcUDsILfk+ovHkOIsMbBfg43VuQ5Ln9YAGCkUdKJoXR9EclFBhixy3EGVz1K6eEkhxCAkeMMnqoAhAKwhoUJkDrCqvbecaYINlFKSRS1i12VKH1XpUd4qxL876EkMcDvHj3s5RBajHHMlA5iK32e0C7VgG0RlzFPvoYHZLRmAC0BmNcBruhkE0KsMsbEc62ZwUJDxWUdMsMhVqovoT96i/DnX/ASvz/6hbCabELLk/6FF/8PNpPCGqcZTGFcBhhAaZZDbQPaAB3+KrWWy2XgbYDNIinkdWAFcCpraDE/knwe5DBqGmgzESl1p2E4MWAz0VUPgYYzmfWb9yS4vCvgsxJriNTHoIBz5YteBvg+VGISQWUqhMiByPIPpygeDBE6elD973xWwKkEiHZAHKjhuPsFnBuArrzxtakRcISv+XMIPl4aGBUJm8Emk7qBYU8IlgNEIpiJhk/No24jHwkKTFHDWfPniR4iw5vJaw2nzSjfq2zffcE/GDjRC2dn0J0XwPAbDL84TvaFCJEU4Oml9pRyEUhR3Cl2t01AoEjRbs0sYugp14/4X5n4pU4EHHnMAAAAAElFTkSuQmCC\r
+X-PGP: 50751FF4\r
+X-PGP-FP: AC1F 5F5C D418 88F8 CC84 5858 2060 4012 5075 1FF4\r
+Date: Mon, 01 Oct 2012 17:56:29 +0200\r
+Message-ID: <xa1ttxuedw42.fsf@mina86.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/mixed; boundary="=-=-="\r
+X-Gm-Message-State: ALoCoQkeyevsY0Zl4F+1srfQ6MBMZvUQ2OOlxX3KEvkCU+gr/pf3Cq/mgoVdBm2DMEKncak1DEkKusgXmJsaEEovhygTdpTjKmqO9zApBAixl8SrJOIAecfBjs12Pku2uJr3j63bToalFu8xF7pnPjev+1tg+7S5EOITUBbi04Mc1gs2Ixb4wM7AvJR+BiOc9bIzOynQeicSyPkWz5KXNsRipr5orJirxA==\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 01 Oct 2012 15:56:36 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain; charset=utf-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On Mon, Oct 01 2012, David Bremner <bremner@debian.org> wrote:\r
+> Geoff writes:\r
+>\r
+>    Hi David,\r
+>\r
+>    I've found the source of the problem I was having. It seems to be due\r
+>    to some interference with the notmuch-mua-reply function and\r
+>    gnus-alias. In particular, there was a problem with the part of\r
+>    notmuch-mua-reply that inserted the newly setup message contents.\r
+>\r
+>    Towards the end of the notmuch-mua-reply function, there is the follow=\r
+ing code:\r
+>\r
+>        ;; insert the message body - but put it in front of the signature\r
+>        ;; if one is present\r
+>        (goto-char (point-max))\r
+>    *    (if (re-search-backward message-signature-separator nil t)\r
+>    *   (forward-line -1)\r
+>       (goto-char (point-max)))\r
+>        (insert body)\r
+>        (push-mark))\r
+>      (set-buffer-modified-p nil)\r
+>\r
+>    The problem is with the two lines I've marked with a *. Suppose the\r
+>    main message reply buffer already contains a signature and looks like\r
+>    this\r
+>\r
+>    [Headers]\r
+>    --text follows this line\r
+>    --\r
+>    [Signature text]\r
+>\r
+>    The above goes goes to the end of buffer with (point-max), then\r
+>    searches back to the beginning of the signature separator, which is\r
+>    fine. But then it moves one line up to the beginning of '--text\r
+>    follows this line--" and then inserts the newly created message body,\r
+>    which means that it inserts it before the '--text follows this\r
+>    line--'.\r
+>\r
+>    I've solved the problem (I think) by adjust the above code as follows:\r
+>\r
+>        (if (re-search-backward message-signature-separator nil t)\r
+>           (progn\r
+>             (beginning-of-line)\r
+\r
+Call to `beginning-of-line' seems redundant, `re-search-backward' should\r
+move point to the beginning of the match which starts at the beginning\r
+of a line.  Or am I missing something?\r
+\r
+>             (newline))\r
+>       (goto-char (point-max)))\r
+\r
+--=20\r
+Best regards,                                         _     _\r
+.o. | Liege of Serenely Enlightened Majesty of      o' \,=3D./ `o\r
+..o | Computer Science,  Micha=C5=82 =E2=80=9Cmina86=E2=80=9D Nazarewicz   =\r
+ (o o)\r
+ooo +----<email/xmpp: mpn@google.com>--------------ooO--(_)--Ooo--\r
+--=-=-=\r
+Content-Type: multipart/signed; boundary="==-=-=";\r
+       micalg=pgp-sha1; protocol="application/pgp-signature"\r
+\r
+--==-=-=\r
+Content-Type: text/plain\r
+\r
+\r
+--==-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.10 (GNU/Linux)\r
+\r
+iQIcBAEBAgAGBQJQab0tAAoJECBgQBJQdR/0Xf8QAICRZ2Pb64wc3ODNjOkEE2jJ\r
+nH0QnqXkaKc0hKw2b9ES3Rn0/Ko4xUSamVYqz0Wc/0sJywKuuPAU1QXONpnahlzY\r
+c9X4sGmMLV0mmtRZJk8Bsjcmfk/RmDKXDOcQ5iXVBAC3mwX2Mp+9NKPpP6YbFaF7\r
+O4DS6C68lsi1NrqY0Cy9s7f7dvePYkSXMIad+HY9gLyWld9r0F3a7iICf1Ocq8Jk\r
+RKyNsYA2QwbDrbGPVCsXFmns1VGOD1We4X4Yx36rrqCHFOSElvwRCc7A8V9KvrP2\r
+EnL3y0rHX55b+Mclzoq6Z85YcnOKr2ltVdP3/VBdeERVLiQPIbRxps5biRifZuxV\r
+JG2DadLbvfJb1s1hRPiODXDflh6O58miNvy9GtCB7GBHzBBSFtlSbt7234adAwV6\r
+n2l0zsJNUQ6XiRN0UxRky0BlsJzim4AFAWrQqYRmjI18ZjjJxb2blqrkEafSV6WJ\r
+bESFDMW3g3ixKbN4OSjoYBDkqJQ3ywYciH83q+WZZbyxSo+I5kGc4OJvlIl8wXSs\r
+FS5AYZEh32RG+9IAZVee7dJY3lTjEtOeYuvpiyPWT2xSZR4786A0XGbI8Qq3VhvE\r
+tBI3ywDcEwmYxyXcI1+J/4ILS86+rJEOYmf18JSm0/cpPsBVGkXInwM6BPNuGcFq\r
+LO3OlNTKgVDHe9v7EN/g\r
+=R1O1\r
+-----END PGP SIGNATURE-----\r
+--==-=-=--\r
+\r
+--=-=-=--\r