On Sat, Feb 13, 2016 at 07:45:02PM +0100, Christian Böhme wrote: > Writing a configuration file (/the/config/file) containing > > send-hook '~t (ab|cd)$' 'set my_var = xyz' > > at line 123. > > * What was the outcome of this action? > > Upon startup, mutt complains > > Error in /the/config/file, line 123: '(ab': Unmatched ( or \( > > * What outcome did you expect instead? > > Mutt starting up and properly compiling the regular expression.
>From the mutt manual available here: http://www.mutt.org/doc/manual/manual-4.html#regexp """ Note that if a regular expression contains parenthesis, or a veritical bar ("|"), you must enclose the expression in double or single quotes since those characters are also used to separate different parts of Mutt's pattern language. For example, ~f "me@(mutt\.org|cs\.hmc\.edu)" Without the quotes, the parenthesis would truncate the regular expression to simply me@, which is probably not what you want. """ I'm closing this bug as wontfix because this is not a bug. Cheers Antonio