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 444F3431FAF for ; Sun, 15 Jan 2012 04:16:05 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.201 X-Spam-Level: X-Spam-Status: No, score=0.201 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] 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 f4dfkE4SCw-A for ; Sun, 15 Jan 2012 04:16:04 -0800 (PST) Received: from mail-wi0-f181.google.com (mail-wi0-f181.google.com [209.85.212.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A4137431FAE for ; Sun, 15 Jan 2012 04:16:04 -0800 (PST) Received: by wibhr12 with SMTP id hr12so1667444wib.26 for ; Sun, 15 Jan 2012 04:16:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; bh=a1Y+C+iH0Sqf/ofC12jQhx+qA/vMDPMs/dVA1mH42BY=; b=QY9KELBvBrLOwc/UcjSmLyL0Re77gz/YcpBL62+Othe21q1GLKNbTQOcuyLYizw9i2 Ek4pW8J7mBHT6pK5lxCl4UZQy9k1/S9loeVzYLn6g/yCK6Jz/N9Ej8iCf3rbCrMRjFU8 GeoYkyTHkmEWbGH17pCLsUUz9lBq414sZiW1U= Received: by 10.180.91.42 with SMTP id cb10mr7874731wib.15.1326629763388; Sun, 15 Jan 2012 04:16:03 -0800 (PST) Received: from localhost (94-192-233-223.zone6.bethere.co.uk. [94.192.233.223]) by mx.google.com with ESMTPS id ex2sm27575877wib.1.2012.01.15.04.16.01 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 15 Jan 2012 04:16:02 -0800 (PST) From: Mark Walters To: notmuch@notmuchmail.org Subject: [PATCH 0/1] emacs: allow viewing as well saving individual attachments Date: Sun, 15 Jan 2012 12:16:35 +0000 Message-Id: <1326629796-11436-1-git-send-email-markwalters1009@gmail.com> X-Mailer: git-send-email 1.7.2.3 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: Sun, 15 Jan 2012 12:16:05 -0000 Hello This is a resubmission of (a tidied version) of id:"87mxehqhbl.fsf@r102.config". I have modified the emacs interface for handling attachments by adding a keymap to the attachment button. For example pressing v when on an attachment button views the attachment (using the mailcap method) and pressing s saves the attachment. I find this makes it a lot easier when dealing with message with lots of attachments. Other comments: "Viewing" a text/html button opens the part in the mailcap defined html viewer. "Viewing" a part with no mailcap entry just offers to save it. In this version I make the button default to saving (as currently) but this is easily customizable. I have also mapped the key "o" (other/open with) on a button to open with user chosen program. This could be split out into a separate patch if preferred. I have been using the previous version since I wrote it in the summer and not had any problems. This tidied version is less well tested but the logic should be the same; it seems to work correctly in all cases I can think to test. Best wishes Mark Mark Walters (1): Make buttons for attachments allow viewing as well as saving emacs/notmuch-show.el | 81 ++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 64 insertions(+), 17 deletions(-) -- 1.7.2.3