#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:
----------------------------+----------------------

Comment (by RicardoSignes):

 Fair enough, thanks.  I had completely forgotten that 1.5 is a dev
 release.  It's been a long time since the last stable and the meaning of
 that odd second number totally slipped my mind!  This makes me even more
 eager for 1.6 :)

 Maybe you can help me with one last thing in fixing this once and for all,
 because now that I have to fix this, I have two choices:  I can just drop
 the `^`, which will work as well as it did, but be wrong sometimes (which
 I guess I never noticed before) or I can get things matching more
 precisely.  I'd like to do the latter, but I'm finding it impossible,
 probably because of some stupid misunderstanding.

 For example, I have a hook that used to look like this:

 > `folder-hook ^dns my_hdr From: Hostmaster`

 It's meant to work on the folder I change to with "=dns".  If I wrap that
 `^dns` in parens, it doesn't match.  So I tried, instead, `=dns`.  That
 also failed.  My `$folder` is `imaps://[email protected]/INBOX` so
 I tried `imaps://[email protected]/INBOX.dns` and that worked.
 Then I wondered whether I needed to supply that final dot myself, so I
 tried `=.dns` but that also failed.  (By failed, in all these cases, I
 mean that the from address was not changed.)

 I've had a quick look through the source, but I didn't see anything really
 enlightening.  Do you know what I'm missing?

 Thanks for your time and patience.

-- 
Ticket URL: <http://dev.mutt.org/trac/ticket/3788#comment:7>
Mutt <http://www.mutt.org/>
The Mutt mail user agent

Reply via email to