#3782: header cache is not updated when a particular message is edited via
external script
--------------------------+----------------------
 Reporter:  nagakiran     |      Owner:  mutt-dev
     Type:  defect        |     Status:  new
 Priority:  minor         |  Milestone:
Component:  header cache  |    Version:  1.5.23
 Keywords:                |
--------------------------+----------------------
 Have added a macro to add/remove custom tags for messages from
 index/pager.


 {{{
 macro index,pager ",ti"   "<pipe-message>formail -c -d -xMessage-id: -s |
 tr -d \"<>\" | notmuch_tag +interesting_tag<enter>" "Add 'interesting_tag'
 tag"   #Can add <sync-mailbox> here
 macro index,pager ",tI"   "<pipe-message>formail -c -d -xMessage-id: -s |
 tr -d \"<>\" | notmuch_tag -interesting_tag<enter>" "Remove
 'interesting_tag' tag"
 }}}


 Basically these macros add/remove corresponding tag to "X-Label:" header
 on message.
 Like after adding "interesting_tag" on a certain message, it's header
 looks like:


 {{{
 Date: Fri, 17 Jul 2015 17:06:09 +0530
 From: ......
 To: ......
 Subject: xxxxxxxx
 X-Label: interesting_tag
 }}}


 Now, after adding "interesting_tag" on certain message, tried to limit
 messages using expression "~y interesting_tag"
 But, surprisingly it didn't show any messages.

 Looks, the issue is that it's looking at header_cache to derive limit
 messages but in this case header_cache is not updated.

 After deleting "header_cache" directory, it built the cache again and this
 limit expression worked fine.

 So, "header_cache" need to be updated when a message is modified via
 external script.
 Is there anyway to update header_cache in this case or any workarounds for
 this.

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

Reply via email to