Re: bounce and delivered-to line

1999-08-20 Thread Thomas Roessler

Try the attached patch. I'll also put it into stable.


Index: copy.c
===
RCS file: /home/roessler/cvsroot/mutt/copy.c,v
retrieving revision 2.4
diff -u -u -r2.4 copy.c
--- copy.c  1999/02/02 15:47:51 2.4
+++ copy.c  1999/03/15 15:08:34
@@ -60,7 +60,7 @@
   buf[0] = '\n';
   buf[1] = 0;
 
-  if ((flags & (CH_REORDER | CH_WEED | CH_MIME | CH_DECODE | CH_PREFIX)) == 0)
+  if ((flags & (CH_REORDER | CH_WEED | CH_MIME | CH_DECODE | CH_PREFIX | 
+CH_WEED_DELIVERED)) == 0)
   {
 /* Without these flags to complicate things
  * we can do a more efficient line to line copying
@@ -148,6 +148,9 @@
   if ((flags & CH_WEED) && 
  mutt_matches_ignore (buf, Ignore) &&
  !mutt_matches_ignore (buf, UnIgnore))
+   continue;
+  if ((flags & CH_WEED_DELIVERED) &&
+ mutt_strncasecmp ("Delivered-To:", buf, 13) == 0)
continue;
   if ((flags & (CH_UPDATE | CH_XMIT | CH_NOSTATUS)) &&
  (mutt_strncasecmp ("Status:", buf, 7) == 0 ||
Index: init.h
===
RCS file: /home/roessler/cvsroot/mutt/init.h,v
retrieving revision 2.20
diff -u -u -r2.20 init.h
--- init.h  1999/03/02 20:32:02 2.20
+++ init.h  1999/03/15 15:12:19
@@ -85,6 +85,7 @@
   { "auto_tag",DT_BOOL, R_NONE, OPTAUTOTAG, 0 },
   { "beep",DT_BOOL, R_NONE, OPTBEEP, 1 },
   { "beep_new",DT_BOOL, R_NONE, OPTBEEPNEW, 0 },
+  { "bounce_delivered", DT_BOOL, R_NONE, OPTBOUNCEDELIVERED, 1 },
   { "charset", DT_STR,  R_NONE, UL &Charset, UL "iso-8859-1" },
   { "check_new",   DT_BOOL, R_NONE, OPTCHECKNEW, 1 },
   { "collapse_unread", DT_BOOL, R_NONE, OPTCOLLAPSEUNREAD, 1 },
Index: mutt.h
===
RCS file: /home/roessler/cvsroot/mutt/mutt.h,v
retrieving revision 2.22
diff -u -u -r2.22 mutt.h
--- mutt.h  1999/02/28 08:05:56 2.22
+++ mutt.h  1999/03/15 15:25:16
@@ -86,6 +86,7 @@
 #define CH_UPDATE_LEN  (1<<10) /* update Lines: and Content-Length: */
 #define CH_TXTPLAIN(1<<11) /* generate text/plain MIME headers */
 #define CH_NOLEN   (1<<12) /* don't write Content-Length: and Lines: */
+#define CH_WEED_DELIVERED (1<<13) /* weed eventual Delivered-To headers */
 
 /* flags for mutt_enter_string() */
 #define  M_ALIAS   1  /* do alias "completion" by calling up the alias-menu */
@@ -289,6 +290,7 @@
   OPTAUTOTAG,
   OPTBEEP,
   OPTBEEPNEW,
+  OPTBOUNCEDELIVERED,
   OPTCHECKNEW,
   OPTCOLLAPSEUNREAD,
   OPTCONFIRMAPPEND,
Index: sendlib.c
===
RCS file: /home/roessler/cvsroot/mutt/sendlib.c,v
retrieving revision 2.17
diff -u -u -r2.17 sendlib.c
--- sendlib.c   1999/03/03 19:58:53 2.17
+++ sendlib.c   1999/03/15 15:12:41
@@ -1821,9 +1821,13 @@
 if ((f = safe_fopen (tempfile, "w")) != NULL)
 {
   const char *fqdn;
-
+  int ch_flags = CH_XMIT | CH_NONEWLINE;
+  
+  if (!option (OPTBOUNCEDELIVERED))
+   ch_flags |= CH_WEED_DELIVERED;
+  
   fseek (msg->fp, h->offset, 0);
-  mutt_copy_header (msg->fp, h, f, CH_XMIT | CH_NONEWLINE, NULL);
+  mutt_copy_header (msg->fp, h, f, ch_flags, NULL);
   fprintf (f, "Resent-From: %s", NONULL(Username));
   if((fqdn = mutt_fqdn(1)))
fprintf (f, "@%s", fqdn);
Index: doc/manual.sgml.in
===
RCS file: /home/roessler/cvsroot/mutt/doc/manual.sgml.in,v
retrieving revision 1.26
diff -u -u -r1.26 manual.sgml.in
--- manual.sgml.in  1999/02/26 15:42:07 1.26
+++ manual.sgml.in  1999/03/15 15:13:36
@@ -2608,6 +2608,15 @@
 message notifying you of new mail.  This is independent of the
 setting of the  variable.
 
+bounce_delivered
+
+Type boolean
+Default: set
+
+When this variable is set, mutt will include Delivered-To headers
+when bouncing messages.  Postfix users may wish to unset this
+variable.
+
 charset
 
 Type: string



Suggestion Re: Threads

1999-08-20 Thread Fairlight

Just a quick comment/question re: threads in mutt

I'm rather a bit used to slrn, I guess, but I noticed after going through
the help screen 5 times that you can collapse a thread, or collapse ALL
threads, but there is no "expand-all-threads" or "expand-thread" short of
going to each thread and opening the first message present.  Even then, you
wouldn't necessarily know it was a thread unless you had "New" messages
under the thread, not yet unread (I noted the "n" in the status fields for
messages with new messages in the subthreads).

Is there any plan to impliment an "uncollapse" feature, or at the very
least make it obvious that a message represents a collapsed thread and not
just a single message even if they've all been read?

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



Re: Suggestion Re: Threads

1999-08-20 Thread Jeremy Blosser

Fairlight [[EMAIL PROTECTED]] wrote:
> I'm rather a bit used to slrn, I guess, but I noticed after going through
> the help screen 5 times that you can collapse a thread, or collapse ALL
> threads, but there is no "expand-all-threads" or "expand-thread" short of

collapse-all and collapse-thread are actually toggles -- the names are
sort of misnomers.

> going to each thread and opening the first message present.  Even then, you
> wouldn't necessarily know it was a thread unless you had "New" messages
> under the thread, not yet unread (I noted the "n" in the status fields for
> messages with new messages in the subthreads).

You can use %M in the index_format to show the number of messages in a
collpased thread.  You can use something like %?M?+& to get just a + sign
in your index listing for collapsed threads.  See the help for index_format
for more info.

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-+-+--
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

 PGP signature


Re: Suggestion Re: Threads

1999-08-20 Thread Fairlight

On Fri, Aug 20, 1999 at 03:56:16AM -0500, Jeremy Blosser wrote:
> Fairlight [[EMAIL PROTECTED]] wrote:
> > I'm rather a bit used to slrn, I guess, but I noticed after going through
> > the help screen 5 times that you can collapse a thread, or collapse ALL
> > threads, but there is no "expand-all-threads" or "expand-thread" short of
> 
> collapse-all and collapse-thread are actually toggles -- the names are
> sort of misnomers.

You know, after I sent that, I wondered if, like slrn, they might be
toggles, but didn't have any mail left to check with, having just read it
all, and also figured the help screen didn't mention toggle, so just as
well to have asked.

I'd just say change the help screen, then?  :)

> 
> > going to each thread and opening the first message present.  Even then, you
> > wouldn't necessarily know it was a thread unless you had "New" messages
> > under the thread, not yet unread (I noted the "n" in the status fields for
> > messages with new messages in the subthreads).
> 
> You can use %M in the index_format to show the number of messages in a
> collpased thread.  You can use something like %?M?+& to get just a + sign
> in your index listing for collapsed threads.  See the help for index_format
> for more info.

Having just gotten into it a week ago, I'm reluctant to twiddle with that
much of its formatting that quickly, but I'll retain this for when I feel
more comfy with it.  I'm still getting used to "native mode"...ie., default
configuration.  Thanks for the tip...I'll look it up now, and play later.
:)

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



Re: Suggestion Re: Threads

1999-08-20 Thread Jeremy Blosser

Fairlight [[EMAIL PROTECTED]] wrote:
> On Fri, Aug 20, 1999 at 03:56:16AM -0500, Jeremy Blosser wrote:
> > collapse-all and collapse-thread are actually toggles -- the names are
> > sort of misnomers.
> 
> You know, after I sent that, I wondered if, like slrn, they might be
> toggles, but didn't have any mail left to check with, having just read it
> all, and also figured the help screen didn't mention toggle, so just as
> well to have asked.
> 
> I'd just say change the help screen, then?  :)

If I use '?' to access the keybindings screen, I get:

V   collapse-allcollapse/uncollapse all threads
v   collapse-thread collapse/uncollapse current thread

Do you see something else?

> > You can use %M in the index_format to show the number of messages in a
> > collpased thread.  You can use something like %?M?+& to get just a + sign
> > in your index listing for collapsed threads.  See the help for index_format
> > for more info.
> 
> Having just gotten into it a week ago, I'm reluctant to twiddle with that
> much of its formatting that quickly, but I'll retain this for when I feel
> more comfy with it.  I'm still getting used to "native mode"...ie., default
> configuration.  Thanks for the tip...I'll look it up now, and play later.

With the default configuration you can also tell if it's a thread because
the index numbers of the messages skip the hidden ones, eg:

1
2
5
6
7
10
etc.

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-+-+--
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

 PGP signature


Re: Suggestion Re: Threads

1999-08-20 Thread Fairlight

On Fri, Aug 20, 1999 at 04:40:27AM -0500, Jeremy Blosser wrote:
> V   collapse-allcollapse/uncollapse all threads
> v   collapse-thread collapse/uncollapse current thread

No, actually now that I look at it again, I see uncollapse.  Problem was, I
was looking for a hook name in column 2 instead of at the long definitions.
As they say (which I hate), "my bad"...  I prefer, "I am in error," having
been taught by HAL 9000 for much of my life.  :)

> Do you see something else?

No, I'm just braindead? :)

> With the default configuration you can also tell if it's a thread because
> the index numbers of the messages skip the hidden ones, eg:

True enough, but too subtle.  I took you up on your advice on the %M hack
and I had (as I've sent you in private) problems with the %?M?+& syntax,
which left me with an empty index, collapsed OR expanded.  I prefixed my
index_format with:  %?M?[%M]? ...and it seems to work nicely.  I'd like
a small explanation as to the syntax...I was guessing at functionality,
since man 3 printf didn't have ?xxx?xxx& or ? syntax...  Hasn't broken
anything, and works like I figured it would by trial & error.

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



Re: Suggestion Re: Threads

1999-08-20 Thread Jeremy Blosser

Jeremy Blosser [[EMAIL PROTECTED]] wrote:
> > > You can use %M in the index_format to show the number of messages in a
> > > collpased thread.  You can use something like %?M?+& to get just a + sign
> > > in your index listing for collapsed threads.  See the help for index_format
> > > for more info.

That should have been ?M?+& ?

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-+-+--
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

 PGP signature


Re: Suggestion Re: Threads

1999-08-20 Thread Fairlight

On Fri, Aug 20, 1999 at 05:09:51AM -0500, Jeremy Blosser wrote:
> Jeremy Blosser [[EMAIL PROTECTED]] wrote:
> > > > You can use %M in the index_format to show the number of messages in a
> > > > collpased thread.  You can use something like %?M?+& to get just a + sign
> > > > in your index listing for collapsed threads.  See the help for index_format
> > > > for more info.
> 
> That should have been ?M?+& ?

What's the "& " for?

m->
-- 
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



Re: Suggestion Re: Threads

1999-08-20 Thread Jeremy Blosser

Fairlight [[EMAIL PROTECTED]] wrote:
> On Fri, Aug 20, 1999 at 05:09:51AM -0500, Jeremy Blosser wrote:
> > Jeremy Blosser [[EMAIL PROTECTED]] wrote:
> > > > > You can use %M in the index_format to show the number of messages in a
> > > > > collpased thread.  You can use something like %?M?+& to get just a + sign
> > > > > in your index listing for collapsed threads.  See the help for index_format
> > > > > for more info.
> > 
> > That should have been ?M?+& ?
> 
> What's the "& " for?

ARGH.  It really should have been %?M?+& ?

% starts the sequence
? starts the 'if'
M is the regular % token to use for the condition
? prefaces the non-zero part
+ is what to print if the condition (%M) is non-zero
& prefaces the zero part
  (space) is what to print if the condition is zero
? ends the sequence

Without the "& " part, it doesn't leave a space if it doesn't print the +,
which makes the alignment of the columns get off.

See the status_format manual entry for more explanation and examples.

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-+-+--
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

 PGP signature


Re: Suggestion Re: Threads

1999-08-20 Thread Fairlight

On Fri, Aug 20, 1999 at 05:33:15AM -0500, Jeremy Blosser wrote:
> ARGH.  It really should have been %?M?+& ?
> % starts the sequence
> ? starts the 'if'
> M is the regular % token to use for the condition
> ? prefaces the non-zero part
> + is what to print if the condition (%M) is non-zero
> & prefaces the zero part
>   (space) is what to print if the condition is zero
> ? ends the sequence
> 
> Without the "& " part, it doesn't leave a space if it doesn't print the +,
> which makes the alignment of the columns get off.

Ahhh...and I had been using my original trial-and-error attempt without "&"
so yes, the columns shifted, although ALL of them shifted, at least all in
the thread...dunno if it would shift the entire mailbox if you had more
than one thread.

I finally settled on a prefix to index_format of:  "%?M?[%2M]&?"
...and am QUITE happy with it.  Dang, you guys have a lot of great
functionality in this.  I'm sufficiently impressed!

Thanks for the time and effort, esp. since I keep looking at the wrong docs or
wrong spots in the docs.  I'll consult both the manual AND the help screen
from now on.  :)

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



set from="addy" ?

1999-08-20 Thread r

Hello,

How do I set a certain 'from' address? I seen set from="addy" example in one of 
.muttrc's on mutt.org but when I put that in, mutt complains about this option even 
though I installed the latest mutt.. what's up with that? :/

-- 
- Andrei



e-mail daemon timezones

1999-08-20 Thread Jeffrey L. Taylor

How do I tell qmail (or maybe it's fetchmail) what time zone I am in?
My hardware clock is on UTC (clock -au is run a boot time).  The date
command reports the correct time zone.  This is on my laptop, so UTC
seems the best choice for the hardware clock.  My ISP is in Texas
(CDT).  Some part of my system, according to the e-mail headers is
using UTC, some EDT.  I've cut and pasted the first part of the
headers.  I guess fetchmail is using EDT, qmail is using UTC, I am in
PDT at the moment.

TIA,
   Jeff



Return-Path: <[EMAIL PROTECTED]>
Delivered-To: [EMAIL PROTECTED]
Received: (qmail 476 invoked by uid 1000); 19 Aug 1999 19:35:49 -
Received: from pop.texas.net
by localhost with POP3 (fetchmail-5.0.5)
for jeff@localhost (single-drop); Thu, 19 Aug 1999 15:35:48 -0400 (EDT)
Received: from ns.gbnet.net (ns.gbnet.net [194.70.126.10])
  by mw5.texas.net (2.4/2.4) with SMTP
  id MAA12004 for <[EMAIL PROTECTED]>; Thu, 19 Aug 1999 12:39:06 -0500 (CDT)
Received: (qmail 4942 invoked by uid 610); 19 Aug 1999 17:36:57 -
Received: (qmail 3886 invoked from network); 19 Aug 1999 17:33:12 -
Received: from zero.sector13.org ([EMAIL PROTECTED])
  by ns.gbnet.net with SMTP; 19 Aug 1999 17:33:12 -
Received: (qmail 27352 invoked by uid 2003); 19 Aug 1999 17:33:36 -



Re: e-mail daemon timezones

1999-08-20 Thread Lindsay Haisley

Thus spake Jeffrey L. Taylor on Thu, Aug 19, 1999 at 07:50:40PM CDT
> How do I tell qmail (or maybe it's fetchmail) what time zone I am in?
> My hardware clock is on UTC (clock -au is run a boot time).  The date
> command reports the correct time zone.  This is on my laptop, so UTC
> seems the best choice for the hardware clock.  My ISP is in Texas
> (CDT).  Some part of my system, according to the e-mail headers is
> using UTC, some EDT.  I've cut and pasted the first part of the
> headers.  I guess fetchmail is using EDT, qmail is using UTC, I am in
> PDT at the moment.

Qmail always uses UTC.  It's hard coded in.

-- 
Lindsay Haisley   | "Everything works| PGP public key
FMP Computer Services |   if you let it" |  available at
[EMAIL PROTECTED]|(The Roadie)  | 
http://www.fmp.com|  |



Re: set from="addy" ?

1999-08-20 Thread Ralf Hildebrandt

On Thu, Aug 19, 1999 at 08:37:18PM -0500, [EMAIL PROTECTED] wrote:
> Hello,
> 
> How do I set a certain 'from' address? I seen set from="addy"
> example in one of .muttrc's on mutt.org but when I put that in, mutt
> complains about this option even though I installed the latest
> mutt.. what's up with that? :/ 

my_hdr From: Ralf Hildebrandt <[EMAIL PROTECTED]>

-- 
Ralf Hildebrandt <[EMAIL PROTECTED]> www.stahl.bau.tu-bs.de/~hildeb
The doctrine of human equality reposes on this: that there is no man
really clever who has not found that he is stupid.


 PGP signature


Re: bounce and delivered-to line

1999-08-20 Thread Vincent Lefevre

On Fri, Aug 20, 1999 at 04:40:40 +0300, Mikko Hänninen wrote:
> I'm not sure what is the "right way" to solve your problem.  Both
> mutt and qmail are working as they have been designed to do.  You
> might want to ask for suggestions on the qmail list, as this is more
> of a qmail than mutt problem (in a way).

It is not a qmail problem at all; qmail behaves correctly.

> Maybe a quick hack would be best here, like writing a script that
> would first remove the Delivered-To header and then remail it
> manually (eg. "grep -v ^Delivered-To:" piped to qmail-inject with

Well, grep isn't OK, as a Delivered-To: line may also appear in the body,
and it must not be removed. And I would have to change the $sendmail
variable to call the script and pass it to sendmail (we use sendmail
here, not qmail), not only for bounce. I don't like this. But as Mutt
now has a $bounce_delivered variable, I can use it...

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - PhD student in Computer Science
Web:  or  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, Faits divers insolites, etc.



Re: "feature patches"

1999-08-20 Thread David Thorburn-Gundlach

...and then Ken W said...
% 
% Will you be making these patches available?  I was curious was
% patch-0.95.3.hb.save_alias.1 is.

I have whipped up a quick little page containing all of the patches I
use, as well as a pre-patched version of mutt.  It is 

http://www.bigfoot.com/~davidtg/Mutt/

and I hope it won't get too out of date :-)  It's not meant to compare
with the other mutt pages out there, much less the official ones, but
I do have some patches of which other folks seem to be unaware.


% 
% -Ken


:-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


Colouring of email addresses in headers

1999-08-20 Thread Alisdair McDiarmid

I use vim and mutt together (as it should be :) and I'm trying to
configure them to both have the same syntax colouring display.

I like vim's standard colours for email mode - yellow for all
headers except email addresses and the Subject header, which are
blue. However, if I use:

color header brightblue black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+

in my muttrc file, the whole header line is coloured blue, when
all I want coloured is the email address.

Mutt manages the email addresses in the body of the text
perfectly: colouring only the text fitting the above regexp. Is
there a way of making this work for headers?
-- 
alisdair mcdiarmid[EMAIL PROTECTED]
[monkey say what monkey do   rather be dead than cool]



Re: Colouring of email addresses in headers

1999-08-20 Thread Fairlight

On Fri, Aug 20, 1999 at 12:33:37AM +0100, Alisdair McDiarmid wrote:
> I use vim and mutt together (as it should be :) and I'm trying to
> configure them to both have the same syntax colouring display.
> 
> I like vim's standard colours for email mode - yellow for all
> headers except email addresses and the Subject header, which are
> blue. However, if I use:

Question for ya first...how do you get vim's "standard colours for email
mode" ...I guess how do you get vim's email mode?  :)

> color header brightblue black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
> in my muttrc file, the whole header line is coloured blue, when
> all I want coloured is the email address.

Hmmm...although I'd think your regexp would work fine, have you tried:
 color header brightblue black <.*@.*>  
???  :)

It would highlight the braces as well, but I'm not the king of regexp's so
maybe there's a way to "sed" out the offending <>'s from that particular
regexp if it's a problem.

Or, if you wanted the WHOLE address, including the text part, you could do:
" .*>"  ...although that leaves the leading space in there as well.  sed
would be so handy in these cases.

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



[0.95.7i bug] reply

1999-08-20 Thread Vincent Lefevre

When I do a reply with Mutt 0.95.7i, if the subject starts with "Re: t",
the "t" is removed from the subject.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - PhD student in Computer Science
Web:  or  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, Faits divers insolites, etc.



Opinions on a mail filter?

1999-08-20 Thread Mark E. Drummond

I have the following setup. Currently my mail is spooled on my mail hub
and I access it using IMAP. I am running qmail locally with delivery to
my ~/Maildir/. If I turn on mail fowarding on my mailhub to send mail to
my local machine (which is the goal here) all my mail gets stuck in
~/Maildir/. No problem there except that I am on a "few" mailing lists
and would like to filter incoming mail ala procmail.

I would like to change my setup a bit so that I have say ~/Mail/ which
would contain Maildir style mailboxes under it like so:

~/Mail/inbox
~/Mail/mutt
~/Mail/qmail

etc etc. Each of those subdirs would be a Maildir style mailbox created
with makemaildir.

So everything is set up except for the mail filter and I am wondering
which I should use. I have some experience with procmail but have not
managed to get it to work with qmail. Is there a filter that I can stick
in the pipe that will deliver to Maildir style folders?

Mark.

begin:vcard 
n:Drummond;Mark
tel;fax:(613) 542-8129
tel;home:(613) 384-4068
tel;work:(613) 541-6000 x 6060
x-mozilla-html:FALSE
url:signals.rmc.ca
org:Royal Military College of Canada;Computing Services
adr:;;4475 Bath Road;Amherstview;Ontario;K7N 1A3;CANADA
version:2.1
email;internet:[EMAIL PROTECTED]
title:UNIX System Administrator
x-mozilla-cpt:;31488
fn:Mark Drummond
end:vcard



Re: [0.95.7i bug] reply

1999-08-20 Thread Vincent Lefevre

On Fri, Aug 20, 1999 at 17:09:14 +0200, Vincent Lefevre wrote:
> When I do a reply with Mutt 0.95.7i, if the subject starts with "Re: t",
> the "t" is removed from the subject.

Finally no, this seems to be due to a change in Mutt's parser in recent
versions (there was no problem in Mutt 0.93). I've changed

set reply_regexp='^[Rr][Ee]:[ \t]+'

to

set reply_regexp="^[Rr][Ee]:[ \t]+"

and it is now OK.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - PhD student in Computer Science
Web:  or  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, Faits divers insolites, etc.



Re: [0.95.7i bug] reply

1999-08-20 Thread Fairlight

On Fri, Aug 20, 1999 at 05:09:14PM +0200, Vincent Lefevre wrote:
> When I do a reply with Mutt 0.95.7i, if the subject starts with "Re: t",
> the "t" is removed from the subject.

Out of curiosity, have you tried a test condition to yourself that meets
those criterion and checked the actual headers that come back?  Or is this
just from what you see on-screen?

I'm wondering if it's a curses/SLang bug...perhaps ^L would clarify as
well?  It seems more likely to be a screen-control bug than an actual data
corruption, especially depending on which OS you're running it on.

Just some thoughts...

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



saving portions of a digest to a file?

1999-08-20 Thread Ken W

In the mutt pager, sometimes when reading a digest I would like to
save one message from it to a file.  Is there any easy way to do this?

Thanks.


-Ken

-- 
[EMAIL PROTECTED]AIM: ScopusFest



Re: Opinions on a mail filter?

1999-08-20 Thread Fairlight

On Fri, Aug 20, 1999 at 11:10:38AM -0400, Mark E. Drummond wrote:
> I would like to change my setup a bit so that I have say ~/Mail/ which
> would contain Maildir style mailboxes under it like so:
>   ~/Mail/inbox
>   ~/Mail/mutt
>   ~/Mail/qmail
> So everything is set up except for the mail filter and I am wondering
> which I should use. I have some experience with procmail but have not
> managed to get it to work with qmail. Is there a filter that I can stick
> in the pipe that will deliver to Maildir style folders?

Maildir is the one where each message is in a separate unique file inside
the "directory" which is the folder, no?

Should be easy with procmail.  You just need to do a variable substitution
from an execution at the top of the .procmailrc to a small script of your
choice that assembles a random filename from the PID ($$ in most shells)
and the mm-dd-hh-mm of the `date` command and stick them together like:
$$-mm-dd-hh-mm  

So say you have a script "maildirdate" in procmail's path somewhere, you'd
do:  fixedfile=`maildirdate`

Then when you save out to your mailing lists, you could use the variable as
the last part of the filename in your specific recipes:  
/home/mark/Mail/mutt/$fixedfile

I -think- that works the way you want it, maintaining procmail usage for
you.  :)  I glanced over the procmailrc man page quickly and it looks like
it's acceptable.

(another) 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



Re: saving portions of a digest to a file?

1999-08-20 Thread Sven Guckes

* Ken W ([EMAIL PROTECTED]) [990820 15:48]:
> In the mutt pager, sometimes when reading a digest I would like to
> save one message from it to a file.  Is there any easy way to do this?

Mutt does not have support for splitting
digests and handling messages within.
I might be missing a patch, though..  ;-)

I remember some scripts which split up digests...  search the web!

Sven

-- 
Sven [EMAIL PROTECTED] using mutt-0.96.4i  [990817]  WOOF!,,
MUTT http://www.mutt.org/  news:comp.mail.mutt   (__/'.
MUTT http://www.math.fu-berlin.de/~guckes/mutt/  /| |\
MUTT MUTT - *the* mailer for UNIX with color, threading, IMAP+MIME+PGP+POP



Re: Colouring of email addresses in headers

1999-08-20 Thread Sven Guckes

* Alisdair McDiarmid ([EMAIL PROTECTED]) [990820 13:40]:
> I use vim and mutt together (as it should be :) and I'm trying to
> configure them to both have the same syntax colouring display.  [...]
> color header brightblue black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
> in my muttrc file, the whole header line is coloured blue,
> when all I want coloured is the email address.

Mutt's "color header" colorizes complete lines only.  :-/

Sven

-- 
Sven [EMAIL PROTECTED]| MUTT - a UNIX mailer with support for
MUTT WOOF!,,  Usenet: comp.mail.mutt | color+threading, IMAP,MIME+PGP+POP
MUTT   (__/'. http://www.mutt.org/   | Tips on using the editor VIM:
MUTT   /| |\  http://www.math.fu-berlin.de/~guckes/mutt/and.vim.html



Re: Opinions on a mail filter?

1999-08-20 Thread David Thorburn-Gundlach

Mar & Mark --

...and then Fairlight said...
% On Fri, Aug 20, 1999 at 11:10:38AM -0400, Mark E. Drummond wrote:
% > I would like to change my setup a bit so that I have say ~/Mail/ which
% > would contain Maildir style mailboxes under it like so:
% > ~/Mail/inbox
% > ~/Mail/mutt
% > ~/Mail/qmail
% > So everything is set up except for the mail filter and I am wondering
% > which I should use. I have some experience with procmail but have not
% > managed to get it to work with qmail. Is there a filter that I can stick
% > in the pipe that will deliver to Maildir style folders?
% 
% Maildir is the one where each message is in a separate unique file inside
% the "directory" which is the folder, no?

I think so, too, but can't tell for sure.  Maybe I'm thinking of mh.


% 
% Should be easy with procmail.  You just need to do a variable substitution
% from an execution at the top of the .procmailrc to a small script of your
% choice that assembles a random filename from the PID ($$ in most shells)
% and the mm-dd-hh-mm of the `date` command and stick them together like:
% $$-mm-dd-hh-mm  

If I were going to do this, I'd probably put the $$ at the end so that
it would sort well :-)  But you don't even have to do that much...


% 
% So say you have a script "maildirdate" in procmail's path somewhere, you'd
% do:  fixedfile=`maildirdate`
% 
% Then when you save out to your mailing lists, you could use the variable as
% the last part of the filename in your specific recipes:  
% /home/mark/Mail/mutt/$fixedfile

Instead, just tell procmail to put it there; use a destination folder
that looks like

  /home/mark/Mail/mutt/.

to tell procmail to increment its counter and drop the new message in
place.


% 
% I -think- that works the way you want it, maintaining procmail usage for
% you.  :)  I glanced over the procmailrc man page quickly and it looks like
% it's acceptable.
% 
% (another) mark->


:-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: Colouring of email addresses in headers

1999-08-20 Thread Stephane ENTEN

On Fri, Aug 20, 1999 at 05:13:04PM +0200, Sven Guckes wrote:
 > * Alisdair McDiarmid ([EMAIL PROTECTED]) [990820 13:40]:
 > > I use vim and mutt together (as it should be :) and I'm trying to
 > > configure them to both have the same syntax colouring display.  [...]
 > > color header brightblue black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+
 > > in my muttrc file, the whole header line is coloured blue,
 > > when all I want coloured is the email address.
 > 
 > Mutt's "color header" colorizes complete lines only.  :-/
 > 

About that, I'd like to know if someone has a way to colorize the whole
line with a background.

I tried but the color only went under the text.

I think there's an ANSI code to fill the line till her end.

Anyone ? :)



Re: Opinions on a mail filter?

1999-08-20 Thread Fairlight

> If I were going to do this, I'd probably put the $$ at the end so that
> it would sort well :-)  But you don't even have to do that much...

Point taken...although I figured that mutt would sort by headers, not
filename...

> Instead, just tell procmail to put it there; use a destination folder
> that looks like
> 
>   /home/mark/Mail/mutt/.
> 
> to tell procmail to increment its counter and drop the new message in
> place.

Gah!  Foiled again!  I remember that from like the first time I read the
.procmailrc page AFTER you mention it.  Another example of an
overcomplicated answer to an undercomplicated problem.  :)

I'll try and remember that one for future reference...

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



Re: saving portions of a digest to a file?

1999-08-20 Thread Ken W

On Fri, Aug 20, 1999, Sven Guckes wrote:
> Mutt does not have support for splitting
> digests and handling messages within.
> I might be missing a patch, though..  ;-)
> 
> I remember some scripts which split up digests...  search the web!

Thanks, Sven, but I was talking more about a way to say highlight
block of text (even if you have to scroll a bit) and then write the
block to a text file.  The only way I have been able to do this so far
is to edit the message, as if I were going to resend it, and in vim
delete everything but the message I wanted to save, and then write it
to a file, and exit vim and quit from the message.  I have wanted to
do this with individual messages as well, not just digests.  If mutt
cannot do this, I think that it would be a great function.



-Ken

-- 
[EMAIL PROTECTED]AIM: ScopusFest



Re: Colouring of email addresses in headers

1999-08-20 Thread Fairlight

> About that, I'd like to know if someone has a way to colorize the whole
> line with a background.

Sounds like the ncurses way of doing things.  :(  I tried colours with a
chat client once, and it performed the same way.  The answer turned out to
be having to draw the entire region with spaces in the colour you wanted
FIRST, and THEN go back and redraw what you wanted in other colours.

Needless to say, it did little to show off the screen optimization of
curses.  :

> I think there's an ANSI code to fill the line till her end.

I haven't heard of one, but that means little.  :)

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



Re: saving portions of a digest to a file? -> pipe to vim

1999-08-20 Thread Sven Guckes

* Ken W ([EMAIL PROTECTED]) [990820 16:47]:
> .. I was talking more about a way to say highlight block of text (even
> if you have to scroll a bit) and then write the block to a text file.
> The only way I have been able to do this so far is to edit the message,
> as if I were going to resend it, and in vim delete everything but the
> message I wanted to save, and then write it to a file, and exit vim
> and quit from the message.

Overkill!

Just pipe the message to "vim -" and select the text visually
(eg the current paragraph with "vip") and then ":w snippet".
Then exit with ":q".

Much quicker, I think.  :-)

> I have wanted to do this with individual messages as well, not just
> digests.
> If mutt cannot do this, I think that it would be a great function.

Sure - but then again, mutt should not become an editor.
This said, vim should not become a mailer, either.
If you want both in the same program, then, well, use Emacs!

Sven



sent-items: To: default?

1999-08-20 Thread Attila Csosz

How could I see the To: field instead of From: field in my sent-items folder?

Thanks
 Attila

-- 
---
- Debian 2.1 Linux  / 2.2.9 / qmail   -
- Mail: [EMAIL PROTECTED]-



Re: saving portions of a digest to a file? -> pipe to vim

1999-08-20 Thread Ken W

On Fri, Aug 20, 1999, Sven Guckes wrote:
> Overkill!
> 
> Just pipe the message to "vim -" and select the text visually
> (eg the current paragraph with "vip") and then ":w snippet".
> Then exit with ":q".
> 
> Much quicker, I think.  :-)

Okay, that will work. :)  Thanks, Sven!


-Ken

-- 
[EMAIL PROTECTED]AIM: ScopusFest



Re: color definitions using the "current" color

1999-08-20 Thread Sven Guckes

* Stephane ENTEN ([EMAIL PROTECTED]) [990820 16:31]:
>  > Mutt's "color header" colorizes complete lines only.  :-/
> About that, I'd like to know if someone has a
> way to colorize the whole line with a background.

That reminds me:
Coloring addresses in quoted text do have the background color of the
quoted text - even when you define "default" as the background color.
I suppose the "default" simply refers to default color of the *terminal*.

I think we need a description that can make use of the "current color".

Here's an example of what I'd like to use:

color quoted white blue
color body   green current "(ftp|http):[^ ]*"

And what I'd like to see:

> quoted text with a URL http://www.guckes.net within
_*___

Now,the text above the underscores is displayed in "white on blue"
whereas the text above the asterisks   is displayed in "green on blue".

Sounds like a simple patch...  anyone?

Sven



Re: urlview patch

1999-08-20 Thread Pete Toscano



On Fri, 20 Aug 1999, Brian Salter-Duke wrote:

> On Thu, Aug 19, 1999 at 09:57:20AM -0400, Pete Toscano wrote:
> > in order to get it to play nicely with ncftp.  it seems that, since i have
> > ncftp on my machine, url_view prefers to use (and i do too for that matter)
> > ncftp.  well -- at least with the version of ncftp i have (3.0beta18 from 
> > redhat 6.0 and 3.0beta19 from the redhat contrib archive) -- ncftp doesn't
> > handle gets with urls (ex. ftp.site.org:/pub/wherever/whatever.tgz), it just
> > suggests that you use ncftpget.  because of this, i beat on url_handler.sh a
> > little bit and the attached patch is what fell out.  this is a very simple
> > patch, but it seems to work for me whenever i use urlview to handle ftp urls.
> > all it does is look for a trailing '/' in the url and if there is one, it'll
> > fire up ncftp with the url, otherwise, it'll fire up ncftp get with the
> > url.  i'm sure it's not handling all possible cases, but, like i said, it
> > works for me and i find it useful;  i hope others will too.
> > 
> > pete
> 
> The problem with this fix is that not all URL's that you expect to
> have a trailing / may actually have one.
> 
> I wrote a small modification to urlview that prints out a message about
> this before the menu. You can then edit the URL after selecting it
> to add the / id required. My url_handler.sh does much the same as Pete's
> except actually checking for ncftp. It amy handle some other things
> however. Take a look at:-
> 
> http://lacebark.ntu.edu.au/mutt.html 
> 
> for my solution. Perhaps we need to merge together the various suggestions
> and have a better version of url_handler for the mutt-1.0 distribution.

i looked through your pages and i think your way of catching and checking
for the '/' is better, so i took your url_handler.sh, added in the ncftp/
ncftpget checking, added lynx as a possible http/web viewer for those running 
x, but who don't have netscape loaded, and i removed your "local-isms", 
such as using realmutt instead of mutt.  i also made it check /usr/local/bin 
in addition to /usr/bin for ncftp, ncftpget, and mutt.

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...

. my ftp client is very stupid; it only understands hostnames on the 
command line, so i have ftp called only with the hostname is it can't
find ncftp or ncftpget.  is this a safe assumption for other "ftp" clients?

. with my netscape (4.61 for linux), 
"netscape -remote 'openURL(http://www.mutt.org)'"does not work.  netscape is 
started up and that's it.  i know there's a way to get this working, but i 
haven't been able to find an answer.  it'd like to get this working.

please let me know if this works for you.  do you know who we should submit 
patches for urlview to?

ciao,
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 Fri Aug 20 10:07:10 1999
+++ url_handler.sh  Fri Aug 20 13:44:10 1999
@@ -6,6 +6,10 @@
 # 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
@@ -13,11 +17,19 @@
 
 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 $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
;;
 
@@ -25,12 +37,12 @@
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
+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;'`

Re: sent-items: To: default?

1999-08-20 Thread David Thorburn-Gundlach

Atilla --

...and then Attila Csosz said...
% 
% How could I see the To: field instead of From: field in my sent-items folder?

See section 6.3.58 of the manualfor more details, but you probably
want something like %a (address) or %F (author name) or %n (author's
real name) or %u (user name) in your index_format variable.


% 
% Thanks
%  Attila


:-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: urlview patch

1999-08-20 Thread Pete Toscano



On Fri, 20 Aug 1999, Pete Toscano wrote:

> . with my netscape (4.61 for linux), 
> "netscape -remote 'openURL(http://www.mutt.org)'"does not work.  netscape is 
> started up and that's it.  i know there's a way to get this working, but i 
> haven't been able to find an answer.  it'd like to get this working.

argh.  nevermind this part.  my netscape startup script was messed up.

pete

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

 PGP signature


Re: sent-items: To: default?

1999-08-20 Thread Ken W

This reminds me of a question I hd posted to the list but never got a
response to.  I wanted to do this in the Postponed menu, the one you
get when hitting 'P' (at least that is what I have it mapped to) and
you have more than one postponed message.  Anyone?



-Ken

-- 
[EMAIL PROTECTED]AIM: ScopusFest



building 0.97i on Solaris 2.6

1999-08-20 Thread David Thorburn-Gundlach

Hi, folks --

I'm trying ot build 0.97i on my Solaris 2.6 box.  I found that I had
to go and get ncurses, so I did that.  Now make reports a problem with
getopts:

...
gcc -DSHAREDIR=\"/usr/local/share/mutt\" -DSYSCONFDIR=\"/usr/local/etc\"   
-DHAVE_CONFIG_H=1 -I. -I/usr/local/include  -I./intl  -DHAVE_CONFIG_H=1 -Wall 
-pedantic -g -O2 -c main.c
main.c:36: getopt.h: No such file or directory
*** Error code 1
make: Fatal error: Command failed for target `main.o'
Current working directory /home/thorbd/Sources/mutt/mutt-0.95.7
*** Error code 1
make: Fatal error: Command failed for target `all-recursive'
Current working directory /home/thorbd/Sources/mutt/mutt-0.95.7
*** Error code 1
make: Fatal error: Command failed for target `all-recursive-am'

What am I missing here?  Isn't getopts standard, even on Solaris?  I
checked my man pages, and I have /usr/bin/getopts and the library call
getopt(); could I really need getopts() instead?


TIA & HANW

:-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


Colours in wterm and HTML mail

1999-08-20 Thread Mark E. Drummond

1. I get lot's of nice colours when I run mutt outside of X, but
in a wterm I get nothing. I am sure this is basic but I canna find
the answer!

2. I know I can get mutt to pop open navigator or lynx on URLs, but
can I get it, for example, to open a piece of mail that contains
an html form? I run a Netscape Messaging Server and (unfortunately)
it handles bounces and failures by sending me html forms by mail
asking me what to do.

-- 
___
Mark E Drummond[EMAIL PROTECTED]

Kingston Linux Users Group  http://signals.rmc.ca/klug/
KLUG Mailing List   mailto: [EMAIL PROTECTED]

 PGP signature


Re: building 0.97i on Solaris 2.6

1999-08-20 Thread Lars Hecking

David Thorburn-Gundlach writes:
> Hi, folks --
> 
> I'm trying ot build 0.97i on my Solaris 2.6 box.  I found that I had

 I assume you mean 0.95.7?

> to go and get ncurses, so I did that.  Now make reports a problem with
> getopts:
> 
> ...
> gcc -DSHAREDIR=\"/usr/local/share/mutt\" -DSYSCONFDIR=\"/usr/local/etc\"   
>-DHAVE_CONFIG_H=1 -I. -I/usr/local/include  -I./intl  -DHAVE_CONFIG_H=1 -Wall 
>-pedantic -g -O2 -c main.c
> main.c:36: getopt.h: No such file or directory

 Is HAVE_GETOPT_H defined in config.h? The code in main.c ll. 36+ reads:

#ifdef HAVE_GETOPT_H
#include 
#endif

 Meaning that  is only included if configure found it and defined
 HAVE_GETOPT_H. How can configure find a file that is not there? The 
 answer is most likely in config.log.

> What am I missing here?  Isn't getopts standard, even on Solaris?  I
> checked my man pages, and I have /usr/bin/getopts and the library call
> getopt(); could I really need getopts() instead?

 You are confusing different things here:

 - the getopts(1) utility, which has no relevance whatsoever for mutt
 - the getopt(3c) library function, which is available under Solaris



using LDAP

1999-08-20 Thread Dale Harris

I've got the LDAP stuff working, I believe.  I'm able to use Q to query for
for e-mail addresses.  That works great to just find someone and send them
a note.  But something that would be nice (especially when I'm feeling 
lazy and don't want to use X's string copying capability), is if we could
do a query from inside message generation.  For example, I get a note from
Fred that I want to forward on to Jane, it would be nice to just hit 
'f' to forward the note and then hit some key combination to do an LDAP
query to get Jane's e-mail address.  Is there anyway to do that now?  It
some ways it would be just like making LDAP an extension of our aliases, 
I could just type a couple of characters, hit  and it work search 
LDAP for that string, just like it does with the aliases file.

-- 
~
Dale Harris  <[EMAIL PROTECTED]>   GPG key: 372FBD57http://www.maybe.org/
  M.A.Y.B.E. = Maybe is an Altruistic Yet Bohemian Enigma



Re: using LDAP

1999-08-20 Thread Holger Eitzenberger

On Fri, Aug 20, 1999 at 01:32:09PM -0600, Dale Harris wrote:
> I've got the LDAP stuff working, I believe.  I'm able to use Q to query for
> for e-mail addresses.  That works great to just find someone and send them
> a note.  But something that would be nice (especially when I'm feeling 
> lazy and don't want to use X's string copying capability), is if we could
> do a query from inside message generation.  For example, I get a note from
> Fred that I want to forward on to Jane, it would be nice to just hit 
> 'f' to forward the note and then hit some key combination to do an LDAP
> query to get Jane's e-mail address.  Is there anyway to do that now?  It
> some ways it would be just like making LDAP an extension of our aliases, 
> I could just type a couple of characters, hit  and it work search 
> LDAP for that string, just like it does with the aliases file.

In the long run mutt should get some LDAP support.  I am doing some
LDAP right now (server stuff and some client programming {perl, c})
and i like the generic interface to lots and lots of directories.
But...  _please_ lets keep mutt as smart as possible.  No feature
bloat please!

  Holger

-- 
+ PGP || GnuPG key -> finger [EMAIL PROTECTED] +
+++ Debian/GNU Linux <[EMAIL PROTECTED]> +++ ICQ: 2882018 +++



Re: showing recipients in postponed folder -> index_format %F

1999-08-20 Thread Sven Guckes

* Ken W ([EMAIL PROTECTED]) [990820 18:34]:
> I wanted to do this in the Postponed menu, the one you get
> when hitting 'P' (at least that is what I have it mapped to)
> and you have more than one postponed message.  Anyone?

Use the field "%F" for this in your index_format.
Example: index_format="%4C %Z %[!%y%m%d] %-17.17F (%3l) %s"

> This reminds me of a question I hd posted
> to the list but never got a response to.

Well, Ken, "RTFM"!  ;-)

Sven



Re: using LDAP

1999-08-20 Thread Dale Harris

On Fri, Aug 20, 1999 at 09:48:18PM +0200, Holger Eitzenberger elucidated:
> 
> In the long run mutt should get some LDAP support.  I am doing some
> LDAP right now (server stuff and some client programming {perl, c})
> and i like the generic interface to lots and lots of directories.
> But...  _please_ lets keep mutt as smart as possible.  No feature
> bloat please!
> 
>   Holger


It would seem the decision on feature bloat was left a long, long time
ago.  Colors for example, if that ain't feature bloat, then I don't what is.
So I don't see how more could hurt.  Face it if you have two different 
commands for IMAP and POP, then you aren't being as frugal with features
as you could be.  Why can't I just use 'G' for both IMAP and POP?  Just
have to make the mbox variable a little more smart so you can specify if
you are going to a IMAP or POP server.  


~
Dale Harris  <[EMAIL PROTECTED]>   GPG key: 372FBD57http://www.maybe.org/
  M.A.Y.B.E. = Maybe is an Altruistic Yet Bohemian Enigma



Re: showing recipients in postponed folder -> index_format %F

1999-08-20 Thread Ken W

On Fri, Aug 20, 1999, Sven Guckes wrote:
> Use the field "%F" for this in your index_format.
> Example: index_format="%4C %Z %[!%y%m%d] %-17.17F (%3l) %s"

index_format?  I have been using hdr_format.  What I had in my muttrc
was the following:

folder-hook postponed 'set hdr_format="   %3C   %[%b %d]   %-20.20t (%3l)  %s"'

I have the same for sent and it works, but postponed kept my default.

> Well, Ken, "RTFM"!  ;-)

I did.  See above.


-Ken



Re: showing recipients in postponed folder -> index_format %F

1999-08-20 Thread Ken W

> folder-hook postponed 'set hdr_format="   %3C   %[%b %d]   %-20.20t (%3l)  %s"'
> 
> I have the same for sent and it works, but postponed kept my default.

Oh, I should mention this: =postponed display the format above.  As I
said initially, it is the postponed menu that comes up when I recall
the postponed messages, NOT if I change mailbox to =postponed.  these
are different menus.


-Ken

-- 
[EMAIL PROTECTED]AIM: ScopusFest



Re: using LDAP

1999-08-20 Thread Brendan Cully


- Original Message -
From: Dale Harris <[EMAIL PROTECTED]>
To: Holger Eitzenberger <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, August 20, 1999 4:06 PM
Subject: Re: using LDAP


> It would seem the decision on feature bloat was left a long, long time
> ago.  Colors for example, if that ain't feature bloat, then I don't what
is.
> So I don't see how more could hurt.  Face it if you have two different
> commands for IMAP and POP, then you aren't being as frugal with features
> as you could be.  Why can't I just use 'G' for both IMAP and POP?  Just
> have to make the mbox variable a little more smart so you can specify if
> you are going to a IMAP or POP server.

IMAP and POP don't have much in common beyond being related to mail and
networking. From Mutt's point of view, IMAP is a mailbox type. So 'G'
doesn't make any sense for IMAP. If you want mail fetched into your spool,
use POP.

-Brendan



Re: using LDAP

1999-08-20 Thread Holger Eitzenberger

On Fri, Aug 20, 1999 at 02:06:25PM -0600, Dale Harris wrote:
> It would seem the decision on feature bloat was left a long, long time

> ago.  Colors for example, if that ain't feature bloat, then I don't what is.
> So I don't see how more could hurt.  Face it if you have two different 
> commands for IMAP and POP, then you aren't being as frugal with features
> as you could be.  Why can't I just use 'G' for both IMAP and POP?  Just
> have to make the mbox variable a little more smart so you can specify if
> you are going to a IMAP or POP server.  

If it's 'G' or not, the main focuses for mutt are consistense and a
true 'minimalistic' view of it, that is, don't do anything that some
other standard utility does for you (e. g. spell check, editor, ...).


-- 
+ PGP || GnuPG key -> finger [EMAIL PROTECTED] +
  ++ Parsytec Computer AG <[EMAIL PROTECTED]> ++
+++ Debian/GNU Linux <[EMAIL PROTECTED]> +++ ICQ: 2882018 +++



Re: [0.95.7i bug] reply

1999-08-20 Thread David DeSimone

Vincent Lefevre <[EMAIL PROTECTED]> wrote:
>
> set reply_regexp='^[Rr][Ee]:[ \t]+'
>
> changed to
>
> set reply_regexp="^[Rr][Ee]:[ \t]+"

Yep, in the first case, the single-quotes prevent the "\t" from being
translated to a "tab" character, so the regexp is evaluated as if it had
a literal 't' character to look for.

Incidentally, your use of [Rr][Ee] is redundant, since Mutt forces all
lower-cased regexp's to match in a case-insensitive manner.  Your regexp
could be simplified to this:

set reply_regexp="^re:[ \t]+"

A warning here, since you are using "double quotes", that means that any
magic regexp characters that need quoting will require
double-backslashes, since Mutt is also parsing and removing them.  For
instance, a "\." character would not be recognized as a literal dot,
because the first pass of Mutt would remove the backslash, leaving
merely a ".", which matches any character.  Sigh.

That being said, I have found the following reply_regexp to work well
for me:

  set reply_regexp="^(((re(\\[[0-9]+\\])?|fwd):|\\[[a-z0-9-]+\\])[ \t]+)+"

It recognizes subjects like the following:

Subject: Re: [mutt-dev]  Fwd: Re[2]: [MUTT-LIST] Too many subject tags!

and generates replies with a subject like this:

Subject: Re: Too many subject tags!

-- 
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: using LDAP

1999-08-20 Thread Dale Harris

On Fri, Aug 20, 1999 at 04:59:59PM -0400, Brendan Cully elucidated:
> IMAP and POP don't have much in common beyond being related to mail and
> networking. From Mutt's point of view, IMAP is a mailbox type. So 'G'
> doesn't make any sense for IMAP. If you want mail fetched into your spool,
> use POP.
> 


Well, it might have been a bad example.  I wouldn't want to use either
POP or IMAP if I don't have to, and don't.

I'm just saying that mutt isn't minimalistic anymore, it already has several
handy features that could be considerred fluff.  Why not just add one 
more.


Dale



0.97.7i Possible "mailboxes" bug?

1999-08-20 Thread Fairlight

Hullo...

I've been wondering about something...  In my .muttrc, I have about 8
mailboxes lines (lots of procmailing).  The first is this:

mailboxes ! ~/folders/fc.mail.info ~/folders/fc.mail.fairlite

When I do the TAB thing in changing folders, my spool mailbox shows up,
etc.  When I'm actually IN another folder in mutt, and new mail arrives, I
actually get notified, and C will automatically show me my spool directory
already entered, I hit return, I'm there.

The PROBLEM...(I think) ...is that when I do a `mutt -Z` and there is mail
in BOTH my spool mailbox, and one of the other mailboxes, it does not go to
the spool mailbox.  It doesn't go there first, and it doesn't want to
automatically cycle there either.  Just the other mailboxes defined.  Never
the spool.  And only on startup with -Z apparently.  If I send myself mail
after it's started while I'm in another folder, I get notified of new mail
in the spool file and C will want to take me right there.

I would think since I have ! defined as the first mailbox, and that since
it shows up in the TAB listing of "mailboxes" implying that it's taken as
such, it should be the FIRST place it would look.

Bug?  Known issue?  Faulty reasoning?  Fixable?

TIA...

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



Re: Colouring of email addresses in headers

1999-08-20 Thread Liviu Daia

On 20 August 1999, Fairlight <[EMAIL PROTECTED]> wrote:
> > About that, I'd like to know if someone has a way to colorize the
> > whole line with a background.
>
> Sounds like the ncurses way of doing things. :( I tried colours with
> a chat client once, and it performed the same way.  The answer turned
> out to be having to draw the entire region with spaces in the colour
> you wanted FIRST, and THEN go back and redraw what you wanted in other
> colours.
[...]

You should take a look at bkgdset() sometimes.  The way it's used
in Mutt is a good start too.  Unfortunately this has nothing to do with
what the guy was asking for.

Regards,

Liviu Daia

-- 
Dr. Liviu Daia   e-mail:   [EMAIL PROTECTED]
Institute of Mathematics web page: http://www.imar.ro/~daia
of the Romanian Academy  PGP key:  http://www.imar.ro/~daia/daia.asc



Re: Colours in wterm and HTML mail

1999-08-20 Thread Jeremy Blosser

Mark E. Drummond [[EMAIL PROTECTED]] wrote:
> 1. I get lot's of nice colours when I run mutt outside of X, but
> in a wterm I get nothing. I am sure this is basic but I canna find
> the answer!

Try setting your TERM to xterm-color instead of just xterm, if that doesn't
work see the FAQ.

-- 
Jeremy Blosser   |   [EMAIL PROTECTED]   |   http://jblosser.firinn.org/
-+-+--
"If Microsoft can change and compete on quality, I've won." -- L. Torvalds

 PGP signature


ldap

1999-08-20 Thread Michael P. Soulier

Hey guys. I've been using mutt at home for a little while, and I just got
it to build at work. Downloading from the pop3 server should be no trouble, as I
do that now, but I have two questions. 

1. My local SMTP compliant mailboxes are in $HOME/nsmail. What's the
option to configure mutt to download my mail to say, $HOME/nsmail/Inbox?

2. We have an LDAP server to access the corporate directory. How do I
configure mutt to do LDAP lookups? ie. hostname, search string...

Thanks,

Mike

-- 
Michael P. Soulier
<[EMAIL PROTECTED]>



Backslashes in regexp (was: [0.95.7i bug] reply)

1999-08-20 Thread Vincent Lefevre

On Fri, Aug 20, 1999 at 16:13:54 -0500, David DeSimone wrote:
> A warning here, since you are using "double quotes", that means that any
> magic regexp characters that need quoting will require
> double-backslashes, since Mutt is also parsing and removing them.  For
> instance, a "\." character would not be recognized as a literal dot,
> because the first pass of Mutt would remove the backslash, leaving
> merely a ".", which matches any character.  Sigh.

BTW, could Mutt display a real warning in such cases?

Or is there a way to tell Mutt to parse the .muttrc and display
the regexp's it has found? It is sometimes difficult to know how
many backslashes are needed when a folder-hook contains a regexp.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - PhD student in Computer Science
Web:  or  - 100%
validated HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, Faits divers insolites, etc.



Re: using LDAP

1999-08-20 Thread Brandon Long

On 08/20/99 Dale Harris uttered the following other thing:
> I've got the LDAP stuff working, I believe.  I'm able to use Q to query for
> for e-mail addresses.  That works great to just find someone and send them
> a note.  But something that would be nice (especially when I'm feeling 
> lazy and don't want to use X's string copying capability), is if we could
> do a query from inside message generation.  For example, I get a note from
> Fred that I want to forward on to Jane, it would be nice to just hit 
> 'f' to forward the note and then hit some key combination to do an LDAP
> query to get Jane's e-mail address.  Is there anyway to do that now?  It
> some ways it would be just like making LDAP an extension of our aliases, 
> I could just type a couple of characters, hit  and it work search 
> LDAP for that string, just like it does with the aliases file.

If you look in the Functions section of the manual, under 'editor'
you see:
complete-query  ^T   complete address with query

That's control-T.

Brandon
-- 
 Brandon Long   "For some reason, the act of talking to Absolute  
 Fiction L Networks   Evil makes chocolate syrup drip from your pineal
 [EMAIL PROTECTED]Gland."  -- LeTeXan, "Today's Suck"   6/3/97
 http://www.fiction.net/blong/



Re: using LDAP

1999-08-20 Thread Dale Harris

On Fri, Aug 20, 1999 at 10:52:47PM -0700, Brandon Long elucidated:
> If you look in the Functions section of the manual, under 'editor'
> you see:
> complete-query^T   complete address with query
> 
> That's control-T.
> 
> Brandon


cool, I figured there was a command.  Yet another case of where I needed to
RTFM.  ;-)


Dale



Re: urlview patch

1999-08-20 Thread Brian Salter-Duke

On Fri, Aug 20, 1999 at 01:52:57PM -0400, Pete Toscano wrote:
> 
> i looked through your pages and i think your way of catching and checking
> for the '/' is better, so i took your url_handler.sh, added in the ncftp/
> ncftpget checking, added lynx as a possible http/web viewer for those running 
> x, but who don't have netscape loaded, and i removed your "local-isms", 
> such as using realmutt instead of mutt.  i also made it check /usr/local/bin 
> in addition to /usr/bin for ncftp, ncftpget, and mutt.
> 
> 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"!
 
> . my ftp client is very stupid; it only understands hostnames on the 
> command line, so i have ftp called only with the hostname is it can't
> find ncftp or ncftpget.  is this a safe assumption for other "ftp" clients?

I think so.
 
> . with my netscape (4.61 for linux), 
> "netscape -remote 'openURL(http://www.mutt.org)'"does not work.  netscape is 
> started up and that's it.  i know there's a way to get this working, but i 
> haven't been able to find an answer.  it'd like to get this working.

I noted the mail where you said this was fixed.
 
> 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 will add as attachments, the full url_handler.sh I finished up with
today and a patch which I think works off the original url_handler (or
rather what I know works off what I think is the original url_handler!).

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?

I would like to see urlview and url_handler in the contrib directory
of mutt. What do the developers think?

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

 url_handler.sh

1c1
< #!/bin/sh
---
> #!/usr/local/bin/bash
8a9,12
> # Modified by: Brian Salter-Duke <[EMAIL PROTECTED]>
> # Last edited: 19 June, 1999
> # Modified by: Pete Toscano <[EMAIL PROTECTED]>
> # Last edited: 20 Aug, 1999
13a18
> # Start with http://.., ftp://.. and mailto:xxx@..
16,17c21,37
<   target=`echo $url | sed 's;^.*://\([^/]*\)/*\(.*\);\1:/\2;'`
<   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
>if [ -x /usr/bin/ncftpget -o -x /usr/local/bin/ncftpget ]; then
>ncftpget $url
>else
>ftp `echo $url | sed 's;^.*://\([^/]*\)/*.*;\1;'`
>fi
> fi
20a41,42
> # Will use netscape if running XWindow and netscape available,
> # otherwise lynx. 
24c46
<   netscape -remote "openURL($url)" || netscape $url
---
> netscape -remote "openURL($url)" || netscape $url || lynx $url
29c51,56
<   mutt `echo $url | sed 's;^[^:]*:\(.*\);\1;'`
---
> # 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;'`
>  fi
33,38c60,79
<   method=`echo $url | sed 's;\(^...\).*;\1;'`
<   case $method in
<   ftp)
<   target=`echo $url | sed 's;^\([^/]*\)/*\(.*\);\1:/\2;'`
<   ncftp $target
<   ;;
---
> # Now for url's that start www... or ftp or @..
> method=`echo $url | sed 's;\(^...\).*;\1;'`
> case $method in
> ftp)
>   temp=`echo $url | sed 's/.$//;'`
>