Re: [PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13 section text
authorTomi Ollila <tomi.ollila@iki.fi>
Thu, 17 May 2012 19:09:35 +0000 (22:09 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:11 +0000 (09:47 -0800)
c2/6cbc3bc525037c13e77b577b5a2b27111c274b [new file with mode: 0644]

diff --git a/c2/6cbc3bc525037c13e77b577b5a2b27111c274b b/c2/6cbc3bc525037c13e77b577b5a2b27111c274b
new file mode 100644 (file)
index 0000000..3f669ed
--- /dev/null
@@ -0,0 +1,100 @@
+Return-Path: <tomi.ollila@iki.fi>\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 96B86431FAF\r
+       for <notmuch@notmuchmail.org>; Thu, 17 May 2012 12:09:30 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\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 dh8H9tC4TvhE for <notmuch@notmuchmail.org>;\r
+       Thu, 17 May 2012 12:09:29 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 4907C431FAE\r
+       for <notmuch@notmuchmail.org>; Thu, 17 May 2012 12:09:29 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id 1AB9D100639; Thu, 17 May 2012 22:09:36 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/3] NEWS: Insert markdown formatting commands in 0.13\r
+       section text\r
+In-Reply-To: <87boln639t.fsf@zancas.localnet>\r
+References: <1337146745-21525-1-git-send-email-tomi.ollila@iki.fi>\r
+       <m28vgsbn3r.fsf@guru.guru-group.fi>\r
+       <87boln639t.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.13~rc1+23~gefd2384 (http://notmuchmail.org) Emacs/23.1.1\r
+       (x86_64-redhat-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Thu, 17 May 2012 22:09:35 +0300\r
+Message-ID: <m2bolm62vk.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Thu, 17 May 2012 19:09:30 -0000\r
+\r
+On Thu, May 17 2012, David Bremner <david@tethera.net> wrote:\r
+\r
+> Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+>>\r
+>> id:"1337152910-22371-4-git-send-email-tomi.ollila@iki.fi"\r
+>> id:"1337152910-22371-5-git-send-email-tomi.ollila@iki.fi"\r
+>> id:"1337152910-22371-6-git-send-email-tomi.ollila@iki.fi"\r
+>> id:"1337152910-22371-7-git-send-email-tomi.ollila@iki.fi"\r
+>\r
+> I pushed those to release. I'll merge them to master after a bit;\r
+> hopefully we'll figure out that reply encoding thing and do a bug fix\r
+> release.\r
+\r
+I got it working by doing this:\r
+\r
+--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--\r
+diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
+index 7fa441a..7523bb6 100644\r
+--- a/emacs/notmuch-lib.el\r
++++ b/emacs/notmuch-lib.el\r
+@@ -244,7 +244,9 @@ the given type."\r
+ current buffer, if possible."\r
+   (let ((display-buffer (current-buffer)))\r
+     (with-temp-buffer\r
+-      (let* ((charset (plist-get part :content-charset))\r
++      ;; (let* ((charset (or (plist-get part :content-charset) "utf-8"))\r
++      ;; (let* ((charset (or (plist-get part :content-charset) "latin-1"))\r
++      (let* ((charset (or (plist-get part :content-charset) 'gnus-decoded))\r
+            (handle (mm-make-handle (current-buffer) `(,content-type (charset . ,charset)))))\r
+       ;; If the user wants the part inlined, insert the content and\r
+       ;; test whether we are able to inline it (which includes both\r
+--8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<----8<--\r
+\r
+(using "latin-1" also provided desired results... but with "utf-8" results\r
+were the same as with default 'nil)\r
+\r
+But, for consistency (with `notmuch show ...` handling), when content-type\r
+is "text/plain" (and as `notmuch reply --format=json` provides text/plain\r
+content inline) we should use the construct \r
+`(insert (notmuch-get-bodypart-content msg part nth ...)` to insert that\r
+content (as done before f6c170fabca8f39e74705e3813504137811bf162 and is\r
+also done in `notmuch-show-insert-part-text/plain`).\r
+\r
+If anyone is faster than me to provide patch what would be fine ;)\r
+\r
+> d\r
+\r
+Tomi\r