Length of regex/pattern for "color"
Hi,
I am using mutt 1.5.4i with...
patch-1.5.4.dw.confirm-crypt-hook.1
patch-1.5.4.dw.multiple-crypt-hook.2
patch-1.5.4.dw.crypt-autoselectkey.1
patch-1.5.4.dw.mbox-hook.1
1.5.4.nr.tag_prefix_cond
1.3.28.nr.threadcomplete
vvv.quote
patch-1.5.3.cd.ifdef.1
patch-1.5.3.cd.edit_threads.9.3
vvv.initials
rr.compressed
I have quite a few (FreeBSD) ports installed, and want to identify
any related messages easily in the sea of all the ports related
messages.
So, i decided to differentiate them via "color" command. It seems, y
trial and error, that the length of the regex/pattern is around 245
characters. My regex is quite longer than that. Length of one of the
desired OR'd patterns, e.g. A|b|x, is 1285, excluding the parentheses,
quotes, & operator/context.
My question is how should i increase the allowable length of
a pattern? Is it even sane thing to do?
The only solution, make that workaround, seems is to divide the
pattern in ~245-character blocks to be used in otherwise identical
"color" commands. Something like...
color index brightyellow black "~s '(<245 characters pattern>)'"
color index brightyellow black "~s '(<another 245>)'"
color index brightyellow black "~s '(<another 245>)'"
...
Any (other) suggestions (except to filter the interesting messages
in a separate mailbox, which i already am doing)?
- Parv
--