From 3f02df0bf1a6f8845af3ecf6a0a15dfed5f72175 Mon Sep 17 00:00:00 2001 From: Bart Bunting Date: Sat, 18 Jun 2016 12:14:51 +1000 Subject: [PATCH] Converting attachments to text or html --- 6a/9966daf7a86e86693446a549e5e24647c115d8 | 106 ++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 6a/9966daf7a86e86693446a549e5e24647c115d8 diff --git a/6a/9966daf7a86e86693446a549e5e24647c115d8 b/6a/9966daf7a86e86693446a549e5e24647c115d8 new file mode 100644 index 000000000..126eb71c0 --- /dev/null +++ b/6a/9966daf7a86e86693446a549e5e24647c115d8 @@ -0,0 +1,106 @@ +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 861E66DE0222 + for ; Fri, 17 Jun 2016 19:15:07 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.721 +X-Spam-Level: +X-Spam-Status: No, score=-0.721 tagged_above=-999 required=5 + tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, + RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] + 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 eqyF9OelXf44 for ; + Fri, 17 Jun 2016 19:14:58 -0700 (PDT) +Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com + [209.85.220.49]) + by arlo.cworth.org (Postfix) with ESMTPS id BCE766DE009B + for ; Fri, 17 Jun 2016 19:14:57 -0700 (PDT) +Received: by mail-pa0-f49.google.com with SMTP id hl6so33297138pac.2 + for ; Fri, 17 Jun 2016 19:14:57 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=ursys-com-au.20150623.gappssmtp.com; s=20150623; + h=from:to:subject:user-agent:date:message-id:mime-version; + bh=DvbzccRpswUJt8V93Z9Hwh1ugdhlJSYP3gZ+8jyJ9WI=; + b=BE8j4m4C62WE6tYU54DH3FiT03Eh+8FFZ/730J324qmMmP5OndYik9RZQNKCrSs9Q2 + ERhCykZRuKZVGPG0CYcZa6VZqT2VUkLbmDi8d55Ts7QO3UMd+QTudiH5IYO/5WMQAy4L + FogA8skJcZq/AOp0+mZMH9Ik6Wm1571tSJ8wfdFdB7mGrJpKFyrl7EhJoeuqgFWTmTMA + jcNCUg7ycdbOmY5NkR4nQeU9GTxlYO0o/xACBklx2qxX/ukvt0zSzN5EJcMFLTkmYvqR + s6Vh+dBFa/532tZ8F9As1zTqfhHr9mFYgAB5kTuTtbh+kSK52cCs+/FbEFsWwexqAi8U + tY/g== +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:subject:user-agent:date:message-id + :mime-version; + bh=DvbzccRpswUJt8V93Z9Hwh1ugdhlJSYP3gZ+8jyJ9WI=; + b=c0kzC3H8SIdTH2pQo3ERo6hC1bGvYooBjIpzDf85gNmociZK4HFH2rGsASF/r1oMfZ + V88ZIfeMYOhGmrWOpLAQ4wNs/QblP5gbB26O0zXUkij6Y9OXkU1b7bbgT71NPGZOFpjk + Pp9GGeaeSmtaH29Mkv6C75K6Zdr+dvF+ZzHU+ifZYQ69nnBn/uKGCuW9NeFuOTaXmjC6 + 4+mMJMu9aaVbGRQg5rJrVRwx9dcQAmQzuQb0mO21YEgLKFJVjg7pMbpjyJgUSiDykBNp + T8G7KRXIWM3kRLmXbBH9gzBL8/pI7pCzlBml5Wiou0g2rUEOp3hcMH+SMGfP18+43umK + bLYQ== +X-Gm-Message-State: + ALyK8tKsG0/jARjk6i99wOsC7V8/NGN2OWG3+PEF/2VspSV0XJnawLMag09cYqAKByHTPfzq +X-Received: by 10.66.90.4 with SMTP id bs4mr6011700pab.80.1466216096452; + Fri, 17 Jun 2016 19:14:56 -0700 (PDT) +Received: from fiz.local (c122-106-15-34.rivrw11.nsw.optusnet.com.au. + [122.106.15.34]) + by smtp.gmail.com with ESMTPSA id ry2sm71353873pac.9.2016.06.17.19.14.55 + (version=TLS1 cipher=AES128-SHA bits=128/128); + Fri, 17 Jun 2016 19:14:55 -0700 (PDT) +From: Bart Bunting +X-Google-Original-From: Bart Bunting +Received: by fiz.local (Postfix, from userid 501) + id 38A43DA1001; Sat, 18 Jun 2016 12:14:51 +1000 (AEST) +To: notmuch@notmuchmail.org +Subject: Converting attachments to text or html +User-Agent: Notmuch/0.21+63~gc689d1f (https://notmuchmail.org) Emacs/25.1.50.1 + (x86_64-apple-darwin15.3.0) +Date: Sat, 18 Jun 2016 12:14:51 +1000 +Message-ID: +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, 18 Jun 2016 02:15:07 -0000 + + +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? + +Kind regards +Bart +-- + +Bart Bunting - URSYS +PH: 02 87452811 +Mbl: 0409560005 -- 2.26.2