in message <[EMAIL PROTECTED]>, wrote Louis-David Mitterrand thusly... > > After much struggle understanding mutt's quoting rules I finally came up > with that kind of stuff, which works: > > folder-hook =[a-z] score ~s'(\\\\[ot\\\\]\\|newbie\\|off-topic\\|your\\\ >mail\\|(unidentified\\|no)\\\ suject)' -10 > > Notice: > > - quadruple backslash to escape a [, > - triple backslash to escape a space, > - double backslash for a an alternation pipe (non-escaped),
...or, if you use double- and single quotes carefully, you could just use this (untested)... folder-hook =[a-z] "score '~s \"([ot]|newbie|off-topic|your mail|unidentified|no subject)\"' -10" ...i haven't used scoring, but i have something similar as far as quoting is concerned... # delete messages, mostly replies, if 'X-FreeBSD-CVS-Branch:' header # is missing # ---- # beginning of X-FreeBSD... header is escaped so that mutt does not # create "Ctrl-X" character out of plain text "^X" character combination # ---- folder-hook IN\.f-cvs "push '<delete-pattern>!~h \"^\\X-FreeBSD-CVS-Branch:\"<enter>'"