[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Saving attachments
Hi Greg,
Here is a solution that I came up with, if you a modern desktop. I
have tried this with a number of messages with different types of
attachments, but I’m not sure if it will work universally.
First,
(setq mime-view-mailcap-files '("~/.mailcap"))
This needs to be done *before* SEMI is loaded. You can use
customize-variable for this. Next, use the following (and only the
following) in your ~/.mailcap file:
application/*; xdg-open %s
image/*; xdg-open %s
text/*; xdg-open %s
video/*; xdg-open %s
audio/*; xdg-open %s
Finally:
(setq mime-play-find-every-situations nil)
This depends on having a command, `xdg-open`, that can deal with all
types of files. This should be present on modern Linux desktops. I
believe there is a similar command on a Mac.
Now I think that using `v` or `e` will find only one solution for
every media type, either open in xdg-open or save using
wl-mime-save-content.
best, Erik
At Tue, 07 Oct 2014 21:30:44 +1100,
Greg Bognar wrote:
>
> When I try to save an attachment by pressing `e'
> (`mime-preview-extract-current-entity'), I get a prompt "Methods:". Its two
> options are `mime-save-content' and ` wl-mime-save-content'. The two
> functions do the same thing in slightly different ways.
>
> Is there a way to avoid having this prompt each time I save an attachment?
> Is there a variable that can record my preference? It should not be
> necessary to go through this step every time.
>
> (Actually, I think the same question applies to
> `mime-preview-play-current-entity' -- it should be possible to specify the
> program(s) one uses to view attachments.)
>
> Any tips would be appreciated,
> Greg
--
Sent from my free software system <http://fsf.org/>.