<<< Date Index >>>     <<< Thread Index >>>

mutt/2181: folder-hook trims spaces in to_chars



>Number:         2181
>Notify-List:    mike@xxxxxxxxxxxxxxx
>Category:       mutt
>Synopsis:       folder-hook trims spaces in to_chars
>Confidential:   no
>Severity:       normal
>Priority:       medium
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 10 23:20:42 +0100 2006
>Originator:     Mike
>Release:        1.4.2.1i
>Organization:
>Environment:
Mutt 1.4.2.1i (2004-02-12)
Copyright (C) 1996-2002 Michael R. Elkins and others.
Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
Mutt is free software, and you are welcome to redistribute it
under certain conditions; type `mutt -vv' for details.

System: Linux 2.6.9-22.0.1.EL (i686) [using ncurses 5.4]
Compile options:
-DOMAIN
-DEBUG
-HOMESPOOL  +USE_SETGID  +USE_DOTLOCK  +DL_STANDALONE  
+USE_FCNTL  -USE_FLOCK
-USE_POP  -USE_IMAP  -USE_GSS  -USE_SSL  -USE_SASL  
+HAVE_REGCOMP  -USE_GNU_REGEX  
+HAVE_COLOR  +HAVE_START_COLOR  +HAVE_TYPEAHEAD  +HAVE_BKGDSET  
+HAVE_CURS_SET  +HAVE_META  +HAVE_RESIZETERM  
+HAVE_PGP  -BUFFY_SIZE -EXACT_ADDRESS  -SUN_ATTACHMENT  
+ENABLE_NLS  -LOCALES_HACK  +HAVE_WC_FUNCS  +HAVE_LANGINFO_CODESET  
+HAVE_LANGINFO_YESEXPR  
+HAVE_ICONV  -ICONV_NONTRANS  +HAVE_GETSID  -HAVE_GETADDRINFO  
ISPELL="/usr/bin/ispell"
SENDMAIL="/usr/sbin/sendmail"
MAILPATH="/var/mail"
PKGDATADIR="/usr/local/share/mutt"
SYSCONFDIR="/usr/local/etc"
EXECSHELL="/bin/sh"
-MIXMASTER
To contact the developers, please mail to <mutt-dev@xxxxxxxx>.
To report a bug, please use the flea(1) utility.
>Description:
Hi,

I have a mailbox (alterbox) that contains messages to alerts and pager-alerts.
I decided that it would be clever to this:

set alternates = pager-alerts@xxxxxxx
set to_chars = " !!!FL"

The idea being that I want to see a "!" next to any messages sent to
pager-alerts.  Actually this works fine except that I have more than one
mailbox, and I don't want this behavior elsewhere.  Easy solution:

folder-hook =alertbox set alternates = pager-alerts@xxxxxxx
folder-hook =alertbox set to_chars = " !!!FL"

The problem is, all messages get "!" in front of them.  Weird.  So I try
changing the line to:

folder-hook =alertbox set to_chars = "wxyzFL"

Then I get what I would expect, "w" for alerts, and "x" for pager-alerts.
So then I tried:

folder-hook =alertbox set to_chars = " xyzFL"

Now I get "x" for alerts, and "y" for pager-alerts!  I'll bet you already know
what happens with:

folder-hook =alertbox set to_chars = "  yzFL"

That's right, I get "y" for alerts, and "z" for pager-alerts.

It seems that mutt is having some problems in its config parsing routine and
stripping spaces when it clearly should not.

This problem appears in Mutt 1.4.1i and Mutt 1.4.2.1i on RedHat EL4 (WS).

Otherwise, I have to say that I love mutt, I've been using it every day
since 1996.  Keep up the good work!

Mike
>How-To-Repeat:
>Fix:
Unknown
>Add-To-Audit-Trail:

>Unformatted: