unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Converting attachments to text or html
@ 2016-06-18  2:14 Bart Bunting
  2016-06-25  9:58 ` David Bremner
  0 siblings, 1 reply; 2+ messages in thread
From: Bart Bunting @ 2016-06-18  2:14 UTC (permalink / raw)
  To: notmuch


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Converting attachments to text or html
  2016-06-18  2:14 Converting attachments to text or html Bart Bunting
@ 2016-06-25  9:58 ` David Bremner
  0 siblings, 0 replies; 2+ messages in thread
From: David Bremner @ 2016-06-25  9:58 UTC (permalink / raw)
  To: Bart Bunting, notmuch

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-06-25  9:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-18  2:14 Converting attachments to text or html Bart Bunting
2016-06-25  9:58 ` David Bremner

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).