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

Re: Saving attachments



Hi Thomas,

First, to respond to Greg’s original question, WL does save your
preferences, in the variable `mime-preview-situation-example-list`
that is stored in ~/.mime-example. Unfortunately this does not always
work as expected (generally it is too specific: it doesn’t remember
what you want to do with PDF files, it remembers what you want to do
with a given PDF file).

I’m looking into this to try to make it work more as expected. For
example, as you say, a user really shouldn’t have to choose between
`mime-save-content` and `wl-mime-save-content`.

Thomas, I have committed two fixes which should deal with a) problems
with files with spaces and b) xdg-open not always working properly:

  https://github.com/egh/semi/commit/8045d8b052ec043b6d16f9840d28cc5333c27e27
  https://github.com/egh/flim/commit/94ea7b84a099b0dfac7f6b7452c51e826542be4e

These should be available on my package repo:

  http://www.e6h.org/packages/

The mime view mechanism of SEMI is pretty undocumented, both the UI
and the lisp code.

I am looking at fixing the SEMI documentation so that at least it
builds again and is included in my SEMI package. Currently, makeinfo
fails on my machine when attempting to generate an info file from the
texi source.

What I'd really like is a guide to reading messages in Wanderlust,
explaining how tox1 view, play and extract message parts. If anybody
wants to help with working on the Wanderlust texi or emacs wiki docs,
let me know.

best, Erik

At Tue, 07 Oct 2014 13:07:33 -0400,
 wrote:
> 
> Agreed. There is a bit of undocumented magic going on here that I've
> not been able to fully grok. Pointers to explanations or success
> stories would be appreciated.
> 
> E.g., to just extract the HTML and show it in a browser, "v"
> (mime-preview-play-current-entity) should do the trick. But on my RHEL
> system, it didn't work until I added:
> 
>     (setq mime-play-delete-file-immediately nil)
>     (setq process-connection-type nil)
> 
> This gets around some bug in some systems. Even then, some of the
> messages don't get opened in a browser, but in "gedit" (or somesuch),
> presumably because "xdg-open" notices that the file doesn't start with
> a proper "<html" tag (or something) and doesn't invoke the
> browser. I'd really like a way to override that and always just open
> the extracted text in a browser.
> 
> On Ubuntu, my colleague complains that often using "v" doesn't
> actually open the extracted text in a browser, but opens it inside
> emacs in some weird text buffer that emacs has tried to format.
> 
> Anyone know how this all is supposed to work?
> 
> Thomas
> 
> 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/>.

-- 
Sent from my free software system <http://fsf.org/>.