Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [05 16:28]: On 05Nov2011 14:23, Tim Johnson t...@akwebsoft.com wrote: | Done. I've installed the css package. Added the invocation of | env.sh to to .profile. Restarted mutt. With environment :). | Below is result of mutt - !env [...] |

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Cameron Simpson
On 06Nov2011 07:31, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [05 16:28]: | On 05Nov2011 14:23, Tim Johnson t...@akwebsoft.com wrote: | | Done. I've installed the css package. Added the invocation of | | env.sh to to .profile. Restarted mutt. With

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [06 11:31]: | I'm hoping xv worked? | It loads, but does not load the file. I just get the splash screen That's no good. While xv is open, what does ps show its command line to be? It should be running xv the-file, presuming you have xv %s in the

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Cameron Simpson
On 06Nov2011 13:46, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [06 11:31]: | | Also, would like to eliminate prompt to save file. Do you mind | | resending me the URL for your documentation. I lost it. Sorry! | |

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [04 17:36]: On 04Nov2011 15:50, Tim Johnson t...@akwebsoft.com wrote: | And from env.sh, I note the following: | : ${OS:=''} | case `uname -sr` in | SunOS\ [56789].\*) OS=solaris ;; | SunOS\ \*) OS=sunos ;; | Linux\ \*)

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Cameron Simpson
On 05Nov2011 14:23, Tim Johnson t...@akwebsoft.com wrote: | Done. I've installed the css package. Added the invocation of | env.sh to to .profile. Restarted mutt. With environment :). | Below is result of mutt - !env [...] | TMPDIR=/var/folders/rj/6r6lch2d1mqb6p8k7s_ydrh8gn/T/

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [03 18:42]: On 03Nov2011 17:07, Tim Johnson t...@akwebsoft.com wrote: | Cameron, thanks for those explanations. | I have not yet installed your css package. Been really busy here. | Will try to get to it tomorrow or saturday. | This is fun. And

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Cameron Simpson
On 04Nov2011 15:50, Tim Johnson t...@akwebsoft.com wrote: | And from env.sh, I note the following: | : ${OS:=''} | case `uname -sr` in | SunOS\ [56789].\*) OS=solaris ;; | SunOS\ \*) OS=sunos ;; | Linux\ \*) OS=linux ;; | esac I'm using darwin. But please update your

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [02 18:51]: | | This discrepancy is odd, and a little troubling. We probably need to | | investigate that a little. | | I think this has to do with the way that iTerm2 passes the | | environment to mutt... but I am just guessing. | | Hmm. I'm

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Tim Johnson t...@akwebsoft.com [03 08:15]: * Cameron Simpson c...@zip.com.au [02 18:51]: | | This discrepancy is odd, and a little troubling. We probably need to | | investigate that a little. | | I think this has to do with the way that iTerm2 passes the | | environment

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 07:55, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [02 18:51]: | Ok, now running iTerm2. How do you invoke mutt then? A special iterm2 | profile or something else? | | I just use /opt/local/bin/mutt as the command in a profile. | I can also

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [03 11:47]: On 03Nov2011 07:55, Tim Johnson t...@akwebsoft.com wrote: That sounds right. Taking the latter case first, mutt gets the environment because your login shell has build the environment before mutt gets invoked. For the former case, mutt

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 17:07, Tim Johnson t...@akwebsoft.com wrote: | Cameron, thanks for those explanations. | I have not yet installed your css package. Been really busy here. | Will try to get to it tomorrow or saturday. | This is fun. And informative. No worries, whenever. | BTW: This

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [01 17:55]: On 01Nov2011 16:53, Tim Johnson t...@akwebsoft.com wrote: | Got a lot of issues with ah-apphelper. I feared there might be. I haven't tried to foist it off onto someone else before (withstdin runs standalone - apphelper expects more tools).

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Cameron Simpson
On 02Nov2011 09:59, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [01 17:55]: | On 01Nov2011 16:53, Tim Johnson t...@akwebsoft.com wrote: | | From bash - linus:~ tim$ echo $PATH | |

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Cameron Simpson
On 03Nov2011 08:30, I wrote: | On 02Nov2011 09:59, Tim Johnson t...@akwebsoft.com wrote: | | * Cameron Simpson c...@zip.com.au [01 17:55]: | | On 01Nov2011 16:53, Tim Johnson t...@akwebsoft.com wrote: | | | From bash - linus:~ tim$ echo $PATH | | |

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111030 13:12]: .. For images etc I have a more complex script: http://www.cskk.ezoshosting.com/cs/css/bin/apphelper Got it. which offers to view the attachment and also to save it, since I find the open viewer, quit, ask to save rigmarole tedious.

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Cameron Simpson
On 01Nov2011 16:53, Tim Johnson t...@akwebsoft.com wrote: | Got a lot of issues with ah-apphelper. I feared there might be. I haven't tried to foist it off onto someone else before (withstdin runs standalone - apphelper expects more tools). | But first I have to say | 1)I am new to darwin

Re: mailcap entry for html - escaping spaces

2011-10-31 Thread Cameron Simpson
On 30Oct2011 17:35, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [111030 13:12]: | Should do. The open-an-app mechanism is the same. | | However, as written withstdin leaves the temp copy lying around (the | --keep mode). For HTML this won't waste much disc space

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111029 17:51]: The script is (was) wrong. withstdin was actually a differently purposed script and did exhibit that behaviour. I have modified it. Invoke the new version like this: text/html; withstdin --keep --ext=.html open -a Chrome %s You

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Cameron Simpson
On 30Oct2011 07:42, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [111029 17:51]: | The script is (was) wrong. withstdin was actually a differently purposed | script and did exhibit that behaviour. | | I have modified it. Invoke the new version like this: | |

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111030 13:12]: Should do. The open-an-app mechanism is the same. However, as written withstdin leaves the temp copy lying around (the --keep mode). For HTML this won't waste much disc space by video will quickly get wasteful. I intend adding a --keep=N

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111029 07:03]: Here's what I do sometimes. My $PATH has two (well ,more, but basicly two) leading items: $HOME/bin-local $HOME/bin The latter is my collection of scripts and is identical on all machines. The _former_ is per-machine hacks (and new

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 08:08, Tim Johnson t...@akwebsoft.com wrote: | For your situation the simplest thing for me would be: |ln -s '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' $HOME/bin-local/chrome | (On one line, should the mailer fold things.) | Then just make the mailcap read:

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111029 13:27]: Does Chrome run at all? Yes. If so, try changing your mailcap line to read: text/html; open -a Chrome %s Done. which uses the Mac's open command to open the URL or file using the chrome app. That usage works for me (from the

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Patrick Shanahan
* Tim Johnson t...@akwebsoft.com [10-29-11 20:12]: * Cameron Simpson c...@zip.com.au [111029 13:27]: That works. However, if I do 'm' (view-mailcap) or Cr (view-attach) focus switches to a new chrome tab, but I get a This webpage is not found error message. Example: location =

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 16:09, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [111029 13:27]: | Does Chrome run at all? | Yes. | If so, try changing your mailcap line to read: | |text/html; open -a Chrome %s | Done. | which uses the Mac's open command to open the URL

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
* Cameron Simpson c...@zip.com.au [111029 16:50]: | thanks. Good tip. Making progress. Ah, ok. What you're seeing is that mutt cleans up the temp file after the command completes. open tells chrome what to open, and exits. Mutt cleans up. Chrome responsds too late and sees nothing. What

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 17:05, Tim Johnson t...@akwebsoft.com wrote: | * Cameron Simpson c...@zip.com.au [111029 16:50]: | | thanks. Good tip. Making progress. | | What you need is a wrapper script to take a copy of the file and hand | the copy to chrome. Like this one: | |

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 20:29, Patrick Shanahan ptilopt...@gmail.com wrote: | * Tim Johnson t...@akwebsoft.com [10-29-11 20:12]: | * Cameron Simpson c...@zip.com.au [111029 13:27]: |That works. |However, if I do 'm' (view-mailcap) or Cr (view-attach) |focus switches to a new chrome tab, but I

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 30Oct2011 12:23, I wrote: | Please refetch the updated script (realised my error after my earlier | post, have been modifying the script meanwhile). Please refetch after 12:31pm GMT+11 (01:31 GMT). Another bugfix for the upgrade - doesn't actually bite your proposed use though. Cheers, --

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Patrick Shanahan
* Cameron Simpson c...@zip.com.au [10-29-11 21:26]: (1) might work, though I'm offering another approach in the other thread branch. (2) won't help - you never see chrome return from the web page display, and watching the command output for EOF doesn't help. when I view an http email in

mailcap entry for html - escaping spaces

2011-10-28 Thread Tim Johnson
Using mutt on Mac Lion - OSX 10.7 I'm trying to create a mailcap entry so that I can view text/html attachments with chrome The chrome executable is on a path with embedded spaces. I have the following entry: ## text/html; /Applications/Google\ Chrome.app/Contents/MacOS/Google\

Re: mailcap entry for html - escaping spaces

2011-10-28 Thread Cameron Simpson
On 28Oct2011 16:27, Tim Johnson t...@akwebsoft.com wrote: | Using mutt on Mac Lion - OSX 10.7 | I'm trying to create a mailcap entry so that I can view text/html | attachments with chrome | The chrome executable is on a path with embedded spaces. | I have the following entry: | ##