Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Cameron Simpson
On 06Nov2011 13:46, Tim Johnson wrote: | * Cameron Simpson [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! | > | > http://www.cskk.ezoshosting.com/cs/css/manuals/apphelper.1.html | > |

Re: mailcap entry for html - escaping spaces

2011-11-06 Thread Tim Johnson
* Cameron Simpson [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 07:31, Tim Johnson wrote: | * Cameron Simpson [05 16:28]: | > On 05Nov2011 14:23, Tim Johnson 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 Tim Johnson
* Cameron Simpson [05 16:28]: > On 05Nov2011 14:23, Tim Johnson 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/6r6lch2d1mqb6p8

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Cameron Simpson
On 05Nov2011 14:23, Tim Johnson 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/ Interesting. Seems a surpri

Re: mailcap entry for html - escaping spaces

2011-11-05 Thread Tim Johnson
* Cameron Simpson [04 17:36]: > On 04Nov2011 15:50, Tim Johnson 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 us

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Cameron Simpson
On 04Nov2011 15:50, Tim Johnson 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 env.sh to the attach

Re: mailcap entry for html - escaping spaces

2011-11-04 Thread Tim Johnson
* Cameron Simpson [03 18:42]: > On 03Nov2011 17:07, Tim Johnson 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. OK. Starting t

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 17:07, Tim Johnson 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 pythonist has notices

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson [03 11:47]: > On 03Nov2011 07:55, Tim Johnson 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 gets invoked possibly directly

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Cameron Simpson
On 03Nov2011 07:55, Tim Johnson wrote: | * Cameron Simpson [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 launch mutt directly from the defaul

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Tim Johnson [03 08:15]: > * Cameron Simpson [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

Re: mailcap entry for html - escaping spaces

2011-11-03 Thread Tim Johnson
* Cameron Simpson [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 using iTerm

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 wrote: | | * Cameron Simpson [01 17:55]: | | > On 01Nov2011 16:53, Tim Johnson wrote: | | > | From bash - linus:~ tim$ echo $PATH | | > | /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/b

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Cameron Simpson
On 02Nov2011 09:59, Tim Johnson wrote: | * Cameron Simpson [01 17:55]: | > On 01Nov2011 16:53, Tim Johnson wrote: | > | From bash - linus:~ tim$ echo $PATH | > | /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin | > | From mutt echo $PATH | > |

Re: mailcap entry for html - escaping spaces

2011-11-02 Thread Tim Johnson
* Cameron Simpson [01 17:55]: > On 01Nov2011 16:53, Tim Johnson 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

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Cameron Simpson
On 01Nov2011 16:53, Tim Johnson 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 (OSX/Lion) | 2)Eve

Re: mailcap entry for html - escaping spaces

2011-11-01 Thread Tim Johnson
* Cameron Simpson [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. > > It ha

Re: mailcap entry for html - escaping spaces

2011-10-31 Thread Cameron Simpson
On 30Oct2011 17:35, Tim Johnson wrote: | * Cameron Simpson [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

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Tim Johnson
* Cameron Simpson [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 option to ti

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Cameron Simpson
On 30Oct2011 07:42, Tim Johnson wrote: | * Cameron Simpson [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

Re: mailcap entry for html - escaping spaces

2011-10-30 Thread Tim Johnson
* Cameron Simpson [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 D'Man Camer

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Patrick Shanahan
* Cameron Simpson [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 firefox, if 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, -- Cam

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 20:29, Patrick Shanahan wrote: | * Tim Johnson [10-29-11 20:12]: | > * Cameron Simpson [111029 13:27]: | > That works. | > However, if I do 'm' (view-mailcap) or (view-attach) | > focus switches to a new chrome tab, but I get a | > "This webpage is not found" error messag

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 17:05, Tim Johnson wrote: | * Cameron Simpson [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: | > | > http://www.cskk.ezoshosting.com/cs/css/bin/withstd

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
* Cameron Simpson [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 you ne

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 16:09, Tim Johnson wrote: | * Cameron Simpson [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 | > "chr

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Patrick Shanahan
* Tim Johnson [10-29-11 20:12]: > * Cameron Simpson [111029 13:27]: > That works. > However, if I do 'm' (view-mailcap) or (view-attach) > focus switches to a new chrome tab, but I get a > "This webpage is not found" error message. > Example: location = > file://localhost/var/folde

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
* Cameron Simpson [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 command lin

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Cameron Simpson
On 29Oct2011 08:08, Tim Johnson 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: | > text/htm

Re: mailcap entry for html - escaping spaces

2011-10-29 Thread Tim Johnson
* Cameron Simpson [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 scripts no

Re: mailcap entry for html - escaping spaces

2011-10-28 Thread Cameron Simpson
On 28Oct2011 16:27, Tim Johnson 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: | ## | text/html; "/Appl

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\ Chr