Re: How to open a message using Mozilla or Phoenix

Thorsten Maerz <[email protected]>
Newsgroups gmane.mail.sylpheed.claws.windows
Message-ID <[email protected]>
Hi Vincent,

On Tue, 7 Jan 2003 15:57:18 +0100 Vincent Berruyer <[email protected]> wrote:

>    I would like to create an action in sylpheed 0.8.8 running under Win32
>    which would open the selected message with the Mozilla (or Phoenix) web
>    browser.
> [...]
>   Some of those action just open the browser Windows (and it even seems that
>   it's not 100% succesfull  and sometimes nothing append).

There is no need for using pipes ("|"), most probably such actions won't work
if the called application doesn't read from stdin (like all GUI applications
on Win32). Only prepend your action with "|" if it calls a script (etc.) that
will read input from the console; only append the "|" if the application prints
to the console and you want to catch that output.

In your case, it is sufficient to call mozilla with either the filename of the
whole mail ("%f") or just the MIME part, that is curtrently selected ("%p")
(see the explanations from the "Syntax help" button").

>  PS : Moreover, could such action be improved to be able to open any selected
>  part of a MIME message?

So this example might be what you are looking for:
  "c:\program files\mozilla\mozilla.org\mozilla.exe" "%p"

A more advanced way is using a text browser to render html and display
that output in the mimeview window (the one with "text" and "attachment"
tabs, not the combined messageview). I recommend links.exe over lynx.exe,
cause it also renders tables.
You can get the links.pl script from
  http://claws-w32.sourceforge.net/sylpheed/claws/scripts/
Please adjust the $links variable in that script before using it.

HTH,
-- 
Thorsten Maerz          <[email protected]>
Sylpheed-claws/Win32:   http://claws-w32.sf.net



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.