unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: David Bremner <david@tethera.net>
To: Bart Bunting <bart.bunting@ursys.com.au>, notmuch@notmuchmail.org
Subject: Re: Converting attachments to text or html
Date: Sat, 25 Jun 2016 11:58:53 +0200	[thread overview]
Message-ID: <87vb0xy4gy.fsf@maritornes.cs.unb.ca> (raw)
In-Reply-To: <m2lh23s0o4.fsf@fiz.local>

Bart Bunting <bart.bunting@ursys.com.au> 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

      reply	other threads:[~2016-06-25  9:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-18  2:14 Converting attachments to text or html Bart Bunting
2016-06-25  9:58 ` David Bremner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vb0xy4gy.fsf@maritornes.cs.unb.ca \
    --to=david@tethera.net \
    --cc=bart.bunting@ursys.com.au \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).