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

mutt/2363: matching EOL in "color body ... '_$'" fails because mistreatment of EOL (\n)



>Number:         2363
>Notify-List:    
>Category:       mutt
>Synopsis:       matching EOL in "color body ... '_$'" fails because 
>mistreatment of EOL (\n)
>Confidential:   no
>Severity:       normal
>Priority:       low
>Responsible:    mutt-dev
>State:          open
>Keywords:       
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 18 15:07:01 +0200 2006
>Originator:     Rado S
>Release:        tested with 1.5.11 debian and 1.5.6 solaris 8
>Organization:
>Environment:
debian + solaris
>Description:
tpope (from #mutt) found out that "color body ... '_$'" won't
match a line ending in "_", because it considers \n as part of
the line and "$" matching _after_ the \n.

(might affect other "color" elements, or even other places where regexp for 
multilines are matched)
>How-To-Repeat:
Compare the following two lines when used in a muttrc:
color body yellow blue "[a-z]$"
color body green  red  "[a-z]\012$"
>Fix:
>Add-To-Audit-Trail:

>Unformatted: