[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Saving attachments



Hi Erik,

I think it works now!  I did not need to set
mime-play-delete-file-immediately; I just had to set mime-view-mailcap-files
very early in my ~/.emacs.d/init.el.  I'm not sure what setting interfered
with it.  I'll do some more testing to see.

Thanks!
Greg

On Thu, 09 Oct 2014 09:41:39 -0700, Erik Hetzner wrote:
> Hi Greg,
> 
> Thatʼs strange. It does seems you also need to set:
> 
>   (setq mime-play-delete-file-immediately nil)
> 
> It might be good to change this as a default. Iʼm not sure how many
> programs work well with this set to `t`, the default.
> 
> I have no idea how this works with KDE, though, as I donʼt use it.
> 
> best, Erik
> 
> At Thu, 09 Oct 2014 21:50:07 +1100,
> Greg Bognar wrote:
> > 
> > Hi Erik,
> > 
> > Thanks for the tip.  Unfortunately, I cannot make this work reliably.  I
> > tested on two computers (both running KDE).  At first, pressing `e' does
> > not give you the prompt, but then it stops working and reverts to the
> > old behavior.
> > 
> > I can't figure out why.  Perhaps there is something in my
> > customizations.  I'll do some more testing.
> > 
> > Pressing `v' did not work at all.
> > 
> > Cheers,
> > Greg
> > 
> > On Tue, 07 Oct 2014 21:59:36 -0700, Erik Hetzner wrote:
> > > 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