Re: [PATCH 2/2] vim plugin: Implement attachment saving
authorCharlie Allom <charlie@mediasp.com>
Sat, 3 Mar 2012 03:12:47 +0000 (03:12 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:11 +0000 (09:45 -0800)
2f/f6bc7b40f1789ef759333e010779f313490dd7 [new file with mode: 0644]

diff --git a/2f/f6bc7b40f1789ef759333e010779f313490dd7 b/2f/f6bc7b40f1789ef759333e010779f313490dd7
new file mode 100644 (file)
index 0000000..2603fea
--- /dev/null
@@ -0,0 +1,115 @@
+Return-Path: <gmn-notmuch@m.gmane.org>\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 C2880431FAE\r
+       for <notmuch@notmuchmail.org>; Fri,  2 Mar 2012 19:15:11 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.865\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.865 tagged_above=-999 required=5\r
+       tests=[RCVD_NUMERIC_HELO=0.865] 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 WyeiyudeXBrt for <notmuch@notmuchmail.org>;\r
+       Fri,  2 Mar 2012 19:15:10 -0800 (PST)\r
+Received: from plane.gmane.org (plane.gmane.org [80.91.229.3])\r
+       (using TLSv1 with cipher AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 45152431FAF\r
+       for <notmuch@notmuchmail.org>; Fri,  2 Mar 2012 19:15:10 -0800 (PST)\r
+Received: from list by plane.gmane.org with local (Exim 4.69)\r
+       (envelope-from <gmn-notmuch@m.gmane.org>) id 1S3fR1-0002Vs-55\r
+       for notmuch@notmuchmail.org; Sat, 03 Mar 2012 04:15:03 +0100\r
+Received: from 94.228.65.43 ([94.228.65.43])\r
+       by main.gmane.org with esmtp (Gmexim 0.1 (Debian))\r
+       id 1AlnuQ-0007hv-00\r
+       for <notmuch@notmuchmail.org>; Sat, 03 Mar 2012 04:15:03 +0100\r
+Received: from charlie by 94.228.65.43 with local (Gmexim 0.1 (Debian))\r
+       id 1AlnuQ-0007hv-00\r
+       for <notmuch@notmuchmail.org>; Sat, 03 Mar 2012 04:15:03 +0100\r
+X-Injected-Via-Gmane: http://gmane.org/\r
+To: notmuch@notmuchmail.org\r
+From: Charlie Allom <charlie@mediasp.com>\r
+Subject: Re: [PATCH 2/2] vim plugin: Implement attachment saving\r
+Date: Sat, 3 Mar 2012 03:12:47 +0000 (UTC)\r
+Lines: 51\r
+Message-ID: <loom.20120303T040913-8@post.gmane.org>\r
+References: <1316226470-30001-1-git-send-email-rharper@shake.ath.cx>\r
+       <1316226470-30001-3-git-send-email-rharper@shake.ath.cx>\r
+Mime-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Transfer-Encoding: 7bit\r
+X-Complaints-To: usenet@dough.gmane.org\r
+X-Gmane-NNTP-Posting-Host: sea.gmane.org\r
+User-Agent: Loom/3.14 (http://gmane.org/)\r
+X-Loom-IP: 94.228.65.43 (Mozilla/5.0 (Macintosh;\r
+       Intel Mac OS X 10_7_3) AppleWebKit/535.11 (KHTML, like Gecko)\r
+       Chrome/17.0.963.56 Safari/535.11)\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: Sat, 03 Mar 2012 03:15:12 -0000\r
+\r
+Ryan Harper <rharper@...> writes:\r
+\r
+> Using the dictionary of attachments in a message we can implement\r
+> saving the attachment.  Select the current attachment under the cursor\r
+> request a new name, but default to the extracted name.\r
+>\r
+\r
+Hi Ryan,\r
+\r
+can you see why I might be getting these errors on 'S'?\r
+\r
+here is my patch https://p.6core.net/p/0jzvp42a5rn8bhny\r
+\r
+Error detected while processing function <SNR>14_NM_show_save_mime_parts:\r
+line    1:\r
+E121: Undefined variable: b:attachments\r
+E15: Invalid expression: b:attachments\r
+line   14:\r
+E121: Undefined variable: attachments\r
+E15: Invalid expression: attachments\r
+line   23:\r
+E716: Key not present in Dictionary: filename\r
+E15: Invalid expression: curatt['filename']\r
+line   24:\r
+E121: Undefined variable: fn\r
+E116: Invalid arguments for function printf('Save: %s', fn)\r
+E15: Invalid expression: printf('Save: %s', fn)\r
+line   25:\r
+E121: Undefined variable: prompt\r
+E116: Invalid arguments for function input(prompt)\r
+E15: Invalid expression: input(prompt)\r
+line   26:\r
+E121: Undefined variable: outfile\r
+E116: Invalid arguments for function strlen(outfile)\r
+E15: Invalid expression: strlen(outfile)\r
+line   35:\r
+E716: Key not present in Dictionary: id\r
+E116: Invalid arguments for function printf("--part=%s", curatt['id']))\r
+E116: Invalid arguments for function add\r
+line   36:\r
+E716: Key not present in Dictionary: mid\r
+E116: Invalid arguments for function add\r
+line   39:\r
+E121: Undefined variable: outfile\r
+E116: Invalid arguments for function printf('>%s', outfile))\r
+E116: Invalid arguments for function add\r
+Press ENTER or type command to continue\r
+\r
+Regards,\r
+  C.\r
+\r
+\r