Subject: netscape in background + attachment in body?

From: Vibhu A Veerabadrappa <[email-masked]>
Date: Thu, 5 Aug 1999 14:05:26 -0700 (PDT)

Hi all,

1. I am using pine version 4.10. I have configured such that the 
   program xv is launched when I am looking at a gif/jpg file,
   ghostview when it is ps file, acroread when reading a pdf file,
   and netscape is launched when I am looking at a URL.
   
   When xv, ghostview, or acroread is launched, it seems to go
   in background. In other words, I can continue to read my emails,
   and go into news reading, etc. as if the launching of the 
   "helpers" does not affect me. I can kill the helper programs
   whenever I want.
   
   However, when netscape is launched, it does not go in background.
   The pine itself is suspended. I have to kill the netscape window 
   before I can continue with reading my mail or news in pine.
   
   Is this a bug? Or is there an option I have to set, so that 
   netscape also is launched in background? Here is how I have set
   my url-viewers:

url-viewers = _TEST("test -n '${DISPLAY}'")_ /usr/is/bin/netscape
              /usr/is/bin/netscape                                                         

2. On a different note, is it possible to include an attachment
   (a gif/jpg file, or a postscript file etc.) in the middle
   of the message body of the email? Some of the mail readers
   lets me do that, but in case of pine, it appears that I can
   include only at the "Attachments:" section. I would like to
   attach in the body, to keep the flow.

-- 
Vibhu Veerabadrappa                     HaL Computer Systems
mailto:[email-masked]                   1315, Dell Ave., Campbell, CA 95008
Ph: 408-341-5673
--------------------------------------------------------------------------------
This mail was sent on Aug 5 at 2:02pm.

-- 
-----------------------------------------------------------------
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/pine/pine-info/
-----------------------------------------------------------------

---

From: Bino Gopal <[email-masked]>
Date: Thu, 5 Aug 1999 17:25:50 -0400 (EDT)

On Thu, 5 Aug 1999, Vibhu A Veerabadrappa wrote:

<snip>

> url-viewers = _TEST("test -n '${DISPLAY}'")_ /usr/is/bin/netscape

Change that command line by adding an "&" after the netscape so it reads:

url-viewers = _TEST("test -n '${DISPLAY}'")_ /usr/is/bin/netscape &
              /usr/is/bin/netscape &

This runs a process in the background.  I'm pretty sure that's what you
need to do; someone confirm (I usually overlook something :)?

>    attach in the body, to keep the flow.

That I wouldn't know about, but I'm thinking that it's not possible
currently with pine.  You could always uuencode it and then insert it in
at the appropriate parts!  I don't know if that would 'keep' the flow that
well though.  :P~~  

							BINO

---

From: Vibhu A Veerabadrappa <[email-masked]>
Date: Thu, 5 Aug 1999 14:42:14 -0700 (PDT)

> url-viewers = _TEST("test -n '${DISPLAY}'")_ /usr/is/bin/netscape &

No. That does not work either...
 :-(

-- 
Vibhu Veerabadrappa                     HaL Computer Systems
mailto:[email-masked]                   1315, Dell Ave., Campbell, CA 95008
Ph: 408-341-5673
--------------------------------------------------------------------------------
This mail was sent on Aug 5 at 2:40pm.

---

From: Arthur Snoke <[email-masked]>
Date: Thu, 5 Aug 1999 18:12:27 -0400 (EDT)

I don't have problems with netscape freezing pine.  On unix sunos and
versions from 3.96 to 4.05 I use the following:

In my ~/.pinerc I have

# List of programs to open Internet URLs (e.g. http or ftp references).
url-viewers=/usr2/SUN4/pine/stuff/pineURL

equake{snoke}28: cat /usr2/SUN4/pine/stuff/pineURL
#!/bin/sh
 
url=`echo $1 | sed -e 's/,/%2C/g'`
 
if [ -n "$DISPLAY" ]; then
   if [ -h $HOME/.netscape/lock ]; then
      /usr/local/bin/netscape -remote "openURL($url)"
   else
      /usr/local/bin/netscape "$url" >/dev/null 2>&1 &
   fi
fi

equake{snoke}29: 

Thanks to John Kelso for this.

Arthur Snoke

---

From: Vibhu A Veerabadrappa <[email-masked]>
Date: Thu, 5 Aug 1999 16:39:49 -0700 (PDT)

> Thanks to John Kelso for this.

Thank you very much. THis works....

-- 
Vibhu Veerabadrappa                     HaL Computer Systems
mailto:[email-masked]                   1315, Dell Ave., Campbell, CA 95008
Ph: 408-341-5673
--------------------------------------------------------------------------------
This mail was sent on Aug 5 at 4:38pm.