Re: hdr_format / index_format?

1999-08-23 Thread Thomas Roessler

On 1999-08-22 23:33:23 -0400, Ken W wrote:

 I have bothered Sven enough.  What is the difference between
 hdr_format and index_format?  Did index just replace hdr?  Since I set
 up my .muttrc I guess with mutt 0.88 or so, that is what I have for my
 indexes.

From init.h:

  { "hdr_format",   DT_SYN,  R_NONE, UL "index_format", 0 },

That is, hdr_format is an alias for index_format which was preserved
for historical reasons.





imap and inbox access

1999-08-23 Thread David Thorburn-Gundlach

Hi, folks --

I've managed to get 0.95.7i compiled up for Solaris (thanks!) and I
can connect to my exchange inbox using the muttrc.sample from the
distribution.  I tried to drop in a copy of my muttrc from my real
server and change a few vars (inbox, record, and imap_user, while
getting rid of all pgp stuff) and mutt asks for the proper username
(thorburngund@groexmbcr04) when I connect and specify that muttrc,
but the mailbox shows up empty.

Anyone have any ideas off the top of your heads?  On first read,
everything looks dandy -- but they're both *long* files, and I don't
know how much I want to try to diff the two :-)


TIA

:-D
-- 
David Thorburn-Gundlach * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED] Helping out at Pfizer
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
"Why2k?  Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


ssl-imap and mutt

1999-08-23 Thread David Thorburn-Gundlach

Hi, folks --

Will mutt talk ssl-imap to my ssl-imap-capable server?  Is there
anything specific to set up, or will it just happen automagically?


TIA

:-D
-- 
David Thorburn-Gundlach * It's easier to fight for one's principles
(play) [EMAIL PROTECTED]  * than to live up to them. -- fortune cookie
(work) [EMAIL PROTECTED] Helping out at Pfizer
http://www.bigfoot.com/~davidtg/Shpx gur Pbzzhavpngvbaf Qrprapl Npg!
"Why2k?  Well, I didn't think at the time that I could charge any more!"
Note: If bigfoot.com gives you fits, try sector13.org in its place. *sigh*


 PGP signature


Re: pgp won't work for me

1999-08-23 Thread Stefan `Sec` Zehl

On Mon, Aug 23, 1999 at 12:38:05AM +0200, Martin Maciaszek wrote:
 On Sun, Aug 22, 1999 at 05:28:31PM -0400, Fairlight wrote:
  Where the `yes` is coming from unless you configured it that way, I have
  no idea...


 I tried running yes from the command line. It just spits out
 endless lines with "y\n" (y followed by newline).


yes is probably run, because you told mutt to do so.

In your muttrc you should set $pgp_v2  to the path of the pgp binary,
not to 'yes' 

CU,
Sec
-- 
The attached bug will fix that. 
-- Byrial Jensen [EMAIL PROTECTED] on mutt-dev/21.7.98



Re: ssl-imap and mutt

1999-08-23 Thread Brendan Cully

 Will mutt talk ssl-imap to my ssl-imap-capable server?  Is there
 anything specific to set up, or will it just happen automagically?

I don't think so. But I don't know anything about the SSL-IMAP protocol. If
anyone has any docs or pointers to this protocol, I'll investigate adding
support for this.



Re: ssl-imap and mutt

1999-08-23 Thread Thomas Roessler

Possibly, you can implement this using some wrapper tools.  I seem
to recall that you can use ssl-wrap to "sslify" software which
doesn't support SSL as is.  Please investigate this path further
before starting to add OpenSSL to mutt. ;-)

Thanks.

On 1999-08-23 09:49:27 -0400, Brendan Cully wrote:
 From: "Brendan Cully" [EMAIL PROTECTED]
 To: "David Thorburn-Gundlach" [EMAIL PROTECTED]
 Cc: "Mutt Users' List" [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: ssl-imap and mutt
 Date: Mon, 23 Aug 1999 09:49:27 -0400
 
  Will mutt talk ssl-imap to my ssl-imap-capable server?  Is there
  anything specific to set up, or will it just happen automagically?
 
 I don't think so. But I don't know anything about the SSL-IMAP protocol. If
 anyone has any docs or pointers to this protocol, I'll investigate adding
 support for this.
 
 




Re: urlview patch

1999-08-23 Thread Pete Toscano

On Sat, 21 Aug 1999, Brian Salter-Duke wrote:

 On Fri, Aug 20, 1999 at 01:52:57PM -0400, Pete Toscano wrote:
  problems i still see:
  
  . do we want to make the directory vs file detection smarter?  searching
  for a '/' at the end seems kind of brain-dead, but can we make it better
  without being a real pita?  maybe have it search for the main gtlds, such
  as ".com", ".org", ".edu", ".net", ".gov", and ".mil"?  of course, this
  ignores all the two-letter country codes and leads towards a possible 
  maintenance nightmare...
 
 I think we should essentially leave it as is, and certainly not go down
 the road of looking for ".com", etc. Most of my mail ends in ".au"!

agreed.

  please let me know if this works for you.  do you know who we should submit 
  patches for urlview to?
  
 I have checked it out fairly well and it seems OK. The version you got off
 my page says that it does not handle mail URLs without the mailto, e.g.
 [EMAIL PROTECTED] It does handle this with the changes I have made earlier to
 my .urlview. I will update everything on my web page.

i think i noticed a small problem with the script and patch.  line 77 
of the script looks extraneous.  i took your fixes (less the extra 
ncftpget) and made a unified (just my preference -- easier for me to read
and doesn't look like reply quoting to mutt =;) patch against the clean 
url_handler.sh script.  patch is attached.

if i just misunderstood the purpose of that 2nd ncftpget in that block,
please let me know.

 urlview was written by Michael Elkins. Are you suggesting I ask him to
 add the change I made to the URL display to warn about adding or removing
 a "/" in ftp URLSs?

sounds reasonable.

pete

-- 
Pete Toscano  h:[EMAIL PROTECTED]  w:[EMAIL PROTECTED]
GPG fingerprint: AE5C 18E4 D069 76D3 9B9C  D226 D86A 522F 446C 767A


--- url_handler.sh.orig Mon Aug 23 11:32:10 1999
+++ url_handler.sh  Mon Aug 23 11:31:58 1999
@@ -6,31 +6,50 @@
 # Created by:  Michael Elkins [EMAIL PROTECTED] on March 10, 1997
 # Modified by: Liviu Daia [EMAIL PROTECTED]
 # Last Edited: May 26, 1997
+# Modified by: Brian Salter-Duke [EMAIL PROTECTED]
+# Last edited: 19 June, 1999
+# Modified by: Pete Toscano [EMAIL PROTECTED]
+# Last edited: 20 Aug, 1999
 #
 
 url=$1
 method=`echo $1 | sed 's;\(^[^:]*\):.*;\1;'`
 
+# Start with http://.., ftp://.. and mailto:xxx@..
 case $method in
 ftp)
-   target=`echo $url | sed 's;^.*://\([^/]*\)/*\(.*\);\1:/\2;'`
-   if [ -x /usr/bin/ncftp ]; then
-   ncftp $target
+# Use ncftp if URL ends in / and ncftpget if URL does NOT end in /
+# N.B. ncftpget will fail if URL is directory not file.
+# If ncftp is not present in /usr/bin or /usr/local/bin will use ftp.
+   temp=`echo $url | sed 's/.$//;'`
+   if [ $temp/ = $url ]; then
+   if [ -x /usr/bin/ncftp -o -x /usr/local/bin/ncftp ]; then
+   ncftp $url
+   else
+   ftp `echo $url | sed 's;^.*://\([^/]*\)/*.*;\1;'`
+   fi
else
-   ftp $target
+   if [ -x /usr/bin/ncftpget -o -x /usr/local/bin/ncftpget ]; then
+   ncftpget $url
+   else
+   ftp `echo $url | sed 's;^.*://\([^/]*\)/*.*;\1;'`
+   fi
fi
;;
 
 http)   
+# Will use netscape if running XWindow and netscape available,
+# otherwise lynx.
if test x$DISPLAY = x; then
lynx $url
else
-   netscape -remote "openURL($url)" || netscape $url
+   netscape -remote "openURL($url)" || netscape $url || lynx $url
fi
;;
 
 mailto)
-if [ -x /usr/bin/mutt ]; then
+# Uses mutt if present (and if not - why not?) otherwise mail.
+if [ -x /usr/bin/mutt -o -x /usr/local/bin/mutt ]; then
mutt `echo $url | sed 's;^[^:]*:\(.*\);\1;'`
else
mail `echo $url | sed 's;^[^:]*:\(.*\);\1;'`
@@ -38,14 +57,23 @@
;;
 
 *)
+# Now for url's that start www... or ftp or @..
method=`echo $url | sed 's;\(^...\).*;\1;'`
case $method in
ftp)
-   target=`echo $url | sed 's;^\([^/]*\)/*\(.*\);\1:/\2;'`
-   if [ -x /usr/bin/ncftp ]; then
-   ncftp $target
+   temp=`echo $url | sed 's/.$//;'`
+   if [ $temp/ = $url ]; then
+   if [ -x /usr/bin/ncftp -o -x /usr/local/bin/ncftp ]; then
+   ncftp "ftp://"$url
+   else
+   ftp `echo "ftp://"$url | sed 
+'s;^.*://\([^/]*\)/*.*;\1;'`
+   fi
else
-   ftp $target
+   if [ -x /usr/bin/ncftpget -o -x /usr/local/bin/ncftpget ]; then
+   ncftpget "ftp://"$url
+   else
+   ftp `echo 

Re: ssl-imap and mutt

1999-08-23 Thread Brendan Cully

will do. Actually that's probably the best bet for me anyway, since I wonder
whether US crypto regulations would prevent me from releasing more invasive
SSL support...

- Original Message -
From: Thomas Roessler [EMAIL PROTECTED]
To: Brendan Cully [EMAIL PROTECTED]
Cc: David Thorburn-Gundlach [EMAIL PROTECTED]; Mutt Users' List
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 23, 1999 10:30 AM
Subject: Re: ssl-imap and mutt


 Possibly, you can implement this using some wrapper tools.  I seem
 to recall that you can use ssl-wrap to "sslify" software which
 doesn't support SSL as is.  Please investigate this path further
 before starting to add OpenSSL to mutt. ;-)

 Thanks.

 On 1999-08-23 09:49:27 -0400, Brendan Cully wrote:
  From: "Brendan Cully" [EMAIL PROTECTED]
  To: "David Thorburn-Gundlach" [EMAIL PROTECTED]
  Cc: "Mutt Users' List" [EMAIL PROTECTED], [EMAIL PROTECTED]
  Subject: Re: ssl-imap and mutt
  Date: Mon, 23 Aug 1999 09:49:27 -0400
 
   Will mutt talk ssl-imap to my ssl-imap-capable server?  Is there
   anything specific to set up, or will it just happen automagically?
 
  I don't think so. But I don't know anything about the SSL-IMAP protocol.
If
  anyone has any docs or pointers to this protocol, I'll investigate
adding
  support for this.
 
 





Re: ssl-imap and mutt

1999-08-23 Thread Brendan Cully


- Original Message -
From: Steve Kennedy [EMAIL PROTECTED]
To: Mutt Users' List [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, August 23, 1999 11:56 AM
Subject: Re: ssl-imap and mutt


 On Mon, Aug 23, 1999 at 09:49:27AM -0400, Brendan Cully wrote:

   Will mutt talk ssl-imap to my ssl-imap-capable server?  Is there
   anything specific to set up, or will it just happen automagically?
  I don't think so. But I don't know anything about the SSL-IMAP protocol.
If
  anyone has any docs or pointers to this protocol, I'll investigate
adding
  support for this.

 Generally you can use a tunnel, and locally wrap the normal IMAP
 connectionn through a local - remote wrapper.

It looks like stunnel 3.x will do this. The stunnel homepage
http://mike.daewoo.com.pl/computer/stunnel/
even has a link to a page describing how to SSLify IMAP servers and clients
(only in Italian).
Here's the relevant part for mutt:

Lanciare stunnel con il comando (ad esempio durante lo startup):
stunnel -c stunnel -c -v 2 -d 143 -r server_imap:993

dove -v 2 va specificata solo se è stato eseguito il punto precedente.
Un comando analogo va dato se si desiderano connessioni pop-3.

Configurare il cliente di e-mail in modo che acceda la porta imap (o pop-3)
di localhost.


Replace server_imap with your imap server, and set your imap mailhost to
{localhost} in mutt. Of course, if something is listening on port 143 on
localhost already (or you're otherwise unable to bind to port 143), you'll
have to pick an unused port and add it to your mailhost in mutt. Eg: s/-d
143/-d 1143/, then in mutt use {localhost:1143}.

I haven't tried any of this. :)

-Brendan



Re: sent-items: To: default?

1999-08-23 Thread David DeSimone

Attila Csosz [EMAIL PROTECTED] wrote:

 from manual:
 
 index_format:
 ...
 Default: "%4C %Z %{%b %d} %-15.15L (%4l) %s"
 
 Where is here the format specifier for the From: field??
 What should I change to get a list of specifiers for my sent-items?

The very manual that you're quoting from has a full list of these format
specifiers.  In my manual, the list appears *right underneath* the
index_format variable that you're quoting above.  How did you miss it?

  %a  address of the author
  %b  filename of the original message folder (think mailBox)
  %B  the list to which the letter was sent, or else the folder name (%b).
  %c  number of characters (bytes) in the message
  %C  current message number
  %d  date and time of the message in the format specified by
  ``date_format'' converted to sender's time zone
  %D  date and time of the message in the format specified by
  ``date_format'' converted to the local time zone
  %f  entire From: line (address + real name)
  %F  author name, or recipient name if the message is from you
  %i  message-id of the current message
  %l  number of lines in the message
  %L  list-from function
  %m  total number of message in the mailbox
  %M  number of hidden messages if the thread is collapsed.
  %N  message score
  %n  author's real name (or address if missing)
  %O   (_O_riginal save folder)  Where mutt would formerly have stashed the
  message: list name or recipient name if no list
  %s  subject of the message
  %S  status of the message (N/D/d/!/*/r)
  %t  `to:' field (recipients)
  %T  the appropriate character from the $to_chars string
  %u  user (login) name of the author
  %v  first name of the author, or the recipient if the message is from you
  %Z  message status flags

The format specifiers in the default index_format are:

%4C Current message number, four digits.
%Z  Message flags
%{%b %d}Message date (month  date)
%-15.15LList-from function, left-justified, 15 characters
(%4l)   Number of lines in message
%s  Message subject

The list-from function is described in section 4.8, "Handling Mailing
Lists":

  Now that Mutt knows what your mailing lists are, it can do several
  things, the first of which is the ability to show the list name in the
  index menu display.  This is useful to distinguish between personal
  and list mail in the same mailbox.  In the ``$index_format'' variable,
  the escape ``%L'' will return the string ``To list'' when ``list''
  appears in the ``To'' field, and ``Cc list'' when it appears in the
  ``Cc'' field (otherwise it returns the name of the author).

If the message isn't addressed to a list, the %L just performs the %F
function, which is to show the name of sender, or if the sender is you,
then the name of the recipient.  What you want to do, apparently, is
change this to the '%t' specifier, which simply lists the recipients,
when you are in your sent folder.  I do this like so:

folder-hook .   'set sort=threads \
index_format="%4C %Z %{%b %e} %-15.15L (%4c) %s"'

folder-hook +sent   'set sort=date-sent \
index_format="%4C %Z %{%b %e} %-15.15t (%4c) %s"'

-- 
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: imap and inbox access

1999-08-23 Thread Brendan Cully

On Monday, 23 August 1999 at 09:34, David Thorburn-Gundlach wrote:
 Hi, folks --
 
 I've managed to get 0.95.7i compiled up for Solaris (thanks!) and I
 can connect to my exchange inbox using the muttrc.sample from the
 distribution.  I tried to drop in a copy of my muttrc from my real
 server and change a few vars (inbox, record, and imap_user, while
 getting rid of all pgp stuff) and mutt asks for the proper username
 (thorburngund@groexmbcr04) when I connect and specify that muttrc,
 but the mailbox shows up empty.
 
 Anyone have any ideas off the top of your heads?  On first read,
 everything looks dandy -- but they're both *long* files, and I don't
 know how much I want to try to diff the two :-)

build mutt with debugging (if it isn't already), and try mutt -d4.
Read ~/.muttdebug0, and see what's going on. Or send it to me, but you'll
want to black out your password (it'll be in there).

Otherwise I don't know, but I'd like to.

-- 
Brendan Cully [EMAIL PROTECTED] | OLD SKOOL ROOLZ
"I hope I don't win|  .-_|\ 
 The rules say to bring a friend   | / \
 I don't have any" | Perth -*.--._/

 PGP signature


List annoyances

1999-08-23 Thread Steve Kennedy

Can people who follow-up to messages on this list and
include the previous messages (generally tagged on at the
end), remove the headers (or the irrelevant ones at least).

Due to previous mail loops problems, some of the received
lines cause the loop detection to kick in, thus the messages
get sent for approval.

It's not a mjor problem, but would make life slightly easier.

Thanks

Steve


-- 
NetTek Ltd tel +44-(0)20 7483 1169 fax +44-(0)20 7483 2455
Flat 2,   43 Howitt Road,   Belsize Park,   London NW3 4LU
   Epage [EMAIL PROTECTED] [body of text only]



Re: pgp won't work for me

1999-08-23 Thread David DeSimone

Martin Maciaszek [EMAIL PROTECTED] wrote:

 First is /tmp/mutt-nexus-29263-0 which is the message itself
 without the headers.
 Second is /tmp/mutt-nexus-29263-2 which consists onyl of the
 following lines:
 +language=en +pubring=/home/fastjack/.pgp/pubring.pgp
 +secring=/home/fastjack/.p gp/secring.pgp +verbose=0
  +encrypttoself +batchmode -aefts -u 0x757AA05D 0xB82BCB829FBCC2DD
 
 This file grows until I kill the signing process or my /tmp is full.

That is a contradiction.  If your second file contains only those lines,
then how can it grow to fill available space?  It must contain something
more.

-- 
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: Cannot paste to XJed with Mutt/KDE

1999-08-23 Thread David DeSimone

rex [EMAIL PROTECTED] wrote:

 Pasting to Xjed running as Mutt's editor worked under RH5.2.  With
 RH6.0 and KDE it does not -- nothing happens.  Pasting _from_ Xjed
 while composing a message still works, but usually I want to go the
 other way.

Mutt just runs in an xterm, or rxvt, or whatever you want, and *that*
program is what handles the cuts and pastes.  How can it be Mutt's
fault?

-- 
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: question: netscape mutt

1999-08-23 Thread Brian D. Winters

On Sun, Aug 22, 1999 at 04:13:31PM -0500, Jeremy Blosser wrote:
 You should all check out Brian Winters version, which is reportedly rather
 stable and was written from scratch.

IMNSHO you should follow Jeremey's advice. ;)  I can tell you from
experience that hacking on their elm.c example until it works isn't
worth the pain.

I wrote my version ("navmutt") from scratch in part because I got
tired of trying to seperate the bugs in the example elm.c from the
bugs in Navigator and Communicator.  As of 4.61 Nav and Com are both
pretty clean in their support for the Mail half of the API, but
earlier versions had some major API noncompliance issues.  Navmutt
works around those issues whenever it can, but sometimes there isn't
any way to tell what the user wanted done.

shameless plug

In addition to working around Netscape goofs, navmutt has working
support for more options than elm.c supported, like Nav/Com supplied
message bodies for instance.  (Select "File:Send Link" in Nav 4.61, or
"File:Send Page" in Com 4.61 to see this in action.)  AFAIK navmutt's
tempfile creation is safe, although if this is a concern for you
please don't take my word for it, check the source.  navmutt has most
of the news API infrastructure written, although it falls short of
providing functional news url support.  Configuration is fairly clean,
mostly a matter of commenting or uncommenting #defines.  (Runtime
configuration support through an rc file is on the to do list.)

navmutt was written by me from scratch based on the API documentation,
so it should be free from any Netscape copyrights (unlike elm.c).  I
have released navmutt under the LGPL.

/shameless plug

While I'm talking about navmutt, perhaps someone can help me out with
news URLs.  My problem is that I'm not aware of any news readers which
allow you to specify starting nntp server and group on the command
line.  The best idea I've come up with so far is to write a temporary
rc file, but I really, really don't like that solution so I haven't
attempted it yet.  Any pointers in this area would be greatly
appreciated.

Also, if you would like to be notified when a new version of navmutt
comes out (so far about every 4-6 weeks or so) let me know and I'll
put you on my list.

Brian



Re: Hooks Again (was Re: autoedit/edit-headers?)

1999-08-23 Thread David DeSimone

Fairlight [EMAIL PROTECTED] wrote:

 Basically, I want all read messages to go to =received when quitting or
 changing folders.  But NOT when I'm in certain folders (like
 /home/fairlite/folders/funnies, which has 900+ jokes from over the years), 
 or when I'm already in =received...things like that.

Well, the automatic moving of messages to your received folder is
handled by the 'move' variable.

You could just set it to 'ask-yes', and then you'll be asked when you
want it to happen.  Or you can specify a list of folder-hooks that set
it to 'ask-yes' or 'yes' or 'no' according to the folder.

folder-hook .   'set move=ask-yes'  # Default
folder-hook funnies 'set move=no'
folder-hook otherfolder 'set move=ask-no'

You get the idea.  The important thing to realize is that Mutt examines
ALL the folder-hooks, and runs ALL of them that match.  It doesn't try
to pick the "best" match and only run that.  It runs them all, if
possible.  :)

-- 
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: Hooks Again (was Re: autoedit/edit-headers?)

1999-08-23 Thread David DeSimone

Fairlight [EMAIL PROTECTED] wrote:

 what I'm -also- trying to do is get the place to save to set to
 =received as well...

save-hook  ~A   

This hook matches all messages and suggests a default save folder of
"", which expands to "=received" by default.

  It doesn't try to pick the "best" match and only run that.  It runs
  them all, if possible. :)

 If that was true, wouldn't it match the "." default every time?

Yes, it will run it every time.

It will *also* run the other hooks that match.  Since they occur
*later*, they can *override* the settings.  Got it yet???  :)

-- 
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: archiving mailboxes each month

1999-08-23 Thread Roberto Suarez Soto

On Aug/22/1999, Jan Peter Hecking wrote:

 Now you're missing an newline at the end of the string. Try
 
 mailboxes `find $HOME/mail -type f -print | tr '\n' ' ';echo`
 
 instead. Beware also that the tilde ~ doesn't get expanded - you
 have to use $HOME instead.

Yep, you're right. It works perfectly now, thanks :-)

-- 
Roberto Suarez Soto  | Wrap the Internet around every brain
mailto:[EMAIL PROTECTED]|  on the planet and spin the planet.
* Corgo - Lugo - Galicia - Spain | Software flows in the wires.



Re: Hooks Again (was Re: autoedit/edit-headers?)

1999-08-23 Thread Mikko Hänninen

David DeSimone [EMAIL PROTECTED] wrote on Mon, 23 Aug 1999:
 save-hook  ~A 
 
 This hook matches all messages and suggests a default save folder of
 "", which expands to "=received" by default.

...

 It will *also* run the other hooks that match.  Since they occur
 *later*, they can *override* the settings.  Got it yet???  :)

I still don't get it.  I've been thinking of the same problem as Mark,
or at least very similar with just a few different details.

What I was trying to figure how to do was: "How do I specify a default
save folder for every message in folder =foo regardless of other save
hooks, while still having per-message save hook behaviour in other
folders?"

Ie. when I'm in folder =foo, when I press s to save I want Mutt to
suggest my default save folder (whatever I've specified, eg.
=foo-save) always.  That is, regardless of any of the headers etc.
that the message I want to save contains.

While in *other* folders, I want to have a per-message save hooks, eg.
based on sender, recipient address, subject and whatever else I have in
my save hooks.

How can I do this?  Save hooks don't let you match based on the folder
(this would make the problem trivial), and there's no way to negate the
effects of other save hooks while I'm folder =foo (for matching
messages) that I know of.  Also, if I use something like

  folder-hook .save-hook . 
  folder-hook =foo save-hook . =foo-save

... to set the default, that won't really work because the "save-hook ."
won't override the previous definition, AFAIK.


This isn't a critical problem by any means, in fact I'm living happily
without it.  I was merely thinking of reorganizing my mail reading
method for some folders and that would have required being able to do
what I've described above. :-)


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 /
Warning: Dates in the calendar are closer than they appear.



Re: urlview patch

1999-08-23 Thread Brian Salter-Duke

On Mon, Aug 23, 1999 at 11:43:22AM -0400, Pete Toscano wrote:
 On Sat, 21 Aug 1999, Brian Salter-Duke wrote:
 
  On Fri, Aug 20, 1999 at 01:52:57PM -0400, Pete Toscano wrote:
   problems i still see:
   
   . do we want to make the directory vs file detection smarter?  searching
   for a '/' at the end seems kind of brain-dead, but can we make it better
   without being a real pita?  maybe have it search for the main gtlds, such
   as ".com", ".org", ".edu", ".net", ".gov", and ".mil"?  of course, this
   ignores all the two-letter country codes and leads towards a possible 
   maintenance nightmare...
  
  I think we should essentially leave it as is, and certainly not go down
  the road of looking for ".com", etc. Most of my mail ends in ".au"!
 
 agreed.
 
   please let me know if this works for you.  do you know who we should submit 
   patches for urlview to?
   
  I have checked it out fairly well and it seems OK. The version you got off
  my page says that it does not handle mail URLs without the mailto, e.g.
  [EMAIL PROTECTED] It does handle this with the changes I have made earlier to
  my .urlview. I will update everything on my web page.
 
 i think i noticed a small problem with the script and patch.  line 77 
 of the script looks extraneous.  i took your fixes (less the extra 
 ncftpget) and made a unified (just my preference -- easier for me to read
 and doesn't look like reply quoting to mutt =;) patch against the clean 
 url_handler.sh script.  patch is attached.
 
 if i just misunderstood the purpose of that 2nd ncftpget in that block,
 please let me know.

You are quite right. I left that line in by mistake. I think your attached 
patch is  fine. I'll check it later in the day. Lots of teaching coming
up soon.


  urlview was written by Michael Elkins. Are you suggesting I ask him to
  add the change I made to the URL display to warn about adding or removing
  a "/" in ftp URLSs?
 
 sounds reasonable.
 
I'll do that.

Cheers, Brian.
-- 
Associate Professor Brian Salter-Duke (Brian Duke)
Chemistry, Faculty of Science, IT and Education, Northern Territory University,
  Darwin, NT 0909, Australia.  Phone 08-89466702. Fax 08-89466847
[EMAIL PROTECTED]  http://www.smps.ntu.edu.au/school/compchem.html



Re: Hooks...Done, but one problem.

1999-08-23 Thread Stefan `Sec` Zehl

On Mon, Aug 23, 1999 at 06:29:07PM -0400, Fairlight wrote:
 
 So why won't it match on ~/folders/funnies  ??

Maybe mutt doesn't expand ~ correctly ? Maybe try the full path (or
$HOME) instead?

CU,
Sec
-- 
"Oderint dum metuant. Let them hate so long as they fear."
   -- Lucius Accius (170-90 BC). One of history's earliest BOFHs.



Re: 0.95.7i: i18n doesn't work

1999-08-23 Thread Christian Ullrich

Christian Ullrich schrieb am Samstag, 21.08.1999:

 I did just notice that my mutt 0.95.7i won't speak to me in german.
 I compiled it --with-included-gettext and without that option, but
 it always speaks english.

OK, forget it, I recompiled, and now it works. But why?

-- 
Christian UllrichRegistrierter Linux-User #125183

"Sie können nach R'ed'mond fliegen -- aber Sie werden sterben"