Re: uudencoded stuff

1999-10-26 Thread lang

On Wed, May 19, 1999 at 06:24:19PM +1100, Brian Salter-Duke wrote:

  [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
   if you ever get urlview to work *PLEASE* let me know how you did it


 4. url_handler is url_handler.sh that comes with the release renamed
 and moved to /usr/local/bin. I edited it in two ways. The sed stuff
 to convert $url to $target for ncftp does not work correctly but is
 actually not needed for version 3.0 - beta 18 of ncftp. I just have 
 ncftp $url under the 2 ftp cases. 

After struggling with url_handler.sh all afternoon, I remembered shell
scripts have to be executable, and that was what I had forgotten.
I finally saw the error message flash by on a different computer
in different light conditions. How do you log the error messages? 

Another question I have about .urlview is why the REGEXP does not
have a matching final parenthesis. 

 
REGEXP ht|f)tp)|mailto):(//)?[^ "\t]*|(www|ftp)\.[-a-z0-9.]+)[^ .,;\t"]

-- 
Greg Matheson   Learn a second language
Chinmin College, Taiwan and be born again almost
[EMAIL PROTECTED]  



Re: uudencoded stuff

1999-05-19 Thread Brian Salter-Duke

On Tue, May 18, 1999 at 01:40:15PM -0500, David DeSimone wrote:
 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 
  if you ever get urlview to work *PLEASE* let me know how you did it
 
 I compiled it, installed it, and made a macro to call it from Mutt.
 
Since I made a number of alterations that may interest others here is
what I have just done:-

1. I compiled urlview on two machines - AIX and DU - with no
problem and installed the executable in /usr/local/bin.

2. I added the following two lines to my .muttrc:-

macro index \cb |urlview\n
macro pager \cb |urlview\n
 
3. I moved sample.urlview to my home directory as .urlview. I edited
this to alter the REGEXP to replace 'www' by '(www|ftp)' which allows
addresses such as ftp.cs... to be recognised as well as www.cs...
As command I used:-
COMMAND url_handler '%s'

4. url_handler is url_handler.sh that comes with the release renamed
and moved to /usr/local/bin. I edited it in two ways. The sed stuff
to convert $url to $target for ncftp does not work correctly but is
actually not needed for version 3.0 - beta 18 of ncftp. I just have 
ncftp $url under the 2 ftp cases. Since my mutt is a wrapper for the
actual code which I call realmutt, I replaced mutt by realmutt.

5. Everything works fine with urlview handling web address to lynx,
ftp addresses to ncftp and mailto to a new call of mutt.

This could be developed in various ways. For example, as a chemist
I might get *.pdb URLs which contain molecular data and can be
viewed by a code called RasMol. It would not be difficult to
alter url_handler to deal with this.

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke)
School of Mathematical and Physical Sciences, Northern Territory University,
  Darwin, NT 0909, Australia.  Phone 08-89466702. Fax 08-89466847
e-mail: [EMAIL PROTECTED]  WWW http://lacebark.ntu.edu.au/chemistry 



Re: uudencoded stuff

1999-05-18 Thread David DeSimone

[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

 if you ever get urlview to work *PLEASE* let me know how you did it

I compiled it, installed it, and made a macro to call it from Mutt.

-- 
David DeSimone   | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED]   |  that there is no man really clever who has not
Hewlett-Packard  |  found that he is stupid." -- Gilbert K. Chesterson
Convex Division  |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: uudencoded stuff

1999-05-17 Thread Roland Rosenfeld

On Mon, 17 May 1999, Eric Smith wrote:

 How do I decode and view automatically? What rule would I use in the
 /etc/mailcap cause the file does not have a specific ending.

If you want automatic view, then you have to convert uuencode to MIME
by using emil (http://www.spinnaker.de/debian/#emil) and procmail with 
the following rules:

# 
# Try to convert UUENCODE to MIME
# 
:0
* Content-Type: text
{
:0 fBw
* ^begin [0-7][0-7[0-7]
* ^end
| formail -i Mime-Version | emil -G mime8_user
} 
:0
* !Content-Type:
{
:0 fBw
* ^begin [0-7][0-7][0-7]
* ^end
| emil -G mime8_user
}

If you want to decode already received mails, you may want to simply
pipe the mail into uudeview
(http://www.uni-frankfurt.de/~fp/uudeview/) with the following macro:

macro   index   \eu "|uudeview -\n" "uudecode mail(s)"
macro   pager   \eu "|uudeview -\n" "uudecode mail"
macro   attach  \eu "|uudeview -\n" "uudecode attachment"

Now ESC u uudecodes the mail(s).

 Also where may I download urlview?

ftp://ftp.cs.hmc.edu/pub/me/urlview-0.7.tar.gz

Ciao

Roland

-- 
 * [EMAIL PROTECTED] * http://www.spinnaker.de/ *
 PGP: 1024/DD08DD6D   2D E7 CC DE D5 8D 78 BE  3C A0 A4 F1 4B 09 CE AF



Re: uudencoded stuff

1999-05-17 Thread dizzy73

Quoting our friend --  Eric Smith [EMAIL PROTECTED]:
 Also where may I download urlview?
if you ever get urlview to work *PLEASE* let me know how you did it
thanks
rob
-- 
Linux Home Page http://www.connix.com/~dizzy73/LBM.htm
S.u.S.E Linux 5.3