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