#3788: caret (^) changed from regex meaning to current mailbox
----------------------------+----------------------
Reporter: RicardoSignes | Owner: mutt-dev
Type: defect | Status: closed
Priority: critical | Milestone:
Component: mutt | Version:
Resolution: invalid | Keywords:
----------------------------+----------------------
Changes (by kevin8t8):
* status: new => closed
* resolution: => invalid
Comment:
The caret did not change meaning. It has meant "current mailbox" at the
beginning of a folder-hook for a long time. During evaluation of the
muttrc, however, "current mailbox" expands to the empty string. So
effectively the caret did nothing: it did not anchor the regexp to the
beginning of the string.
This caused confusion, so commits 6d733cab6b45 and 75e398daa94c added
documentation and a warning about this.
See http://dev.mutt.org/doc/manual.html#mailbox-hook for more explanation,
but if you want the "beginning of string" meaning, one workaround is using
parenthesis:
{{{
folder-hook (^whatever) ...
}}}
--
Ticket URL: <http://dev.mutt.org/trac/ticket/3788#comment:1>
Mutt <http://www.mutt.org/>
The Mutt mail user agent