Re: sending uuencoded emails

2000-03-03 Thread Martin Keseg - Sun Slovakia - SE

Thomas Roessler ([EMAIL PROTECTED]) wrote :


> No.
>
> I tend do use editor macros for this purpose, like this (for jed):
 
[...stripped...]

Yes, this is a one way but I wanted some advanced features, for example 
using that variable with send-hook.
I have some friend who can't receive mime emails and I wanted to make some
automatic send-hooks to don't care about uuencoding post by hand.

-- 
   Keso
  don't worry about glory



Re: Reading HTML Attachments

2000-03-03 Thread Fairlight

On Thu, Mar 02, 2000 at 07:28:19PM +0100, Jens Bech Madsen thus spoke:
> Unfortunately a lot of websites are based on databases and often have
> really illegible URLs. I often have the problem that urlview gives me a
> long list of nearly identical URLs without providing context.
> 
> What I would really like to see is a function that allows you to choose an
> URL directly from the message window a bit like lynx.

I fail to see why the builtin pager can't have a URLjump binding that would
work like lynx does, and then let you trigger a browser external from that
point, on that url.

This seems to fall within the scope of a pager, yet leaves the web client
external, thus catering to the lean MUA/rest-to-other-suitable-apps model.
urlview is okay, but I think having this functionality built into the pager
would indeed be more slick and seamless.  

I agree with you on this.  This said from a person still running 0.95.7i.
:)  I saw all the bug reports at 1.x and decided I was better off where I
was.  I haven't been having any problems with mine.

mark->
-- 
Fairlight->   |||[EMAIL PROTECTED]  | Fairlight Consulting
  __/\__  ||| "I'm talking for free...   | http://www.fairlite.com
 <__<>__> |||   It's a New Religion..."  | [EMAIL PROTECTED]
\/||| PGP Public Key available via finger @iglou, or Key servers



urlview

2000-03-03 Thread ashley

I'm trying to set up urlview, but when I type in the bound key sequence, I get:
sh: urlview: command not found

I downloaded and built urlview-0.7, I symlinked the executable to
/usr/bin and /usr/local/bin, I checked the key binding.

What is mutt looking for, and how do I tell mutt where to look?

-- 

-ashley



emacsclient

2000-03-03 Thread ashley

I'm new to mutt. I read in the FAQ about emacsclient as an editor
choice, but I must be making a syntax error in my .muttrc. My messages
abort before I even get to the editor.

This is what I'm doing:

set editor="/usr/bin/emacsclient %s"

How mutt calls the editor is mysterious to me. I don't understand what
syntax is wanted.

Please advise

--

-ashley



Re: Reading HTML Attachments

2000-03-03 Thread Edmund GRIMLEY EVANS

Fairlight <[EMAIL PROTECTED]>:

> I agree with you on this.  This said from a person still running 0.95.7i.
> :)  I saw all the bug reports at 1.x and decided I was better off where I
> was.  I haven't been having any problems with mine.

The bug reports are for 1.1.x. You probably wouldn't have any problems
with 1.0.1 that you don't already have with 0.x.

Edmund



Re: emacsclient

2000-03-03 Thread Ralf Hildebrandt

On Thu, Mar 02, 2000 at 06:36:15PM -0800, ashley wrote:
> I'm new to mutt. I read in the FAQ about emacsclient as an editor
> choice, but I must be making a syntax error in my .muttrc. My messages
> abort before I even get to the editor.
> 
> This is what I'm doing:
> 
> set editor="/usr/bin/emacsclient %s"
> 
> How mutt calls the editor is mysterious to me. I don't understand what
> syntax is wanted.

Have you started emacs correctly before you tried to invoke emacsclient?

-- 
Ralf Hildebrandt <[EMAIL PROTECTED]> www.stahl.bau.tu-bs.de/~hildeb
Quoted-Printable: a standard for mangling Internet messages
Quoted-Unreadable   : the result of applying said standard
Unquoted-Unprintable: the comments from the recipients of the above



Re: urlview

2000-03-03 Thread Ralf Hildebrandt

On Thu, Mar 02, 2000 at 06:37:45PM -0800, ashley wrote:
> I'm trying to set up urlview, but when I type in the bound key sequence, I get:
> sh: urlview: command not found

Try to bind
/usr/local/bin/urlview 
instead of just
urlview

-- 
Ralf Hildebrandt <[EMAIL PROTECTED]> www.stahl.bau.tu-bs.de/~hildeb
There is no reason for any individual to have a computer in their home.
   --Ken Olson, President of DEC, World Future Society Convention, 1977



suggestion: 1.1.7i, gpg-2comp, and gpg.rc

2000-03-03 Thread Alec Habig

Hi All,

I have a suggestion for a change to the gpg setup before releasing the
next stable version.

Currently, the included gpg.rc file is set to use the gpg-2comp script
for signing.  This is a nice script, which allows the use of old RSA
signatures. 

However, for a stable-version mutt, it would be best to have the
default/recommended setup be as straightforward as possible.  If one
doesn't have the need to make old signatures, then there should be no
need to require an external dependency on a script which asks
individual users to do customizations.  If someone wants to do old
signatures, then having the current setup commented out but available
for intrepid souls is a good idea.

Thus, in contrib/gpg.rc, please change the calls to gpg-2comp to simple
calls to gpg.

If I'm managing a multi-user system and want to do an upgrade to
mutt-1.2, it should be as simple as having users source a new system rc
file.  At the very least, including the gpg-2comp script in the mutt
install would make life easier, although for people who don't need it,
requiring the invocation of an extra perl script for each signing is
rather wasteful.

Other than that, things are looking good - kudos to the dev people for
their good work!

   Alec

-- 
   Alec Habig, Boston University Particle Astrophysics Group
   [EMAIL PROTECTED]
   http://hep.bu.edu/~habig/


 PGP signature


Re: emacsclient

2000-03-03 Thread Charles Curley

On Fri, Mar 03, 2000 at 12:08:37PM +0100, Ralf Hildebrandt wrote:
-> On Thu, Mar 02, 2000 at 06:36:15PM -0800, ashley wrote:
-> > I'm new to mutt. I read in the FAQ about emacsclient as an editor
-> > choice, but I must be making a syntax error in my .muttrc. My messages
-> > abort before I even get to the editor.
-> > 
-> > This is what I'm doing:
-> > 
-> > set editor="/usr/bin/emacsclient %s"
-> > 
-> > How mutt calls the editor is mysterious to me. I don't understand what
-> > syntax is wanted.
-> 
-> Have you started emacs correctly before you tried to invoke emacsclient?

Yea, verily.

Also, you may not need the trailing "%s". The following works for me.

set editor="emacsclient"# editor to use when composing messages

Mine, of course, depends on emacsclient being in the path, where yours
does not and is faster.

-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley



Re: Introduction to Maildir (was Re: mutt and mh/procmail)

2000-03-03 Thread Benjamin Korvemaker

Ok.  Next time i'm just going to keep my mouth shut. At leat until
I've had a few cups of coffee.

On Thu, Mar 02, 2000 at 11:41:51PM -0600, Aaron Schrab wrote:
> At 16:19 -0700 02 Mar 2000, Benjamin Korvemaker <[EMAIL PROTECTED]> wrote:
> > [delurk]
> > err. I just saw a complex answer that made my head spin. Mine's a bit
> > easier. I'm assuming you've got procmail already setup (or can figure
> > it out).
> > 
> > #
> > ### Wherever you normal re-direct non-spool mail.
> > MAILDIR=Mail
> > XXX=`date +%s`.$$.`hostname`
> 
> You should be able to use $HOST instead of `hostname`.
> 
> > # Set up a maildir for mutt
> > MUTT=IN.mutt/new/$XXX
> > :0:
> 
> Why are you having procmail use a lockfile?  Not having to use lockfiles
> is one of the major benefits to maildir.  Besides, basically nothing
> else will be using locking so it doesn't help.

[groan] good point. I just switched to maildirs and :0: is far too
habitual at this point. (/me goes and fixes magic scripts that
generate spam filters)

> > * ^TO_.*mutt
> > $MUTT
> 
> This will do the writing directly to the new subdirectory, which is bad.
> In most cases there won't be a problem, but it could cause lost mail in
> some situations.  It's possible for procmail to be suspended between the
> time it opens the file, and when it actually writes the message.  If
> some other program tries to read the message during this time it will
> see an empty file (or possibly just part of the message).  This is why
> messages are supposed to be created in the tmp subdirectory, and moved
> into new only after the whole message has been written.

[yuck] Blame it on my habit of skipping the first paragraph of
anything ('cause there's NEVER any important info in the into!).
Thanks for pointing out that my message should be purged from
everyone's memory and disk.

[going back into my hole. won't come out until I see my shadow.]

Ben
-- 
Benjamin Korvemaker
[EMAIL PROTECTED]
   C makes it easy to shoot yourself in the foot. C++ makes
   it harder, but when you do, it blows away your whole leg.
 - Bjarne 'Stumpy' Stroustrup



Re: suggestion: 1.1.7i, gpg-2comp, and gpg.rc

2000-03-03 Thread Gero Treuner

Hi!

On Fri, Mar 03, 2000 at 10:36:14AM -0500, Alec Habig wrote:
> However, for a stable-version mutt, it would be best to have the
> default/recommended setup be as straightforward as possible.  If one
> doesn't have the need to make old signatures, then there should be no
> need to require an external dependency on a script which asks
> individual users to do customizations.  If someone wants to do old
> signatures, then having the current setup commented out but available
> for intrepid souls is a good idea.

I mostly agree. Preparing another gpg-2comp.rc is IMO better than
working with comments. I expect room for optimizing the rc file and
the gpg-2comp script for use with mutt-1.1/1.2 .

> If I'm managing a multi-user system and want to do an upgrade to
> mutt-1.2, it should be as simple as having users source a new system rc
> file.  At the very least, including the gpg-2comp script in the mutt
> install would make life easier, although for people who don't need it,
> requiring the invocation of an extra perl script for each signing is
> rather wasteful.

Unfortunately I don't see any way to determine good default values
for the required PGP2-interoperating parameters. Therefore the users
must do the configuration by themselves to keep a minimum of
transparency.

I don't think that indications to use the script are common enough to
include it in the distribution.


Gero



Re: suggestion: 1.1.7i, gpg-2comp, and gpg.rc

2000-03-03 Thread Thomas Roessler

On 2000-03-03 17:42:33 +0100, Gero Treuner wrote:

> I don't think that indications to use the script are
> common enough to include it in the distribution.

I've commented out the gpg-2comp lines, and added plain
gpg lines.  People who read their configuration files will
probably stumble over this and either use their brain and
a search machine, or ask.

-- 
http://www.guug.de/~roessler/




Re: emacsclient

2000-03-03 Thread Rob Reid

At  6:08 AM EST on March  3 Ralf Hildebrandt sent off:
> On Thu, Mar 02, 2000 at 06:36:15PM -0800, ashley wrote:
> > I'm new to mutt. I read in the FAQ about emacsclient as an editor
> > choice, but I must be making a syntax error in my .muttrc. My messages
> > abort before I even get to the editor.
> > 
> > This is what I'm doing:
> > 
> > set editor="/usr/bin/emacsclient %s"
> > 
> > How mutt calls the editor is mysterious to me. I don't understand what
> > syntax is wanted.
> 
> Have you started emacs correctly before you tried to invoke emacsclient?
> 

i.e. you need (server-start) in your .emacs.  (C-x C-e at the end of the line
to start it without restarting emacs.)

If you'll permit a plug, one of my web pages has mutt oriented email editing
goodies: http://astro.utoronto.ca/~reid/mutt/

I prefer to only use emacsclient if I'm in X (i.e. most of the time) and jed
otherwise.  If you set mutt's editor, $EDITOR, and $VISUAL to the attached
script, it will automatically send you to jed if you're not running an emacs
server, and emacsclient if you are.

HTH.

-- 
Autocracy, n.: Rule by automobiles.  - Hamish Wilson
Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/
PGP Key: http://astro.utoronto.ca/~reid/pgp.html


#!/bin/sh

editor="jed"
serverrunning="`ps -u ${USER} | grep emacsserver`"
if [ "${serverrunning}" != "" ] ; then
editor="emacsclient"
fi
exec ${editor} $@



Re: Reading HTML Attachments

2000-03-03 Thread Michael Sanders

On Thu, Mar 02, 2000 at 08:54:33PM -0500, John P. Verel wrote:
> 
> 3-The Red Hat sample.urlview has the following command:
> to invoke for selected URL
> COMMAND netscape -remote 'openURL(%s)'
> I get an error message if Netscape is not open; works only with
> Netscape running.
> 
> Question:  How to get to launch Netscape if not open and/or same
> question for lynx?
> 
I call this script:

#!/bin/sh

if [ -n "$DISPLAY" ]
then
  if killall -0 netscape 2> /dev/null;
  then
netscape -remote "openURL($1)"
  else
netscape $1 &
  fi
else
  lynx $1
fi

-- 
(T.) Michael Sanders internet: [EMAIL PROTECTED]
Physics Department   URL: http://www-personal.umich.edu/~sanders
University of Michigan   phone: 734/936-0799
Ann Arbor, MI 48109-1120 FAX: 734/764-6843



Re: Reading HTML Attachments

2000-03-03 Thread David DeSimone

John P. Verel <[EMAIL PROTECTED]> wrote:
>
> Question:  How to get to launch Netscape if not open and/or same
> question for lynx?

Here's my entry:

~/.urlview:

REGEXP  ((https?|ftp)://|www\.)[-a-z_0-9@#$%&+=:;'~,./?]+[a-z_0-9/]
COMMAND openurl

~/bin/openurl:
#!/usr/bin/perl

($url = shift) || die "Usage: openurl http://www.somewhere.com/whatever\n";

$url =~ s/,/%2c/g;  # URL's with commas cause trouble.

if ($ENV{'DISPLAY'})
{
fork && exit;

if (! fork)
{
open(STDOUT, ">/dev/null");
open(STDERR, ">&STDOUT");

exec "netscape", "-noraise", "-remote", "openURL($url,newwindow)";
exit $!;
}

wait;

if ($?)
{
exec "netscape", $url;
die "netscape: $!\n";
}
}
else
{
exec "lynx", $url;
die "lynx: $!\n";
}

-- 
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
UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Installing Mutt

2000-03-03 Thread Alcantara, Alma Delia \(A.D.\)

I'm installing Mutt over an HP-UX, but I receive these messages :

# make install
Making install in doc
make html
sgml2html manual
Make: Cannot load sgml2html.  Stop.
*** Error exit code 1

Stop.
*** Error exit code 1 (ignored)
make manual.txt
sgml2txt -c latin manual
Make: Cannot load sgml2txt.  Stop.
*** Error exit code 1

Stop.
*** Error exit code 1 (ignored)
/mutt/mutt-1.0.1-us/mkinstalldirs /usr/local/man/man1
/mutt/mutt-1.0.1-us/install-sh -c -m 644 mutt.man
/usr/local/man/man1/m1
/mutt/mutt-1.0.1-us/install-sh -c -m 644 dotlock.man
/usr/local/man/man1
/mutt/mutt-1.0.1-us/mkinstalldirs /usr/local/doc/mutt
for f in manual.txt ; do /mutt/mutt-1.0.1-us/install-sh -c -m 644 $f
/ue
install:  manual.txt does not exist
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

  What I'm doing wrong ?

  Thank you. 
:-) Have a Nice Day !!!
Alma D. Alcantara M.
Technical Support
FoM M&SS
Ph. 58-99-72-00 x7531 (943-7531)
Fax. 58-99-75-40 (943-7540)



Re: Problems with configuring mail index/page in mutt

2000-03-03 Thread freix

It's rumored that around Thu, Mar 02, 2000 at 05:43:11PM -0600
freix <[EMAIL PROTECTED]> wrote:
> 
> Hmm, I like this, _but_ once in that mode, I would like to be able to
> change messages.  and P do the normal of next new and previous new,
> but I'd really like to just hop down one message at a time.  I also
> realize using the index number to hop works, but I'm so used to using
> j/k to move around.  Is there a way i can get back to the index, while
> _still_ viewing the contenst of a message?  Possibly a macro that would

I'm a dolt.  Didn't try the obvious, the arrow keys work.  I forgot
those things existed, heh.

-freix



Re: Problems with configuring mail index/page in mutt

2000-03-03 Thread Mikko Hänninen

freix <[EMAIL PROTECTED]> wrote on Fri, 03 Mar 2000:
> I'm a dolt.  Didn't try the obvious, the arrow keys work.  I forgot
> those things existed, heh.

Heh, yeah, they do. :-)

I meant to reply to your original message but never got around to.
As you probably know by now, the "mini-index" in the pager is not a
separate entity, it's part of the pager.  So you can't "change to it",
you have just a single set of key bindings with which have to make do.
Although it would be possible to create macros that re-set your key
pager bindings to "index mode" and "pager mode", but you wouldn't have
any visual indication of in which mode you currently were.

Anyway, you can use "bind pager  " just like normal.
There are no more or no less functions available, and the bindings
for the pager remain the same regardless of whether you have the
mini-index displayed or not.  You need to work out for yourself a
comfortable set of bindings...  Of course, the defaults are pretty
good, eg. that arrow keys work. :-)


Regards,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
I wish life had a scroll-back buffer.



Re: Installing Mutt

2000-03-03 Thread Mikko Hänninen

Alcantara, Alma Delia (A.D.) <[EMAIL PROTECTED]> wrote on Fri, 03 Mar 2000:
> Make: Cannot load sgml2html.  Stop.
> *** Error exit code 1

>   What I'm doing wrong ?

Sounds like you don't have SGMLtools.  I'm not sure if they are required
for installation though, my system has them so I've never ran across this
problem.

Hopefully more knowledgeable people can fill in here...  But this might
get you started, at least.


Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
"I'll be Bach."  -- Johann Sebastian Schwarzenegger



Re: Installing Mutt

2000-03-03 Thread Eugene Lee

On Fri, Mar 03, 2000 at 11:57:10PM +0200, Mikko Hänninen wrote:
:Alcantara, Alma Delia (A.D.) <[EMAIL PROTECTED]> wrote on Fri, 03 Mar 2000:
:> Make: Cannot load sgml2html.  Stop.
:> *** Error exit code 1
:
:>   What I'm doing wrong ?
:
:Sounds like you don't have SGMLtools.  I'm not sure if they are required
:for installation though, my system has them so I've never ran across this
:problem.

According to the web site:

http://ww.sgmltools.org/

the author is no longer supporting it.  Having said that, I wasn't
successful in the past at getting it to install on a FreeBSD system.
I don't know of any official FreeBSD port or package.  If anyone here
has experience in getting the thing to compile, please let me know.


-- 
Eugene Lee
[EMAIL PROTECTED]



Re: Installing Mutt

2000-03-03 Thread Lars Hecking

Alcantara, Alma Delia (A.D.) writes:
> I'm installing Mutt over an HP-UX, but I receive these messages :
> 
> # make install

 You could do a plain "make" first, and then make install. If make install
 fails in docs, "touch" the files make fails on and try make install again.

> Making install in doc
> make html
> sgml2html manual
> Make: Cannot load sgml2html.  Stop.
> *** Error exit code 1
> 
> Stop.
> *** Error exit code 1 (ignored)
[...]
> 
>   What I'm doing wrong ?

 You're using HP-UX.

 Serious, HP's make tool seems to have very unique ideas about Makefiles.
 I have two suggestions:

 - either install sgml-tools (version 1.x; 1.0.9 was the last in that series,
   I think); this shouldn't really be necessary because the files make tries
   to generate should already be in the distribution
 - and/or install GNU make; some people will disagree with me, but HP's make
   is just another example of dumbed-down, near-unusable vendor tools (Sun's
   patch is another one, for that matter)



Re: Installing Mutt

2000-03-03 Thread David DeSimone

Lars Hecking <[EMAIL PROTECTED]> wrote:
>
>  You could do a plain "make" first, and then make install. If make install
>  fails in docs, "touch" the files make fails on and try make install again.

I thought the source of this particular problem came from doing a "make
clean".  The "manual.txt" file gets removed (because it is a product of
the sgmltools), even if the tools do not exist to recreate it.

>  - install GNU make; some people will disagree with me, but HP's make
>is just another example of dumbed-down, near-unusable vendor tools
>(Sun's patch is another one, for that matter)

I do disagree with you about HP's make having less features than GNU
make, but I don't think that makes it "near-unusable".  Nevertheless,
installing GNU tools has never hurt anybody.  :)

-- 
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
UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: Installing Mutt

2000-03-03 Thread Lars Hecking


> According to the web site:
> 
>   http://ww.sgmltools.org/
> 
> the author is no longer supporting it.  Having said that, I wasn't
> successful in the past at getting it to install on a FreeBSD system.
> I don't know of any official FreeBSD port or package.  If anyone here
> has experience in getting the thing to compile, please let me know.

 Mutt's docs require version 1.x (there is also 2.x), and I have installed
 1.0.9 on NetBSD with no problems at all. Are the 2 BSDs so different?



Re: Problems with configuring mail index/page in mutt

2000-03-03 Thread Aaron Schrab

At 23:54 +0200 03 Mar 2000, Mikko Hänninen <[EMAIL PROTECTED]> wrote:
> Although it would be possible to create macros that re-set your key
> pager bindings to "index mode" and "pager mode", but you wouldn't have
> any visual indication of in which mode you currently were.

You could get a mode indicator by having the macros change $pager_format
format in addition to changing the key bindings.

-- 
Aaron Schrab [EMAIL PROTECTED]  http://www.execpc.com/~aarons/
 A Linux machine! because a 486 is a terrible thing to waste!
-- Joe Sloan <[EMAIL PROTECTED]>



Re: Reading HTML Attachments

2000-03-03 Thread Greg Matheson

On Thu, Mar 02, 2000 at 07:28:19PM +0100, Jens Bech Madsen wrote:

> Unfortunately a lot of websites are based on databases and
> often have really illegible URLs. I often have the problem that
> urlview gives me a long list of nearly identical URLs without
> providing context.

I don't have that problem. My problem is that Web connections are
slow here and I want to put urlview in the background and go
back to the mutt I have running (rather than opening another and
having to keep track of all my instances of mutt). 

But I don't think this is possible, because urlview is being run
as a child of the mutt process, isn't it. Please correct my
knowledge of UNIX, if I am wrong. 

-- 
Greg Matheson   genius + soul = jazz
Chinmin College, Taiwan Mr_Bean on SchMOOze
[EMAIL PROTECTED]  & telnet://health.acor.org#



Re: Reading HTML Attachments

2000-03-03 Thread John P. Verel

David,

Thanks for your script :)  However, I'm getting the following error
messages:

Executing: openurl
'http://washingtonpost.com/cgi-bin/gx.cgi/AppLogic+FTContentServer?pagename=wpni/print&articleid=A64933-2000Mar2'...
/home/john/bin/openurl: =: command not found
/home/john/bin/openurl: die: command not found
/home/john/bin/openurl: =/home/john: No such file or directory
/home/john/bin/openurl: syntax error near unexpected token
`open(STDOUT,'
/home/john/bin/openurl: /home/john/bin/openurl: line 14: `
open(STDOUT, ">/dev/null");

My ~/.urlview is set up as you suggested below

What am I doing wrong?

Thanks.

John

On Fri, Mar 03, 2000 at 01:21:24PM -0600, David DeSimone wrote:
> John P. Verel <[EMAIL PROTECTED]> wrote:
> >
> > Question:  How to get to launch Netscape if not open and/or same
> > question for lynx?
> 
> Here's my entry:
> 
> ~/.urlview:
> 
> REGEXP((https?|ftp)://|www\.)[-a-z_0-9@#$%&+=:;'~,./?]+[a-z_0-9/]
> COMMAND   openurl
> 
> ~/bin/openurl:
> #!/usr/bin/perl
> 
> ($url = shift) || die "Usage: openurl http://www.somewhere.com/whatever\n";
> 
> $url =~ s/,/%2c/g;# URL's with commas cause trouble.
> 
> if ($ENV{'DISPLAY'})
> {
>   fork && exit;
> 
>   if (! fork)
>   {
>   open(STDOUT, ">/dev/null");
>   open(STDERR, ">&STDOUT");
> 
>   exec "netscape", "-noraise", "-remote", "openURL($url,newwindow)";
>   exit $!;
>   }
> 
>   wait;
> 
>   if ($?)
>   {
>   exec "netscape", $url;
>   die "netscape: $!\n";
>   }
> }
> else
> {
>   exec "lynx", $url;
>   die "lynx: $!\n";
> }
> 
> -- 
> 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
> UX WTEC Engineer |PGP: 5B 47 34 9F 3B 9A B0 0D  AB A6 15 F1 BB BE 8C 44



Re: Reading HTML Attachments

2000-03-03 Thread John P. Verel

Michael,

Thanks for your script :)  Am I correct to assume that I save it under
some name somewhere in my path and call it from the ~/.urlview COMMAND
line?

Thanks.

John


On Fri, Mar 03, 2000 at 01:55:00PM -0500, Michael Sanders wrote:
> On Thu, Mar 02, 2000 at 08:54:33PM -0500, John P. Verel wrote:
> > 
> > 3-The Red Hat sample.urlview has the following command:
> > to invoke for selected URL
> > COMMAND netscape -remote 'openURL(%s)'
> > I get an error message if Netscape is not open; works only with
> > Netscape running.
> > 
> > Question:  How to get to launch Netscape if not open and/or same
> > question for lynx?
> > 
> I call this script:
> 
> #!/bin/sh
> 
> if [ -n "$DISPLAY" ]
> then
>   if killall -0 netscape 2> /dev/null;
>   then
> netscape -remote "openURL($1)"
>   else
> netscape $1 &
>   fi
> else
>   lynx $1
> fi
> 
> -- 
> (T.) Michael Sanders internet: [EMAIL PROTECTED]
> Physics Department   URL: http://www-personal.umich.edu/~sanders
> University of Michigan   phone: 734/936-0799
> Ann Arbor, MI 48109-1120 FAX: 734/764-6843



Re: Problems with configuring mail index/page in mutt

2000-03-03 Thread David T-G

freix --

...and then freix said...
% It's rumored that around Thu, Mar 02, 2000 at 03:52:57PM -0500
% David T-G <[EMAIL PROTECTED]> wrote:
% > 
% > ...and then Gerrit Holl said...
% > % 
% > % the builtin pager, I still see some of the mail index above - how do I
% > 
% > Just set pager_index_lines=N where N is the number of lines you want
% > (including the status bar at the top).
% 
% Hmm, I like this, _but_ once in that mode, I would like to be able to
% change messages.  and P do the normal of next new and previous new,

I rarely use these, actually, ...


% but I'd really like to just hop down one message at a time.  I also

... I do this all of the time.


% realize using the index number to hop works, but I'm so used to using
% j/k to move around.  Is there a way i can get back to the index, while

I saw that you discovered the arrow keys, but I never use those and so I
know that j/k and J/K (next/prev even if deleted) still work.  I don't
see any funky bindings for them in my .muttrc file, so they're probably
defaults.


HTH^^2 & HAND

:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: urlview

2000-03-03 Thread David T-G

ashley --

...and then Ralf Hildebrandt said...
% On Thu, Mar 02, 2000 at 06:37:45PM -0800, ashley wrote:
% > I'm trying to set up urlview, but when I type in the bound key sequence, I get:
% > sh: urlview: command not found
% 
% Try to bind
% /usr/local/bin/urlview 
% instead of just
% urlview

... and, if that works, make sure you exit mutt, reload your path
("reahsh" in a c-derived shell; I dunno for sh/ksh/bash/zsh/...) to see
the new script, and *then* try it again bound to just "urlview".


:-D
-- 
David T-G   * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED]
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
The "new millennium" starts at the beginning of 2001.  There was no year 0.
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


lists feature

2000-03-03 Thread Dale Harris

Hi,

I'm thinking I would like the lists feature better if I could somehow 
still have the default index_format set.  Is there a way to do that?  I'm
using 1.0, obviously.  Does the subscribed and lists features in 1.1 
somehow change things?  The thing is that I use procmail to sort all 
my mailing list mail into their own mailboxes.  So I know what mailing
list I'm dealing with because I'm in that folder, however I would prefer
to scan the mailbox to see who is posting, with whatever subject.  Somedays
I only want to read Linus' posts to linux-kernel, that is a little 
difficult with the current default setup in 1.0.

-- 
~
Dale Harris  <[EMAIL PROTECTED]>   GPG key: 372FBD57http://www.maybe.org/
  Maybe is an Ambivalent Yet Beguiling Enigma



Re: lists feature

2000-03-03 Thread Mikko Hänninen

Dale Harris <[EMAIL PROTECTED]> wrote on Fri, 03 Mar 2000:
> I'm thinking I would like the lists feature better if I could somehow 
> still have the default index_format set.  Is there a way to do that?  I'm
> using 1.0, obviously.  Does the subscribed and lists features in 1.1 
> somehow change things?

It doesn't change with 1.1 (or 1.2 when it comes out).  What you want to
do is just set your $index_format to your preference.  Start with the
default value (shown in the manual) and get rid of the %L, replace it
with %F (or %f or %n).  See the manual entry of $index_format for a
description of those formatting strings do.

I *think* that's the answer to the question you were asking, though I'm
not sure.  If it doesn't answer you, please clarify your question. :-)


Hope this helps,
Mikko
-- 
// Mikko Hänninen, aka. Wizzu  //  [EMAIL PROTECTED]  //  http://www.iki.fi/wiz/
// The Corrs list maintainer  //   net.freak  //   DALnet IRC operator /
// Interests: roleplaying, Linux, the Net, fantasy & scifi, the Corrs /
"Scotty, beam us aboard."  "Aye, sir.  Will a 2x4 do?"



Re: emacsclient

2000-03-03 Thread Raju K V

hi,

In the screenshot of mutt in your page, some details of email are shown
in the staus bar. how do you do this?

Thanks,
Raju

On Fri, Mar 03, 2000 at 12:54:48PM -0500, Rob Reid [[EMAIL PROTECTED]] wrote:
> At  6:08 AM EST on March  3 Ralf Hildebrandt sent off:
> > On Thu, Mar 02, 2000 at 06:36:15PM -0800, ashley wrote:
> > > I'm new to mutt. I read in the FAQ about emacsclient as an editor
> > > choice, but I must be making a syntax error in my .muttrc. My messages
> > > abort before I even get to the editor.
> > > 
> > > This is what I'm doing:
> > > 
> > > set editor="/usr/bin/emacsclient %s"
> > > 
> > > How mutt calls the editor is mysterious to me. I don't understand what
> > > syntax is wanted.
> > 
> > Have you started emacs correctly before you tried to invoke emacsclient?
> > 
> 
> i.e. you need (server-start) in your .emacs.  (C-x C-e at the end of the line
> to start it without restarting emacs.)
> 
> If you'll permit a plug, one of my web pages has mutt oriented email editing
> goodies: http://astro.utoronto.ca/~reid/mutt/
> 
> I prefer to only use emacsclient if I'm in X (i.e. most of the time) and jed
> otherwise.  If you set mutt's editor, $EDITOR, and $VISUAL to the attached
> script, it will automatically send you to jed if you're not running an emacs
> server, and emacsclient if you are.
> 
> HTH.
> 
> -- 
> Autocracy, n.: Rule by automobiles.  - Hamish Wilson
> Robert I. Reid <[EMAIL PROTECTED]> http://astro.utoronto.ca/~reid/
> PGP Key: http://astro.utoronto.ca/~reid/pgp.html

> #!/bin/sh
> 
> editor="jed"
> serverrunning="`ps -u ${USER} | grep emacsserver`"
> if [ "${serverrunning}" != "" ] ; then
> editor="emacsclient"
> fi
> exec ${editor} $@



Re: lists feature

2000-03-03 Thread Dale Harris

On Sat, Mar 04, 2000 at 06:45:40AM +0200, Mikko Hänninen elucidated:
> 
> It doesn't change with 1.1 (or 1.2 when it comes out).  What you want to
> do is just set your $index_format to your preference.  Start with the
> default value (shown in the manual) and get rid of the %L, replace it
> with %F (or %f or %n).  See the manual entry of $index_format for a
> description of those formatting strings do.
> 
> I *think* that's the answer to the question you were asking, though I'm
> not sure.  If it doesn't answer you, please clarify your question. :-)
> 

Yep, that did it, I didn't read the fine manual well enough the first 
time.  Thanks!


Dale