Re: Threading lists w/ stupid users

2001-08-03 Thread Bob Bell

On Thu, Aug 02, 2001 at 08:39:57AM +0200, Bonhote Andre [EMAIL PROTECTED] wrote:
 I am subscribed to some so-called sysadmin lists. Unfortunately, the
 list users don't seem to know much about E-Mail: They just hit Outlurks
 Reply-button, erase the subject and start another thread. The result
 is a completely messed-up mailfolder, following threads is just a pain
 in the a. They completely ignore threads, perhaps because they're
 program doesn't use the Message-ID and References fields but the
 subject for threading.
 
 Can I do something like this in mutt? I don't mind if I need an external
 program to pipe my boxfile through, if it helps.

Attached is a patch that I use.  If the subject line changes
(besides RE:, etc.), mutt will not put the message in the same thread,
irregardles of the In-reply-to or References fields.  Works quite
well for me.  Note that you'll also have to turn on the
subj_breaks_thread option.

-- 
Bob Bell [EMAIL PROTECTED]
-
 UNIX *is* user friendly.
  It's just selective about who its friends are.
   -- Author unknown


diff -ru -x CVS mutt-cvs/commands.c mutt/commands.c
--- mutt-cvs/commands.c Tue Jun  5 03:55:55 2001
+++ mutt/commands.c Wed Jun 20 12:09:14 2001
@@ -529,6 +529,7 @@
   char buffer[LONG_STRING], errbuf[SHORT_STRING];
   int r;
   int old_strictthreads = option (OPTSTRICTTHREADS);
+  int old_subjnothread  = option (OPTSUBJNOTHREAD);
   int old_sortre   = option (OPTSORTRE);
 
   buffer[0] = 0;
@@ -550,6 +551,7 @@
   mutt_error (%s, errbuf);
   }
   if (option (OPTSTRICTTHREADS) != old_strictthreads ||
+  option (OPTSUBJNOTHREAD) != old_subjnothread ||
   option (OPTSORTRE) != old_sortre)
 set_option (OPTNEEDRESORT);
 }
diff -ru -x CVS mutt-cvs/init.h mutt/init.h
--- mutt-cvs/init.h Mon Jun 18 11:56:46 2001
+++ mutt/init.h Wed Jun 20 12:09:14 2001
@@ -2109,6 +2109,16 @@
   ** personal mailbox where you might have several unrelated messages with
   ** the subject ``hi'' which will get grouped together.
   */
+  { subj_breaks_thread, DT_BOOL, R_RESORT|R_INDEX, OPTSUBJNOTHREAD, 0 },
+  /*
+  ** .pp
+  ** If set, a message that would normally be a member of a thread will
+  ** not be a member of that thread if the subject has changed.  This is
+  ** useful when a message reply updates the ``References'' and/or
+  ** ``In-Reply-To'' fields, but the sender changes the subject line
+  ** with the intent to indicate that the subject of discussion has
+  ** changed.
+  */
   { suspend, DT_BOOL, R_NONE, OPTSUSPEND, 1 },
   /*
   ** .pp
diff -ru -x CVS mutt-cvs/mutt.h mutt/mutt.h
--- mutt-cvs/mutt.h Mon Jun 18 11:56:46 2001
+++ mutt/mutt.h Wed Jun 20 12:09:14 2001
@@ -380,6 +380,7 @@
   OPTSORTRE,
   OPTSTATUSONTOP,
   OPTSTRICTTHREADS,
+  OPTSUBJNOTHREAD,
   OPTSUSPEND,
   OPTTEXTFLOWED,
   OPTTHOROUGHSRC,
@@ -614,6 +615,7 @@
   unsigned int display_subject : 1; /* used for threading */
   unsigned int fake_thread : 1; /* no ref matched, but subject did */
   unsigned int threaded : 1;/* message has been threaded */
+  unsigned int subj_broke_thread : 1; /* not with thread due to subject change */
   unsigned int recip_valid : 1;  /* is_recipient is valid */
   unsigned int active : 1; /* message is not to be removed */
   
diff -ru -x CVS mutt-cvs/thread.c mutt/thread.c
--- mutt-cvs/thread.c   Wed Apr 25 18:08:41 2001
+++ mutt/thread.c   Wed Jun 20 12:09:14 2001
@@ -529,6 +529,7 @@
 ctx-hdrs[i]-child = NULL;
 ctx-hdrs[i]-threaded = 0;
 ctx-hdrs[i]-fake_thread = 0;
+ctx-hdrs[i]-subj_broke_thread = 0;
   }
   ctx-tree = NULL;
 }
@@ -582,15 +583,37 @@
   CUR-parent = NULL;
   insert_message (ctx-tree, CUR, usefunc);
 }
-else if (!CUR-threaded)
+/* Check if (1) message is not yet threaded, or (2) a change in
+ * subject broke the thread but that option has been turned off,
+ * or (3) if the message is a candidate to break from the thread
+ * and the option is currently set
+ */
+else if (!CUR-threaded ||
+(CUR-subj_broke_thread  !option (OPTSUBJNOTHREAD)) ||
+(!CUR-subj_broke_thread  option (OPTSUBJNOTHREAD) 
+ CUR-subject_changed  CUR-parent != NULL))
 {
+  if (CUR-threaded)
+  {
+   unlink_message (CUR-parent-child, CUR);
+   CUR-parent = NULL;
+  }
   if ((tmp = find_reference (CUR, ctx)) != NULL)
   {
-   CUR-parent = tmp;
if (CUR-env-real_subj  tmp-env-real_subj)
  CUR-subject_changed = mutt_strcmp (tmp-env-real_subj, 
CUR-env-real_subj) ? 1 : 0;
else
  CUR-subject_changed = (CUR-env-real_subj || tmp-env-real_subj) ? 1 : 0;
+   if (CUR-subject_changed  option (OPTSUBJNOTHREAD))
+   {
+ CUR-subj_broke_thread = 1;
+ tmp = NULL;
+   }
+   else
+   {
+ CUR-subj_broke_thread = 0;
+ CUR-parent = tmp;
+   }
   }
   else

Re: Changing the working directory (or somethingh similar)

2001-08-01 Thread Bob Bell

On Tue, Jul 31, 2001 at 11:51:54AM +0200, Christoph Maurer [EMAIL PROTECTED] 
wrote:
 Is there a way to change the default folder or working directory or
 something like that so that I can first choose the directory and
 then simply can tag the attachments and press ;sEnter to save
 them all?

Have you tried hitting the up arrow to pull up the last entry?

-- 
Bob Bell [EMAIL PROTECTED]
-
 We all know Linux is great...it does infinite loops in 5 seconds.
   -- Linus Torvalds, creator of the Linux operating system



Re: vfolders

2001-07-12 Thread Bob Bell

On Thu, Jul 12, 2001 at 12:49:39PM +, Jonathan Miller [EMAIL PROTECTED] wrote:
 I've recently become unhappy with the way that my email is
 sorted/stored/whatever, and I've been looking into more advanced ways
 of handling it as opposed to a big text file. I really love the concept
 of vfolders, which are basically SQL statements that create folders
 out of a bunch of mail in a database. Unfortunately all the email
 clients that use this kind of technology are X based, and I need a
 console client.
 
 Anyhow, I was wondering if anyone has toyed with the idea of patching
 mutt to use vfolders or anything similar.
 
 Or alternatively anyone know of an IMAP server that would work like
 this?

Some co-workers/friends and myself had ideas to start such a
project, but we've been busy and it's stalled.  See
http://prufrock.sf.net/

-- 
Bob Bell [EMAIL PROTECTED]
-
 Suppose I want to take over the world. Simplicity says I should
  just take over the world by myself.
   -- Larry Wall, creator of the Perl programming language



Re: Replying

2001-07-11 Thread Bob Bell

On Wed, Jul 11, 2001 at 02:25:28PM +, Nelson D. Guerrero 
[EMAIL PROTECTED] wrote:
I tried putting:
set attribution:* %n%d wrote on %L:
And all it did when replying was put:
Wed Jul 11, Michael Elkins wrote on Michael Elkins:

Do you have the list address defined in your muttrc?

-- 
Bob Bell [EMAIL PROTECTED]
-
 Using today's server requirements, Linux is a credible alternative
  to commercial developed servers in many, high volume applications.
   -- Microsoft Halloween Document



Re: Random Sigs?

2001-07-11 Thread Bob Bell

On Wed, Jul 11, 2001 at 03:51:05PM -0400, William Park [EMAIL PROTECTED] wrote:
 Or, you can play around with RANDOM environment variable (bash), perhaps
 taking only the last digit which will give you 10 choices, ie.
 ii=`echo $RANDOM`; echo ${ii#${ii%[0-9]}}

Why not use bash to compute the remainder?  For instance, if you
have 13 signature files, compute 0-12 (pseudo-)randomly with:
$((RANDOM%13))

-- 
Bob Bell [EMAIL PROTECTED]
-
 Think of me as CVS with brains.
   -- Linus Torvalds, creator and maintainer of the Linux operating system



Re: Returning to mutt session while viewing attachment?

2001-06-20 Thread Bob Bell

On Tue, Jun 19, 2001 at 11:40:38PM -0400, John P. Verel [EMAIL PROTECTED] wrote:
 Any special reason for calling this as a Bourne shell and not Bash?

Bash is a superset of Bourne shell and not installed on all systems.
On virtually all Linux distributions, perhaps, but not on many UNIX
systems.  If you don't need Bash, why use it?

-- 
Bob Bell [EMAIL PROTECTED]
-
 If the only tool you have is a hammer, you tend to see every
  problem as a nail.
   -- Abraham Maslow



Re: Segfault

2001-04-26 Thread Bob Bell

I'm unable to reproduce this with mutt 1.3.11i.  Have you tried to
reproduce it?  Do you have a few short lines I can add to my muttrc to
reproduce it?

On Thu, Apr 26, 2001 at 02:54:44PM -0700, CB [EMAIL PROTECTED] wrote:
 This is from a Mandrake mailing list.  I wanted to point this out to the
 developers and let them know that an audit might be in order to
 verify/disprove that this exists in other config options as well (the
 segfault on a blank option).
 
 Forwarded message
 I just wanted to update the group on this issue.
 
 For those of you that use Mutt, you know how customizable it is via
 your .muttrc file.  Well that's where the problem was.
 
 In the .muttrc you can specify who you are, your email address and the
 organization that you belong to.  The lines would look something like
 this.
 
 my_hdr From: Tim Holmes [EMAIL PROTECTED]
 my_hdr Organization: UNIXTECHS ORG
 my_hdr Reply-To: Tim Holmes [EMAIL PROTECTED]
 
 Well there's often another line in the .muttrc that tell tells it to
 remove
 all extra headers as well. That looks like this.
 
 unmy_hdr *  
 
 Well, from what I've been told by others, if you have the line for
 unmy_hdr
 in your .muttrc, it will ignore error messages that you may have from
 reading
 the .muttrc.
 
 That's what allowed the problem to slip through, but the problem was
 caused
 by the line for Organization.  If you leave my_hdr Organization: blank,
 it
 causes an error.  It will allow you to open your mailbox and move around
 in
 them and read messages, and even right them, but as soon as you try and
 send
 them, you recieve a lovely segment fault, and sometimes a core is
 dumped.
 
 Instead of just ignoring the blank field is dies on you.  Personally
 this being
 the case is completely retarded, but that's just me.  I spent almost an
 entire 
 day trying to figure out why I had two users, that would continue to get
 segment
 faults each time they sent mail.  But 5 other users were just fine!
 That's what
 pointed me towards the .muttrc.
 
 After rebuilding my .muttrc file line by line, (Which was a pain in the
 @%$ if you
 ask me!) and finally found that it was the Organization line that was
 causing my
 problem.  I removed that line, and the problem is gone.  I think the
 people with
 mutt were retarded for doing that!  But again... that's just me.
 
 



-- 
Bob Bell [EMAIL PROTECTED]
-
 For example, OS/360 devotes 26 bytes of the permanently
  resident date-turnover routine to the proper handling of
  December 31 on leap years (when it is Day 366).  That might
  have been left to the operator.
   -- Fred Brooks, _The Mythical Man-Month_, on wasting resources



Re: RunningX revisited

2001-04-23 Thread Bob Bell

On Sat, Apr 21, 2001 at 10:48:14AM +0800, Horace G. Friend III [EMAIL PROTECTED] wrote:
 I also d/led the RunningX.c code from mutt.org and compiled it as
 suggested in the code but I get a compile error. I run
 
 gcc -o RunningX RunningX.c -lX11
 
 but I get the error
 
 /usr/bin/ld: cannot find -lX11
 collect2: ld returned 1 exit status
 
 I'm on a RH7 box running kernel 2.2.16 and gcc-2.96-69. Can someone pls.
 figure out why I can't compile and what needs to be done?

Try using the following:
gcc -o RunningX RunningX.c -L/usr/X11R6/lib -lX11

-- 
Bob Bell [EMAIL PROTECTED]
-
 One reason that few people are aware there are programs running the
  internet is that they never crash in any significant way: the free
  software underlying the internet is reliable to the point of
  invisibility. 
   -- Glyn Moody at http://www.guardianunlimited.co.uk/



Re: WWW/CGI interface to MUTT (Was: Mutt-based web mail)

2001-04-10 Thread Bob Bell

Marco,

I would think that, based on the level of interaction that mutt
provides, that a Java applet to interface with mutt would be more
appropriate.  There would be communication between the Java applet and a
Javer servlet (or possibly other program) running on the server.  The
servlet would have an interface to ncurses, working much like a remote X
session would.

A nifty idea if you could pull it off.  Might be tough, though.

Bob

On Tue, Apr 10, 2001 at 02:50:10PM +0100, M. Fioretti [EMAIL PROTECTED] wrote:
 Sorry,
  I just realized that this subject,not the original,
 expresses exactly what I had in mind.
 
 And, yes, the rationale is to still do email a-la-mutt
 when far from home, either behind a firewall, or on
 some friend's PC
 
   Ciao,
   Marco
 

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Computers may be stupid, but they're always obedient.
  Well, almost always."
   -- Larry Wall, creator of the Perl programming language



Re: Mailcap entry for inline BMP?

2001-03-29 Thread Bob Bell

You might try using emil in your procmailrc to convert uuencoded
files into MIME attachments.  If that works, you should then be able to
deal with the BMP as a MIME attachments.  As things currently stand, it
would just be treated as part of the message.

On Thu, Mar 29, 2001 at 04:08:18PM +, malcolm.boekhoff 
[EMAIL PROTECTED] wrote:
 Can some clever person please post a mailcap entry to deal with messages from
 Microsoft Outlook Express, where the sender has attached a BMP.
 
 The BMP kind of gets in-lined into the message, so that if you were reading it
 with OE you would see the picture (some kind of OLE stuff, I think). I.e. you
 don't have to explicitly open the attachment, you can see it in the preview
 window.
 
 The properties you get from OE are:
 
 -- Message properties start here --
 Received: from boekhoffm (BOEKHOFF_M [10.16.92.39]) by cloisters-exch.actfs.co.uk 
with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2650.21)
   id G683370T; Thu, 29 Mar 2001 16:55:34 +0100
 Message-ID: 000801c0b869$0bc7bc50$[EMAIL PROTECTED]
 From: "Malcolm Boekhoff" [EMAIL PROTECTED]
 To: "me" [EMAIL PROTECTED]
 Subject: etst
 Date: Thu, 29 Mar 2001 16:58:06 +0100
 X-Priority: 3
 X-MSMail-Priority: Normal
 X-Mailer: Microsoft Outlook Express 5.00.2919.6600
 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
 
 
 
 
 
 
 begin 600 1.bmp
 M0DU6$@H``#8HD`$``"8"```!`!@``"`2"@#$#@``Q`X`
 M
 M
 M
 M
 M
 M
 M
 
 .. and loads more.
 -- Message properties end here --
 

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Linux represents a best-of-breed Unix, that is trusted in mission
  critical applications, and -- due to it's open source code -- has
  a long term credibility which exceeds many other competitive OS's."
   -- Microsoft "Halloween" Document



Re: Fix broken threading

2001-03-01 Thread Bob Bell

On Thu, Mar 01, 2001 at 12:28:56AM +0100, Christian R Molls 
[EMAIL PROTECTED] wrote:
 I know that I have read about this matter before, but had no luck
 searching the archives: what possibilities are there to fix that
 issue? Im thinking of a macro/script combination called from withing
 mutt that deletes the misleading "In-Reply-To:" and "Reference" headers
 in the mbox file that holds the thread, and makes mutt re-read the
 folder, now with two separate threads.  Anyone done that before?

Yup.  I wrote a patch to mutt to "break threads" when the subject
line changes (except for things like "re:", of course).  I've been
running with my patch for months now.  The best part is that it leaves
your original messages intact, and you can toggle between the two modes
if you want.  I mostly use the patch because on some mailing lists
people change the subject of thread that has wandered off-target, but
the References and In-Reply-To fields keep the message in the same
thread.  Applying my patch and turning subj_breaks_thread on will put
messages with different subject lines in different threads.

I never did get much of a response for my patch.  I've attached it
if you'd like to apply it.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "In theory, theory and practice are the same. 
  In practice, they are different."
   -- Larry McVoy


diff -ru -x CVS mutt-cvs/commands.c mutt/commands.c
--- mutt-cvs/commands.c Wed Jun 21 05:55:24 2000
+++ mutt/commands.c Wed Sep 20 17:09:26 2000
@@ -472,6 +472,7 @@
   char buffer[LONG_STRING], errbuf[SHORT_STRING];
   int r;
   int old_strictthreads = option (OPTSTRICTTHREADS);
+  int old_subjnothread  = option (OPTSUBJNOTHREAD);
   int old_sortre   = option (OPTSORTRE);
 
   buffer[0] = 0;
@@ -493,6 +494,7 @@
   mutt_error ("%s", errbuf);
   }
   if (option (OPTSTRICTTHREADS) != old_strictthreads ||
+  option (OPTSUBJNOTHREAD) != old_subjnothread ||
   option (OPTSORTRE) != old_sortre)
 set_option (OPTNEEDRESORT);
 }
diff -ru -x CVS mutt-cvs/init.h mutt/init.h
--- mutt-cvs/init.h Tue Sep  5 11:01:09 2000
+++ mutt/init.h Wed Sep 20 16:51:39 2000
@@ -1997,6 +1997,16 @@
   ** personal mailbox where you might have several unrelated messages with
   ** the subject ``hi'' which will get grouped together.
   */
+  { "subj_breaks_thread", DT_BOOL, R_RESORT|R_INDEX, OPTSUBJNOTHREAD, 0 },
+  /*
+  ** .pp
+  ** If set, a message that would normally be a member of a thread will
+  ** not be a member of that thread if the subject has changed.  This is
+  ** useful when a message reply updates the ``References'' and/or
+  ** ``In-Reply-To'' fields, but the sender changes the subject line
+  ** with the intent to indicate that the subject of discussion has
+  ** changed.
+  */
   { "suspend", DT_BOOL, R_NONE, OPTSUSPEND, 1 },
   /*
   ** .pp
diff -ru -x CVS mutt-cvs/mutt.h mutt/mutt.h
--- mutt-cvs/mutt.h Fri Jul 28 15:25:58 2000
+++ mutt/mutt.h Thu Sep 21 10:27:24 2000
@@ -354,6 +354,7 @@
   OPTSORTRE,
   OPTSTATUSONTOP,
   OPTSTRICTTHREADS,
+  OPTSUBJNOTHREAD,
   OPTSUSPEND,
   OPTTHOROUGHSRC,
   OPTTILDE,
@@ -582,6 +583,7 @@
   unsigned int display_subject : 1; /* used for threading */
   unsigned int fake_thread : 1; /* no ref matched, but subject did */
   unsigned int threaded : 1;/* message has been threaded */
+  unsigned int subj_broke_thread : 1; /* not with thread due to subject change */
   unsigned int recip_valid : 1;  /* is_recipient is valid */
   unsigned int active : 1; /* message is not to be removed */
   
diff -ru -x CVS mutt-cvs/thread.c mutt/thread.c
--- mutt-cvs/thread.c   Wed May 10 13:16:43 2000
+++ mutt/thread.c   Thu Sep 21 11:53:28 2000
@@ -504,6 +504,7 @@
 ctx-hdrs[i]-child = NULL;
 ctx-hdrs[i]-threaded = 0;
 ctx-hdrs[i]-fake_thread = 0;
+ctx-hdrs[i]-subj_broke_thread = 0;
   }
   ctx-tree = NULL;
 }
@@ -557,15 +558,37 @@
   CUR-parent = NULL;
   insert_message (ctx-tree, CUR, usefunc);
 }
-else if (!CUR-threaded)
+/* Check if (1) message is not yet threaded, or (2) a change in
+ * subject broke the thread but that option has been turned off,
+ * or (3) if the message is a candidate to break from the thread
+ * and the option is currently set
+ */
+else if (!CUR-threaded ||
+(CUR-subj_broke_thread  !option (OPTSUBJNOTHREAD)) ||
+(!CUR-subj_broke_thread  option (OPTSUBJNOTHREAD) 
+ CUR-subject_changed  CUR-parent != NULL))
 {
+  if (CUR-threaded)
+  {
+   unlink_message (CUR-parent-child, CUR);
+   CUR-parent = NULL;
+  }
   if ((tmp = find_reference (CUR, ctx)) != NULL)
   {
-   CUR-parent = tmp;
if (CUR-env-real_subj  tmp-env-real_subj)
  CUR-subject_changed = mutt_strcmp (tmp-env-real_subj, 
CUR-env-real_subj)

Re: folder-hooks with IMAP mailboxes?

2000-11-27 Thread Bob Bell

On Sun, Nov 26, 2000 at 04:06:04PM -0500, Tabor J. Wells [EMAIL PROTECTED] wrote:
 I would have expected that:
 
 folder-hook {hostname}INBOX.mutt-users set sort=thread
 
 would work, but that apparantly is not the case. Any suggestions on what I'm
 missing?

Here's a few folder-hooks that I have set:
folder-hook . set pager_index_lines=10
folder-hook "!$" set pager_index_lines=4
folder-hook "!$" 'uncolor index "~C bobbell"'
folder-hook "!.mutt" 'color index red default "~f Roessler"'

etc. etc.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "There are two major products to have come out of Berkeley:
  LSD and UNIX"
   -- Author Unknown



Re: hook/macro/push newbie problem

2000-11-22 Thread Bob Bell

On Wed, Nov 22, 2000 at 07:00:17PM -0200, Sergio Bruder [EMAIL PROTECTED] 
wrote:
 I'm trying to filter my folders to show only my new messages, with threads collapsed:
 
 folder-hook .push "limit~N\n"
 folder-hook .push collapse-all
 
 But that "\n" isnt working. Any clues?

Try enter instead.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "For example, OS/360 devotes 26 bytes of the permanently
  resident date-turnover routine to the proper handling of
  December 31 on leap years (when it is Day 366).  That might
  have been left to the operator."
   -- Fred Brooks, _The Mythical Man-Month_, on wasting resources



Tab = 'o'?

2000-11-11 Thread Bob Bell

Sometime I dialed into my workstation at work from a Windows machine
at home.  When I do I telnet in using a program called Tera Term.  Where
I am having difficulty is using the Tab key in mutt in this
circumstance.  Tab completion in bash works fine, but when I try to
change folders and use tab completion is mutt, mutt just print a little
'o' instead.

Ideas, anyone?

(When I'm actually at my workstation things work fine.  This problem
is only with the situation described above).

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Linux is like living in a teepee. No Windows, no Gates,
  Apache in house."
   -- Usenet signature, author unknown



Re: FEATURE-REQUEST: mutt looks for PGPPASS environment variable

2000-10-20 Thread Bob Bell

From a bash prompt, try running:
COLUMNS= ps ae | grep mutt
and see if you don't change your mind about using PGPPASS.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Just don't create a file called -rf.  :-)"
   -- Larry Wall, creator of the Perl programming language



Re: spamfilter for procmail

2000-10-17 Thread Bob Bell

On Mon, Oct 16, 2000 at 03:43:46PM -0700, Dale Morris [EMAIL PROTECTED] wrote:
 could someone post a simple spam receipe for procmail? I'm afraid I'll
 end up filtering out my important mails. You know, things like distant
 relatives writing to give me money and such..  
 thanks

I method I used while at school is documented at
http://www.css.tayloru.edu/~bbell/spam-filter/

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Linux is like living in a teepee. No Windows, no Gates,
  Apache in house."
   -- Usenet signature, author unknown



Re: How can I use mutt on disconnected laptops?

2000-10-16 Thread Bob Bell

On Sun, Oct 15, 2000 at 12:30:55PM +0100, Conor Daly [EMAIL PROTECTED] wrote:
  I was thinking have having the laptop nfs share the mailfolders to the desktop,
  since I assume that the laptop will always be with him...
 
 OK, that's fine so long as the desktop machine *isn't* receiving mail
 while the laptop is away.  My home server collects email about 6 times per
 day whether I'm there or not so that wouldn't work for me

Well, as long as the home server is the only machine receiving mail
(i.e., you don't check with your laptop, too), you could keep your
downloaded mail and folders on your laptop and export them as an NFS
share to your desktop (as mentioned).  To handle mail that arrives when
the laptop is disconnected, try running a home machine as a POP3 server,
and then use fetchmail to get all new mail to the laptop when connected.
To check mail at home, make sure the laptop is up-to-date (i.e., has run
fetchmail recently) and then check mail normally, which will access your
mail folders on your laptop.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "For example, OS/360 devotes 26 bytes of the permanently
  resident date-turnover routine to the proper handling of
  December 31 on leap years (when it is Day 366).  That might
  have been left to the operator."
   -- Fred Brooks, _The Mythical Man-Month_, on wasting resources



Re: Composing a draft?

2000-10-14 Thread Bob Bell

On Sat, Oct 14, 2000 at 06:56:40PM +0800, Anthony Liu [EMAIL PROTECTED] wrote:
 Is there a way to tell mutt that I am composing a draft without
 finishing the editing and do the postpone action?  If this is
 possible, I would like to spawn another terminal (or even an X-based editor)
 for the editor so I can read other mails while composing a draft?  In other
 words, I  prefer the editor not to tie up mutt while composing mail.

Just open another mutt session.  Unlike many mail editors, you can
have multiple instances of mutt running at the same time.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Microsoft has never been an innovator - it's a fast follower.  And
  when you're as big and dominant as Microsoft, and growing at 30 or 40
  percent a year, it gets harder and harder to find people to be fast
  followers of."
   -- Paul Saffo, Institute for the Future



Re: OT: grep

2000-10-13 Thread Bob Bell

On Fri, Oct 13, 2000 at 05:51:22AM -0400, Rob Reid [EMAIL PROTECTED] wrote:
 It works, but I don't understand why.  Shouldn't 'r[e]almutt' just parse to
 "realmutt"?

Yes, it's the same as matching with the regex 'realmutt'.  However,
the grep process will appear in the ps listing as "grep r[e]almutt",
which doesn't match the regex because of the square brackets.

 And just to play devil's advocate:  Which costs more: | grep -v grep or 
 the difference between grep regex and grep plain_old_string?

I'd still have to say the extra process caused by "grep -v grep".
Unless grep has some short-circuit check enabled, I'm guessing it still
makes calls to regcomp and regexec in either case, and the performance
probably doesn't vary that much.

That said, I've alway used "grep -v grep", and unless you are
calling this repeatedly, it's unlikely you'll see a difference in
practice.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Felten, who examined the secret "source code" for Windows 98 under
  a court order, said he had found 3,000 bugs marked by Microsoft
  programmers in the portion of Windows 98 he had examined -- and he
  had looked at only one-seventh of it."
   -- http://www.zdnet.com/zdnn/stories/news/0,4586,2273581,00.html



Re: multiple mutts

2000-10-11 Thread Bob Bell

On Thu, Oct 12, 2000 at 09:23:29AM +0930, Brian Salter-Duke 
[EMAIL PROTECTED] wrote:
  Be careful about using grep to search the output of ps. For example
  
  $ ps ax | grep lemming
  16004 tty1 S  0:00 grep lemming
  
  Y'see? Grep makes a match on its own process.
 
 It works OK on AIX 3.2.5 ps. If you add the -f flag it finds the grep
 line, but it does'nt without it.
 
 OK, so maybe my script does'nt work on all systems, but it is worth
 playing with to see if some set of ps flags works as required.

I've been working a lot with ps in Tru64 UNIX and reading the Unix98
(Single Unix Spec V2) standards, and this is undefined behaviour.
Basically, ps takes a snapshot of the processes running at an instant in
time.  Depending on how it does this, and how the system manages
processes, the ps command itself may or may not show.  Some Unices will
even show it sometimes and not others.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "The sooner you start to code, the longer the program will take."
   -- Roy Carlson, University of Wisconsin



Re: gpg.rc: --textmode

2000-10-10 Thread Bob Bell

On Mon, Oct 09, 2000 at 06:45:22PM +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 What is the '--textmode' for? The (gpg) manual page gives an explanation for
 '-t' but not really for '--textmode'.

-t and --textmode are roughly equivalent, as stated in my man page
(v1.03).

-t, --textmode
Use canonical text mode.  If -t (but not --textmode) is used
together with armoring and signing, this enables clearsigned mes-
sages. This kludge is needed for PGP compatibility; normally you
would use --sign or --clearsign to selected the type of the sig-
nature.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "The box said "Requires Windows 95 or better."  I can't understand
  why it won't work on my Linux computer."
   -- Humorix (http://i-want-a-website.com/about-linux/)



Re: gpg: Warning: using insecure memory!

2000-10-09 Thread Bob Bell

On Mon, Oct 09, 2000 at 01:06:39PM +, Marcelo C . Martinelli [EMAIL PROTECTED] 
wrote:
 I think that's a gpg problem and not a mutt one. You should edit the
 file ``options" which is created by default during installation of gpg
 under ~/.gnupg. You should add 2 lines in there like these:
 
 no-secmem-warning
 keyserver wwwkeys.pgp.net
 
 The first line will get rid of the insecure memory warning, which i've
 been told you can safely disregard.

Is this a new feature in gpg.  This doesn't appear to get rid of the
warning for me.  gpg --version reports "gpg (GnuPG) 1.0.1".


-- 
Bob Bell [EMAIL PROTECTED]
-
 "For example, OS/360 devotes 26 bytes of the permanently
  resident date-turnover routine to the proper handling of
  December 31 on leap years (when it is Day 366).  That might
  have been left to the operator."
   -- Fred Brooks, _The Mythical Man-Month_, on wasting resources



Quoting of signature variable

2000-10-09 Thread Bob Bell

I'm hoping someone can figure out how to properly quote my signature
setting.  Briefly, I want to set signature to a program, files in a
directory as arguments, and finally a '|' to read the output of the
program.  For instance, I started out with:

set signature='sigmaker.pl ~/.quotes/*|'

but mutt seems to want to tree the directory as a separate variable.  I
stumbled on:

set signature='(sigmaker.pl ~/.quotes/*)|'

but that doesn't seem to have any effect for me.  Finally, I came up
with:

set signature='(sigmaker.pl\ ~/.quotes/*)|'

but the ~/.quotes/* is passed literally, and not expanded.  I've tried
using backticks unsuccessfully.

Any suggestions?

-- 
Bob Bell [EMAIL PROTECTED]



Re: Quoting of signature variable

2000-10-09 Thread Bob Bell

On Mon, Oct 09, 2000 at 08:40:32PM +0300, Mikko Hnninen [EMAIL PROTECTED] wrote:
 Bob Bell [EMAIL PROTECTED] wrote on Mon, 09 Oct 2000:
  I'm hoping someone can figure out how to properly quote my signature
  setting.  Briefly, I want to set signature to a program, files in a
  directory as arguments, and finally a '|' to read the output of the
  program.
 
 ...
 
  set signature='sigmaker.pl ~/.quotes/*|'
 
 ...
 
  Any suggestions?
 
 Try something like this:
 
   set signature="sigmaker.pl `echo ~/.quotes/*` |"

The problem I have with the given approach and similar ones I have
tried is that mutt wants to treat part of the string as a variable.
Given what you stated above, I get an error "~/.quotes/*: unknown
variable".

Looking into it a little more, I just found the problem.  I
neglected to say (b/c I *thought* it was irrelevant) that I was doing
this from a send-hook.  My original send-hook looked like:

send-hook . set signature="sigmaker.pl `echo ${HOME}/.quotes/*` |"

Now I'm using

send-hook . set signature=\"sigmaker.pl `echo ${HOME}/.quotes/*` |\"

which behaves as expected.

-- 
Bob



Re: gpg: Warning: using insecure memory!

2000-10-09 Thread Bob Bell

On Mon, Oct 09, 2000 at 04:38:26PM +, Marcelo C . Martinelli [EMAIL PROTECTED] 
wrote:
 I am using gpg 1.0.3 but i think that that's not the problem here. The
 only thing i can think of in your case is that probably you have the
 options directory in a different location from ~/.gnupg, in which case
 you would have to set up a variable GNUPGHOME=/your/gnupg/directory in
 /etc/profile.

 On Mon, Oct 09, 2000 at 12:09:04PM -0400, Bob Bell wrote:
  Is this a new feature in gpg.  This doesn't appear to get rid of the
  warning for me.  gpg --version reports "gpg (GnuPG) 1.0.1".


Nope, turns out it's a new thing.  I upgraded to 1.0.3 and it works
now.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Linux, WinNT, MS-DOS - also known as the Good, the Bad and the Ugly."
   -- Anonymous



Re: Saving Deleted Messages

2000-10-06 Thread Bob Bell

On Fri, Oct 06, 2000 at 02:09:14PM +, Nollaig MacKenzie [EMAIL PROTECTED] 
wrote:
 On 2000.10.06 12:52:15, you,
  the extraordinary Pyuesh Daya, opined:
  Is there anyway that I can save mail that I have delete in the future.I 
already copymy
  +mail that I send to people !!
 
 You could change the binding for "d" thus:
 
 macro index d s+wastebasket\n
 macro pager d s+wastebasket\n
 
 Then typing "d" would put a message into the
 folder "wastebasket" rather than deleting it.
 Would that fit your wish?

I do something similar to have mutt mimic Netscape Messenger.  From my muttrc:
  # (Safely) delete messages
  folder-hook . 'macro index d "delete-message"'
  folder-hook "!$" 'macro index d "save-message!.Trashenter"'
  folder-hook "!.wave4" 'macro index d "save-message!.Trashenter"'
  folder-hook . 'macro pager d "delete-message"'
  folder-hook "!$" 'macro pager d "save-message!.Trashenter"'
  folder-hook "!.wave4" 'macro pager d "save-message!.Trashenter"'
  folder-hook . 'macro pager D "delete-message"'

This changes 'd' to save message in two specific folders
(work-related e-mail).  In other folders, 'd' means delete.  In the
pager, 'D' is defined as delete universally.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "In general, if you think something isn't in Perl, try it out,
  because it usually is.  :-)"
   -- Larry Wall, creator of the Perl programming language



Re: Inconsistent?

2000-10-06 Thread Bob Bell

On Fri, Oct 06, 2000 at 03:33:07PM -0400, Dan Boger [EMAIL PROTECTED] wrote:
 On Fri, Oct 06, 2000 at 09:12:17PM +0100, [EMAIL PROTECTED] wrote:
  Why is it that in some screens you use 'q' to quit the screen (like the Help,
  and the folder lists), and when viewing a mail you hit 'i' to quit?
  Is this something that can be magically changed with all these mutt
  configuration options? (A simple yes or no would already suffice.)
 
 I believe (and I'm still a newbie here too), that i takes you to the index
 of the current folder, while q exits the current screen.  so both 'q' and 'i'
 will take out of view mail to the index, for different reasons...

I use the following in my muttrc for navigation through mutt:
  bind  index right display-message
  macro index left "change-folder?Tab"
  bind  pager up previous-line
  bind  pager down next-line
  bind  pager left exit
  bind  browser Space next-page
  bind  browser right select-entry
  bind  browser left  exit
  bind  browser return view-file
  macro browser i 'q'
  bind  attach left  exit
  bind  attach right view-attach
  bind editor Space noop
  bind editor right buffy-cycle



-- 
Bob Bell [EMAIL PROTECTED]
-
 "Using today's server requirements, Linux is a credible alternative
  to commercial developed servers in many, high volume applications."
   -- Microsoft "Halloween" Document



Re: Attachements

2000-09-28 Thread Bob Bell

On Thu, Sep 28, 2000 at 04:51:39PM +0200, Emmanuel Anne [EMAIL PROTECTED] wrote:
 I had a look at the docs, but could not find a way to handle bad
 attachements ie : jpeg images attached as "application/octet-stream"
 insted of "image/jpeg".
 
 Does someone know a way to view them directly instead of first saving
 them on the disk ???

Your mime.types file should pick up on the extension and let mutt
treat the file as image/jpeg, at which point your setting for image/jpeg
take over.  This is described in the manual under "Mutt's MIME Support".

-- 
Bob Bell [EMAIL PROTECTED]
-
 "There are two major products to have come out of Berkeley:
  LSD and UNIX"
   -- Author Unknown



Re: Changing Mutt's defaults- possible?

2000-09-22 Thread Bob Bell

On Fri, Sep 22, 2000 at 07:55:34PM +1100, Russ Pitman [EMAIL PROTECTED] wrote:
 [1]
 Is it possible to configure Mutt so that the default opening page is the
 'index' rather than the spool mailbox,or alternately have a single key on
 the top line set to jump to the index page.

Read about "push" in the manual.  It will allow you to push
keystrokes on startup if you place a push command in your muttrc.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Where a calculator on the ENIAC is equipped with 18,000 vacuum
  tubes and weighs 30 tons, computers in the future may have only
  1,000 vacuum tubes and weigh only 1.5 tons. "
   -- Popular Mechanics, March 1949



Re: About PGP encryption

2000-09-22 Thread Bob Bell

On Fri, Sep 22, 2000 at 08:57:09PM +0300, Eugene Paskevich [EMAIL PROTECTED] 
wrote:
   That's very nice but I'd like my signature to be changed every time
   I compose a new message. Not every session of mutt.

If you read the manual, you'll discover that if $signature ends with
a pipe ("|"), then it is run as a program and the output is used as your
signature.  That's what I do.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "It [Linux] will certainly drive us to put new stuff into our products."
   -- John Carpenter, Microsoft manager



Re: signature detection for color and mono

2000-09-15 Thread Bob Bell

On Fri, Sep 15, 2000 at 09:13:14PM +0200, Lukasz Stelmach [EMAIL PROTECTED] wrote:
   By³a godzina 15:58:34 w czwartek 14 wrzesieñ, gdy do autobusu wsiad³ kanar
   i wrzasn±³:"David Champion!!!  Bilecik do kontroli!!!" A on(a) na to:
 
  I want the pager to treat signatures the same as the body 
  Correct me if i am wrong you do not wan colorful signature?
  Correct, but I also want my body regexes to color parts of the
  signature -- I don't want it treated as a single big block.
 
 Try to find in the sources the '-- ' (dash dash space) string and that
 should be the right place to alter.

Try the attached, mostly untested patch to remove signature
processing (i.e., remove all support from mutt).

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Every rectal thermometer made by Q-Tip has been personally tested."
   -- Material packaged with a Q-Tip rectal thermometer


diff -ru -x CVS mutt-cvs/pager.c mutt/pager.c
--- mutt-cvs/pager.cTue Sep  5 11:01:09 2000
+++ mutt/pager.cFri Sep 15 16:39:13 2000
@@ -136,39 +136,6 @@
 } *Resize = NULL;
 #endif
 
-#define NumSigLines 4
-
-static int check_sig (const char *s, struct line_t *info, int n)
-{
-  int count = 0;
-
-  while (n  0  count = NumSigLines)
-  {
-if (info[n].type != MT_COLOR_SIGNATURE)
-  break;
-count++;
-n--;
-  }
-
-  if (count == 0)
-return (-1);
-
-  if (count  NumSigLines)
-  {
-/* check for a blank line */
-while (*s)
-{
-  if (!ISSPACE (*s))
-   return 0;
-  s++;
-}
-
-return (-1);
-  }
-
-  return (0);
-}
-
 static void
 resolve_color (struct line_t *lineInfo, int n, int cnt, int flags, int special,
 ansi_attr *a)
@@ -732,28 +699,6 @@
   }
   else if (mutt_strncmp ("[-- ", buf, 4) == 0)
 lineInfo[n].type = MT_COLOR_ATTACHMENT;
-  else if (mutt_strcmp ("-- \n", buf) == 0 || mutt_strcmp ("-- \r\n", buf) == 0)
-  {
-i = n + 1;
-
-lineInfo[n].type = MT_COLOR_SIGNATURE;
-while (i  last  check_sig (buf, lineInfo, i - 1) == 0 
-  (lineInfo[i].type == MT_COLOR_NORMAL ||
-   lineInfo[i].type == MT_COLOR_QUOTED ||
-   lineInfo[i].type == MT_COLOR_HEADER))
-  {
-   /* oops... */
-   if (lineInfo[i].chunks)
-   {
- lineInfo[i].chunks = 0;
- safe_realloc ((void **) (lineInfo[n].syntax), 
-   sizeof (struct syntax_t));
-   }
-   lineInfo[i++].type = MT_COLOR_SIGNATURE;
-  }
-  }
-  else if (check_sig (buf, lineInfo, n - 1) == 0)
-lineInfo[n].type = MT_COLOR_SIGNATURE;
   else if (regexec ((regex_t *) QuoteRegexp.rx, buf, 1, pmatch, 0) == 0)
   {
 if (regexec ((regex_t *) Smileys.rx, buf, 1, smatch, 0) == 0)



Re: muttzilla

2000-09-11 Thread Bob Bell

On Mon, Sep 11, 2000 at 11:56:08AM -0700, Dale Morris [EMAIL PROTECTED] wrote:
 Hi, I'm running debian 2.2 woody and I just did apt-get install
 muttzilla and sure enough there was a debian muttzilla package, which
 apt faithfully installed and set up. Trouble is, there's no man page
 (like I'd read it anyhow..) and when I call a mail-to url in netscape,
 it just brings up the regular netscape mail program. Oh, I'm using
 netscape 4.75. Can anyone shed any light on this for me?
 thanks

You probably have to set up your preferences file.  The muttzilla
home page should have more information:
http://www3.telus.net/brian_winters/mutt/

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Testing shows the presence, not the absence, of bugs."
   -- Edsger W. Dijkstra, University of Texas



Re: moving readed mail

2000-09-07 Thread Bob Bell

On Thu, Sep 07, 2000 at 03:34:32PM +0200, Petr Kristan [EMAIL PROTECTED] wrote:
 Is here any hook where I can define that read mail from "someone" will be
 saved to "some" mailbox automaticly. 
 
 I can setup save-hook, but then I must pres 's' and then Enter.

Such a filter should be run during mail delivery.  The commonly used
solution is procmail.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Who is General Failure and why is he reading my hard disk?"
   -- Anonymous



Re: removing Reply-To when composing

2000-09-01 Thread Bob Bell

On Sat, Sep 02, 2000 at 02:26:38AM +0200, Attila Csosz [EMAIL PROTECTED] wrote:
 How to control which fields get into the editor when composing? I don't want
 the Bcc, and the Reply-To lines in the editor when composing messages.

To my knowledge, there's no built in way.  However, you can either
tell your editor to remove them, or write a short script that strips
those lines and then calls your editor, and then set editor=your-script.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Who is General Failure and why is he reading my hard disk?"
   -- Anonymous



Re: Help with IMAP...

2000-08-15 Thread Bob Bell

On Tue, Aug 15, 2000 at 01:12:39AM +0300, Mikko Hnninen [EMAIL PROTECTED] wrote:
 Kolbjørn Barmen [EMAIL PROTECTED] wrote on Mon, 14 Aug 2000:
  Is it also possible to name the folders
  with a name/alias/assign/whatever, so that I can tell mutt I want to open the
  "AmigaAmp" folder, instead of '{server}'/var/spool/mail/.kolla/amigaamp ?
 
 No, that's not possible.  You can set your $folder and then use the
 + and = shortcuts, but it works only for a single path (ie. it isn't
 much of a help with multiple IMAP folders).  Folder aliasing besides
 just the $folder functionality would be rather useful with IMAP I
 guess.

Be sure to use tab completion, though, as it may make your life a
little easier.  ! can also be expanded now.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Microsoft is not the answer.
  Microsoft is the question.
  Linux is the answer."
   -- Humorix (http://i-want-a-website.com/about-linux/)



Re: The editor variable

2000-08-14 Thread Bob Bell

On Mon, Aug 14, 2000 at 06:14:31PM +0200, Caster [EMAIL PROTECTED] wrote:
 Hi!
 Why something like this doesn't work:
 
 set editor=`if test $DISPLAY ; then echo gvim -c ":normal 2/^$/"
 +nohlsearch %s ; else echo vim -c ":normal 2/^$/" +nohlsearch %s ; fi`
 
 It's all in one line. Mutt complains about unknown -c option (!). I've
 tried to quote it and escape it somehow but it just doesn't work.

Try a short shell script that basically does the above and then call
that shell script.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "To understand recursion one must first understand recursion."
   -- Anonymous



Re: not quoting signature on replies

2000-08-08 Thread Bob Bell

On Tue, Aug 08, 2000 at 09:10:14AM -0400, David T-G [EMAIL PROTECTED] wrote:
 ...and then Leonid Mamtchenkov said...
 % Is it somehow possible not to quote signatures on replies?
 
 I don't think it's possible to tell mutt to leave it off, but it's pretty
 easy to work up an entry macro for your editor that first prunes it off.
 If that doesn't work, set your editor to a script that first does the
 pruning and then fires up the real thing.

Indeed, the typical reply is that this is functionality that belongs
in the editor, not in mutt.

-- 
Bob Bell [EMAIL PROTECTED]
-
 "Beware "We should", extend a hand to "How do I"..."
   -- Alan Cox on Slashdot.org



Re: extent of IMAP support?

2000-07-27 Thread Bob Bell

On Thu, Jul 27, 2000 at 10:59:43AM -0700, Chris Cutler [EMAIL PROTECTED] wrote:
 Actually, I think my question was misleading. . . what I intended to
 ask was how much of the IMAP4rev1 standard mutt currently implements.
 (I only mentioned earlier standards in order to differentiate.)  It 
 sounds, from discussion on this list, like mutt is pretty good in 
 this respect, but the README in the imap directory of the 1.2.4
 distribution does not inspire confidence.  

Good point.  It looks like this is leftover from the 1.1 series.
I think it should be updated for the 1.2/1.3 series as it's now more
stable.  Brendan, care to do so?  I could give it a whirl if you don't
have the time, but you're probably the right man for the job.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Piping mail through a script from a macro

2000-07-27 Thread Bob Bell

On Thu, Jul 27, 2000 at 01:10:59PM -0500, Ben Beuchler [EMAIL PROTECTED] wrote:
 Good point.  Fixed that but it still didn't work.  It turns out that it
 was the \Cs.   For some reason mutt didn't like using ^s as a macro.  No
 matter what I specified there, it locked up.  I checked and it is not
 being used anywhere else in the config.  My Eterm doesn't have anything
 bound to that...  Very weird.  I changed the keystroke to 'Z' and it
 worked fine.

^S is used by a lot of terminals to stop the output.  ^Q is the
reverse to resume normal functionality.  These keys are best avoided
in *any* text-based program.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: extent of IMAP support?

2000-07-26 Thread Bob Bell

On Wed, Jul 26, 2000 at 12:22:43PM -0700, Chris Cutler [EMAIL PROTECTED] wrote:
 I was wondering what the extent of the IMAP support in mutt is.  I was
 at www.imap.org looking at their product database and mutt is listed
 as having IMAP support without giving any specifics (IMAP4, IMAP4rev1,
 IMAP2bis etc.)  Can anyone give me more details about what mutt does
 and doesn't have implemented and whether it officially supports IMAP4?

Brendan Cully could give you a better answer, but I can at least
say that mutt correctly handles "CAPABILITIES" of IMAP4 and IMAP4rev1.
I don't think there's any support for IMAP2.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: subscribing

2000-07-24 Thread Bob Bell

On Fri, Jul 21, 2000 at 05:29:42PM +0200, Johannes Zellner [EMAIL PROTECTED] 
wrote:
 hmm. I tried to subscribe to [EMAIL PROTECTED]
 but this does not seem to be the correct address.
 But the html manual states that it is ...

There are actually several ways to subscribe.  However, I was
under the impression that the list-request method would still work.
Why do you think that it doesn't?

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595




Re: question concerning multiple addresses

2000-07-21 Thread Bob Bell

On Fri, Jul 21, 2000 at 01:19:13AM +0300, Mikko Hnninen [EMAIL PROTECTED] wrote:
 [EMAIL PROTECTED] [EMAIL PROTECTED] wrote on Thu, 20 Jul 2000:
  Or to have the option to 
  edit/change them in the send menu.
 
 You have that.  There's an "edit-from" function, by default bound to
 esc-f.  You're of course free to re-bind that to anything you want.
 It may also be possible to push esc-f into Mutt's keyboard buffer when
 sending new mail or replying, so that you automatically get into the
 "edit from" prompt after you exit the editor (unfortunately, not before
 -- although that too might be possible with some scripting magic,
 playing around with your $editor, and such...)
 
 You may also want to look at $edit_headers, which lets you edit your
 message headers together with the body.  That way editing your From
 header becomes very easy.

Alternatively, you could also create different macros.  Something
like:

macro index m ":my_hdr From: Bob [EMAIL PROTECTED]entermail"
    macro index M ":my_hdr From: Bob Bell [EMAIL PROTECTED]entermail"

You'd also want to look into defining equivalent macros for other
places, or turn to a two key-stroke method: one to set the address,
another for the task.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: '' character?

2000-07-19 Thread Bob Bell

On Wed, Jul 19, 2000 at 09:32:59AM +0200, Martin [Keso] Keseg 
[EMAIL PROTECTED] wrote:
 Bob Bell ([EMAIL PROTECTED]) wrote :
 
  Well, the "t" and "m" are actually extended ASCII bar characters,
  but that "" is as it appears.  Can anyone shed light on what this
  means? (just to satisfy curiosity)
 
 No, but try set ascii_chars in your muttrc for correct displaying of thread

It works fine without it.  The "t" and "m" replaced the ANS
characters when I did a cut and paste.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Mailing to multiple addresses

2000-07-19 Thread Bob Bell

On Wed, Jul 19, 2000 at 05:44:36PM +0200, Caster [EMAIL PROTECTED] wrote:
 I was searching for a simple addressbook that could work with Mutt. I
 have found one -- it's called abook. It's almost OK, I can simply query
 it for an e-mail address. However there is one problem: I can't mail to
 multiple addresses at once. I can ask abook for a pattern or for 'all'
 and Mutt displays all records. I can tag them, but Mutt ignores the tags
 :( I starts the editor with only one address -- the one which was
 currently highlighted. Is there any solution?

Use ';' before the command (e.g. ';m') to have the command apply
to all tagged records.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



'' character?

2000-07-18 Thread Bob Bell

What does the ampersand () character on the subject line mean
when sorting by threads?  For instance:

5219   + 07/12 Perez, Dick   (  0) *RE: Web page   
5220   + 07/13 Perez, Dick   (  0) t*RE: Web page
5221   + 07/13 Perez, Dick   (  0) m*RE: Web page

Well, the "t" and "m" are actually extended ASCII bar characters,
but that "" is as it appears.  Can anyone shed light on what this
means? (just to satisfy curiosity)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



'' character?

2000-07-18 Thread Bob Bell

What does the ampersand () character on the subject line mean
when sorting by threads?  For instance:

5219   + 07/12 Perez, Dick   (  0) *RE: Web page   
5220   + 07/13 Perez, Dick   (  0) t*RE: Web page
5221   + 07/13 Perez, Dick   (  0) m*RE: Web page

Well, the "t" and "m" are actually extended ASCII bar characters,
but that "" is as it appears.  Can anyone shed light on what this
means? (just to satisfy curiosity)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: '' character?

2000-07-18 Thread Bob Bell

On Tue, Jul 18, 2000 at 01:07:12PM -0400, David T-G [EMAIL PROTECTED] wrote:
 Did you know that you sent two messages that looked similar but truly
 were different?

Yes.  Somehow I became unsubscribed, and I thought the first
message was supposed to bounce, so I resent it after I resubscribed.
Apparently it went through anyway.

 
 ...and then Bob Bell said...
 % What does the ampersand () character on the subject line mean
 % when sorting by threads?  For instance:
 
 It means, as far as I've seen, that your threads are attached but that
 there are some referenced messages missing.  I see this when I apply a
 limit to a threaded display and some messages go away, though that
 doesn't appear to be the obvious case here.

Actually, I was limiting some messages.  So I suppose it means
that it's part of a thread, but the full thread is not displayed?

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: trash folder

2000-07-13 Thread Bob Bell

On Thu, Jul 13, 2000 at 12:37:42PM +0200, Thomas Roessler 
[EMAIL PROTECTED] wrote:
 On 2000-07-13 12:53:53 +0400, Dmitry S. Sivachenko wrote:
 
  Is it possible to have something like 'Trash folder' to which all
  deleted messages are placed?
  Like in Netscape Messenger or The Bat! MUA?
 
 You can get a very similar effect with a suitable set of
 macros - just bind "d" to "save to trash", and set $purge
 to yes.

Are you referring to $delete?  I'm not aware of a $purge option,
and it's not in the mutt reference.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: 1.2.2i problems

2000-06-21 Thread Bob Bell

On Wed, Jun 21, 2000 at 11:34:45AM -0600, Vincent Danen [EMAIL PROTECTED] 
wrote:
 Ok... I've still got some problems making my RPM for mutt and I'm not
 sure what's causing it.  I built mutt manually and then I built it
 with the exact same options for the RPM but I get two totally
 different outputs.  The first is from the manual install and the
 second is from the RPM install
 
 -rwxr-xr-x1 root root  1262377 Jun 21 11:29 /usr/bin/mutt*
 -rwxr-sr-x1 root mail36607 Jun 21 11:29 /usr/bin/mutt_dotlock*
 -rwxr-xr-x1 root root 6668 Jun 21 11:29 /usr/bin/muttbug*
 
 -rwxr-xr-x1 root root   418000 Jun 21 11:24 /usr/bin/mutt*
 -rwxr-sr-x1 root root 7588 Jun 21 11:24 /usr/bin/mutt_dotlock*
 -rwxr-xr-x1 root root 6668 Jun 21 11:23 /usr/bin/muttbug*
 
 Anyone know why there's such a discrepancy?  I think the RPM might be
 stripping the binaries but I don't know if that would make such a big
 difference...  Doing a mutt -v on both the RPM and manual binaries
 produces the same output:

Quite possibly.  What happens when you run `strip` on the first
set of files?

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Different signature/tag line each day/email.

2000-06-14 Thread Bob Bell

On Wed, Jun 14, 2000 at 02:49:48PM +0530, Suresh Ramasubramanian 
[EMAIL PROTECTED] wrote:
 This helps tag a fortune cookie to your regular .sig
 
 ~/muttsig - symlinked to ~/.mutt
 
 #!/bin/sh
 WHOAMI=`whoami`
 if [ -f /tmp/sig.$USER ]
 then
 rm -f /tmp/sig.$USER
 fi
 cat $HOME/.signature  /tmp/sig.$USER
 /usr/local/games/bin/fortune -s  /tmp/sig.$USER
 /usr/local/bin/mutt
 
 set signature=/tmp/sig.your_login_here

Wouldn't something like this work and be simpler?

set signature='(cat .signature  fortune -s) |'


-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: why do i get invalid day of month

2000-06-09 Thread Bob Bell

On Fri, Jun 09, 2000 at 05:50:51PM +0300, Mikko Hnninen [EMAIL PROTECTED] wrote:
 I wonder if it would be possible to make Mutt always assume decimal, as
 I doubt anyone will be specifying dates in either octal or hex. :-)
 
 It's kind of cool though, a limit of  ~r 011/6/0x7d0-  actually works.
 :-)

The attached patch (patch-1.3.2.bbell.pattern.1) can be applied to
to force base 10 parsing of dates.  It does not force base 10 everywhere.
I believe this patch is desirable as dates are often represented with
leading zeroes.

Looking at the (unpatched) code, there is a mix of using base 10
or not:
color.c:318:*col = strtol (s, eptr, 10);
color.c:566:  *ql = strtol(buf-data + 6, eptr, 10);
handler.c:1245:   strtol (length, NULL, 10));
hdrline.c:244:  min_width = strtol (prefix, p, 10);
hdrline.c:248:max_width = strtol (prefix, p, 10);
init.c:1091:  val = strtol (tmp-data, t, 0);
pattern.c:269:  pat-min = strtol (s-dptr + 1, tmp, 0) + 1; /* exclusive range */
pattern.c:272:  pat-min = strtol (s-dptr, tmp, 0);
pattern.c:306:pat-max = strtol (tmp, tmp, 0);
pattern.c:334:  t-tm_mday = strtol (s, p, 0);
pattern.c:348:  t-tm_mon = strtol (p, p, 0) - 1;
pattern.c:360:  t-tm_year = strtol (p, p, 0);
pattern.c:375:  int offset = strtol (s, ps, 0);

My patch patch-1.3.2.bbell.pattern.1 fixes pattern.c lines 334,
348, and 360 to work on dates only.  If you want to throw octal and
hexadecimal parsing out the window entirely, you can apply
patch-1.3.2.bbell.strtol.1 instead.  This is a little more consistent,
though you potentially lose some power.

I'll leave the decision up to someone else :-)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595


--- old/mutt-1.3.2/pattern.cTue May  9 11:23:01 2000
+++ mutt-1.3.2/pattern.cFri Jun  9 11:50:55 2000
@@ -331,7 +331,7 @@ static const char *getDate (const char *
   time_t now = time (NULL);
   struct tm *tm = localtime (now);
 
-  t-tm_mday = strtol (s, p, 0);
+  t-tm_mday = strtol (s, p, 10);
   if (t-tm_mday  1 || t-tm_mday  31)
   {
 snprintf (err-data, err-dsize, _("Invalid day of month: %s"), s);
@@ -345,7 +345,7 @@ static const char *getDate (const char *
 return p;
   }
   p++;
-  t-tm_mon = strtol (p, p, 0) - 1;
+  t-tm_mon = strtol (p, p, 10) - 1;
   if (t-tm_mon  0 || t-tm_mon  11)
   {
 snprintf (err-data, err-dsize, _("Invalid month: %s"), p);
@@ -357,7 +357,7 @@ static const char *getDate (const char *
 return p;
   }
   p++;
-  t-tm_year = strtol (p, p, 0);
+  t-tm_year = strtol (p, p, 10);
   if (t-tm_year  70) /* year 2000+ */
 t-tm_year += 100;
   else if (t-tm_year  1900)


diff -rup old/mutt-1.3.2/init.c mutt-1.3.2/init.c
--- old/mutt-1.3.2/init.c   Sat May 20 03:30:46 2000
+++ mutt-1.3.2/init.c   Fri Jun  9 11:57:27 2000
@@ -1088,7 +1088,7 @@ static int parse_set (BUFFER *tmp, BUFFE
   s-dptr++;
 
   mutt_extract_token (tmp, s, 0);
-  val = strtol (tmp-data, t, 0);
+  val = strtol (tmp-data, t, 10);
 
   if (!*tmp-data || *t || (short) val != val)
   {
diff -rup old/mutt-1.3.2/pattern.c mutt-1.3.2/pattern.c
--- old/mutt-1.3.2/pattern.cTue May  9 11:23:01 2000
+++ mutt-1.3.2/pattern.cFri Jun  9 11:57:56 2000
@@ -266,10 +266,10 @@ int eat_range (pattern_t *pat, BUFFER *s
 if (*s-dptr == '')
 {
   pat-max = M_MAXRANGE;
-  pat-min = strtol (s-dptr + 1, tmp, 0) + 1; /* exclusive range */
+  pat-min = strtol (s-dptr + 1, tmp, 10) + 1; /* exclusive range */
 }
 else
-  pat-min = strtol (s-dptr, tmp, 0);
+  pat-min = strtol (s-dptr, tmp, 10);
 if (toupper (*tmp) == 'K') /* is there a prefix? */
 {
   pat-min *= 1024;
@@ -303,7 +303,7 @@ int eat_range (pattern_t *pat, BUFFER *s
   if (isdigit ((unsigned char) *tmp))
   {
 /* range maximum */
-pat-max = strtol (tmp, tmp, 0);
+pat-max = strtol (tmp, tmp, 10);
 if (toupper (*tmp) == 'K')
 {
   pat-max *= 1024;
@@ -331,7 +331,7 @@ static const char *getDate (const char *
   time_t now = time (NULL);
   struct tm *tm = localtime (now);
 
-  t-tm_mday = strtol (s, p, 0);
+  t-tm_mday = strtol (s, p, 10);
   if (t-tm_mday  1 || t-tm_mday  31)
   {
 snprintf (err-data, err-dsize, _("Invalid day of month: %s"), s);
@@ -345,7 +345,7 @@ static const char *getDate (const char *
 return p;
   }
   p++;
-  t-tm_mon = strtol (p, p, 0) - 1;
+  t-tm_mon = strtol (p, p, 10) - 1;
   if (t-tm_mon  0 || t-tm_mon  11)
   {
 snprintf (err-data, err-dsize, _("Invalid month: %s"), p);
@@ -357,7 +357,7 @@ static const char *getDate (const char *
 return p;
   }
   p++;
-  t-tm_year = strtol (p, p, 0);
+  t-tm_year = strtol (p, p, 10);
   if (t-tm_year  70) /* year 2000+ */
 t-tm_year += 100;
   else if (t-tm_year  1900)
@@ -372,7 +372,7 @

Re: new option?

2000-06-08 Thread Bob Bell

On Thu, Jun 08, 2000 at 12:24:21AM -0500, Carlos P . [EMAIL PROTECTED] wrote:
 could i suggest a new option, say -A, that
 would allow one to start mutt attaching the rest
 of the command line arguments, like this:
 
   mutt -s 'the whole deal' [EMAIL PROTECTED] -A *.pdf
 
 instead of having to enumerate the files:
 
   mutt -s 'the whole deal' [EMAIL PROTECTED] -a f1.pdf -a f2.pdf ...etc.
 
 it also helps in scripts when you want to run things
 unattended.

Why not use the following, especially if you are already in a
script?

mutt -s 'the whole deal' [EMAIL PROTECTED] `for f in *.html;do echo -a $f;done`

Possibly use a variable in place of *.html .

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: new option?

2000-06-08 Thread Bob Bell

On Thu, Jun 08, 2000 at 11:50:10AM -0400, David T-G [EMAIL PROTECTED] wrote:
 %  might want to say "echo -- -a ..." there, in case echo(1) complains.
 % 
 %  echo "-a $f" should work regardless. or even echo " -a $f".
 
 In all of this, though, shouldn't it be
 
   echo -n ...
 
 followed by a final
 
   echo ""
 
 to keep them all on one line?

Perhaps.  echo -n is not portable, though.  I originally quoted
the "-a $f" and then saw it worked without, too.  Basically, I just
jotted down something that worked on Tru64, and left a compatible
implementation up to the implementor :-)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595

 PGP signature


Re: new option?

2000-06-08 Thread Bob Bell

On Thu, Jun 08, 2000 at 01:59:43PM -0500, David Champion [EMAIL PROTECTED] wrote:
 Unquoted backquotes turn all whitespace into plain spaces:
   `ls a b c`  = a b c
 Quoted backquotes do not:
   "`ls a b c`"= a
 b
 c

...depending on the shell.  Moreover, quoted backspaces in my
implementation of sh and bash put each item from ls on a separate line,
even if they weren't before.  However, quotes don't have the same
effect is csh.

But this is a mutt mailing list, not a shell programming one... :)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Different From addressed depending on ?

2000-06-07 Thread Bob Bell

On Wed, Jun 07, 2000 at 07:05:49PM +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
 I have set up a mailbox just for my work emails, could mutt detect that I'm
 viewing a work mailbox when I hit the "m" key, and set the from address to
 my work email address?

This would be done using the folder-hook feature.  As you enter a
folder, you can set whatever mutt options you'd like for the folder.

 Or is there a better condition that could be checked, like the presence of
 my works domain name in the to or cc fields maybe?

This can be done using the send-hook feature.  You use regular
expressions to match the header fields.

Check out the mutt manual for more extensive documentation on
these and other types of hooks.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Tagging messages

2000-06-06 Thread Bob Bell

On Tue, Jun 06, 2000 at 02:42:22PM +0200, smund Skjveland [EMAIL PROTECTED] 
wrote:
 What's the point of being able to tag messages, when you can't do anything
 useful with it, such as deleting all tagged messages in one fell swoop?

Use the semicolon (';') before your desired command.  This applies
the command to all tagged messages, instead of to just the current
one.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Mutt newbie IMAP questions

2000-06-05 Thread Bob Bell

On Mon, Jun 05, 2000 at 12:40:24AM -0400, David T-G [EMAIL PROTECTED] wrote:
 mutt will, indeed, look at all of the messages in a folder when it opens
 that folder.  If you keep all 20k messages in one place, then mutt will
 have to go through them to get all of the headers.  If you can split them
 up somehow so that you don't have so many all in one place (or perhaps
 put the bulk of them where you don't look so often and the active few
 where you *do* look regularly), you should see a nice speed increase.

Is there any plans for a local cache, but not a local mail spool,
similar to Netscape?  I use mutt with IMAP as my main mailer here at
work, and this could greatly speed some things up.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Replying to multiple messages

2000-05-30 Thread Bob Bell

I really like the ability in mutt to be able to reply to (thereby
quoting) multiple messages in a single response.  Also, the threading
of messages in wonderful.  However, when I reply to multiple messages,
often it picks up the "References" from a message other than the one I
want, and subsequent replies are sorted under a different thread than
I desired.

Is there any way to specify which message should be used to set
the "References" field?

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Replying to multiple messages

2000-05-30 Thread Bob Bell

On Tue, May 30, 2000 at 08:55:11PM +0300, Mikko Hnninen [EMAIL PROTECTED] wrote:
 I wonder how something like this could be implemented?  It would be
 quite unpractical to keep a list of tagging order or anything like that.
 Maybe something like "if the current message is tagged, use that as a
 reference"..?

My thoughts exactly.  I'd tag all relevant messages, and then just
hit ';g' or whatever over the message where I want the followups to
appear.  This would be a really nice feature, as my threading is
currently getting messed up... Maybe I should look into it myself...

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: attempt to build mutt-1.3i failed

2000-05-25 Thread Bob Bell

On Sat, May 27, 2000 at 12:18:04AM -1525, Dr. Charles E. Campbell 
[EMAIL PROTECTED] wrote:
 I tried to build mutt-1.3i on an old Indigo^2 (SGI, Irix 5.3).
 It failed because a number of files attempt to include
 mbyte.h which doesn't exist on my machine.

Are you sure you are diagnosing that correctly?  Mutt has an
internal file called mbyte.h.  I had problems compiling relating to
mbyte.h because mutt thought that my wide character functions were
broken.  I temporarily fixed it with --with-wc-funcs.  The same
problem exists on Solaris, so you might be seeing it, too.

P.S. Glad to see you've switched from elm to mutt.  Your message times
are Y2K compliant now :)

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: hooks and patterns

2000-05-22 Thread Bob Bell

On Mon, May 22, 2000 at 06:27:22PM +0100, [EMAIL PROTECTED] [EMAIL PROTECTED] 
wrote:
 0- I accidentaly deleted the "DON'T DELETE THIS MESSAGE" mail message ... should I 
reinstall mutt? What should I do?

This is a message from (I'm guessing) your IMAP server, not from
mutt.  Your server will likely recreate this message.

 1- to set my own email address when sending email: should I use my_hdr From: 
[EMAIL PROTECTED]? Or will that just create a new "From:" field in the header?

Go ahead and use my_hdr.  It will overwrite the current From
field.

 2- To have all messages from the address [EMAIL PROTECTED] moved to a mailbox 
called "mailbox1", must I use procmail for that? Or does mutt do that? (I had a look 
at mbox-hook but it doesn't seem to make any distinction between the messages inside 
a particular mailbox based on the "From:" field; am I right?)

You *might* be able to hack up a mutt solution, but you'll want to
use procmail for this -- that's what it's designed for.

 3- to save a certain message to a file, what command should I use? If I press "s", 
mutt asks for a mailbox to save the message in... 

So just enter the file name... (a mailbox is just a file)

 4- what is the path of the mailboxes mutt creates? At the main index mutt says it is 
looking at "/var/spool/mail/manel", but where is the other mailbox ("mailbox2") I 
created inside mutt?

Depends on the settings in your .muttrc, and how you specified the
mailbox.  Try `find ~ -name mailbox2` and then `find / -name mailbox2`

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3U/14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: wrap problem

2000-05-22 Thread Bob Bell

On Mon, May 22, 2000 at 09:59:21PM +0200, Jan Houtsma [EMAIL PROTECTED] wrote:
 As u can see in the text below something goes wrong with the wrapping at the
 end of the line when i view a part of a multipart message.
 
 In the message itself it goes fine and i see a '+' at the beginning of the
 line where it wrapped.

This is a feature.  This indicates mutt had to wrap the line,
instead of the line being wrapped by the original mailer.  If you
dislike the '+' characters (as I do), use 'set nomarkers' in your
muttrc.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3/U14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Two problems with mutt-1.2

2000-05-19 Thread Bob Bell

On Fri, May 19, 2000 at 07:44:15AM -0400, Hall Stevenson [EMAIL PROTECTED] wrote:
 Yes, the first time I configured mutt, I didn't specify slang or
 ncurses, but according to "./configure --help", it will use slang by
 default. I'm 99% positive it found it -- would it compile if it didn't
 ??

Really?  I have both ncurses and slang installed, and the
configure script picked up ncurses to use.  If you had (n)curses,
configure could have found and used that.

Should mutt -v spit out which library what used?

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3U/14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Re: Remote IMAP folder browsing

2000-05-16 Thread Bob Bell

In the email I'm replying to, did anyone else notice that the
"(Grizz)" in the From line appeared as "\(Grizz\)" in mutt's pager.
I'm wondering if it's just me... I put "(Testing)" in my from line to
see..

On Tue, May 16, 2000 at 12:56:37PM -0400, Dave (Grizz) Glaser [EMAIL PROTECTED] wrote:
 When trying to browse the folders on my IMAP server I get the error:
 
 Folder browsing is not currently implemented.
 
 Does this mean there there is no functionality for it, or I just didn't compile it 
into the program?
 
 I have a department I want to move to IMAP with pine and mutt, but I want them to be 
able to browse the remote folders.
 
 Any suggestions?
 
 Dave

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3U/14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595



Colors and regex matching

2000-05-15 Thread Bob Bell

Is it possible to match against a regex but not color the entire
regex?  This could be useful if I need to match against something
before my regex to ensure that I have a good match, but I don't want
to color that initial text.

-- 
Bob BellCompaq Computer Corporation
Software Engineer   110 Spit Brook Rd - ZKO3-3U/14
TruCluster GroupNashua, NH 03062-2698
[EMAIL PROTECTED] 603-884-0595