From 3d1334c923ef7f3c3cedc07cd78a631d5f538b39 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sat, 25 Jun 2016 11:58:53 +0200 Subject: [PATCH] Re: Converting attachments to text or html --- a6/cda5ff87eb8bbb3d03dcb1afc688fdb8e179df | 84 +++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 a6/cda5ff87eb8bbb3d03dcb1afc688fdb8e179df diff --git a/a6/cda5ff87eb8bbb3d03dcb1afc688fdb8e179df b/a6/cda5ff87eb8bbb3d03dcb1afc688fdb8e179df new file mode 100644 index 000000000..6f49f94df --- /dev/null +++ b/a6/cda5ff87eb8bbb3d03dcb1afc688fdb8e179df @@ -0,0 +1,84 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 8DEC36DE02B7 + for ; Sat, 25 Jun 2016 02:59:24 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.011 +X-Spam-Level: +X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 + tests=[AWL=-0.000, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id AtIsfaAc5QyB for ; + Sat, 25 Jun 2016 02:59:16 -0700 (PDT) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id 020E26DE0217 + for ; Sat, 25 Jun 2016 02:59:02 -0700 (PDT) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1bGkMK-0005Ry-T4; Sat, 25 Jun 2016 05:58:40 -0400 +Received: (nullmailer pid 8212 invoked by uid 1000); + Sat, 25 Jun 2016 09:58:53 -0000 +From: David Bremner +To: Bart Bunting , notmuch@notmuchmail.org +Subject: Re: Converting attachments to text or html +In-Reply-To: +References: +User-Agent: Notmuch/0.22+51~gcc1a6d2 (https://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Sat, 25 Jun 2016 11:58:53 +0200 +Message-ID: <87vb0xy4gy.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +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, 25 Jun 2016 09:59:24 -0000 + +Bart Bunting writes: + +> Hi everyone, +> +> I often receive email with word or pdf attachments. +> +> I'm blind and use emacspeak on a mac. Whilst it is possible to save the +> attachment, use unoconv or similar to convert to text or html the +> process is tedious as it means leaving notmuch and executing several commands. +> +> Is there any functionality in notmuch where I can have it preprocess +> attachments of a given mime type or filename regexp or similar pass to +> an external command and display the resulting text. +> +> I'd be happy if either the entire part was replaced with the text or an +> additional part added or anything at all really that made it unnecessary +> to leave notmuch to view the content of the attachment. +> +> Does anyone have suggestions? +> + +Hi Bart; + +Something like you want should be possible, but it might require a bit +of elisp programming. One thing that you can do now is use the '.' key +on a part button to get some options to deal with the attachment from +within notmuch. '. ?' should give you a popup text window with the +options. I guess something like making a script and invoking it with +'. o' should work. + +I hope this helps, + +David + -- 2.26.2