Labels in virtual folders
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
VM |
Fix Committed
|
Medium
|
Uday Reddy |
Bug Description
Julian Bradfield reports (viewmail-info, 2013-01-18):
This bug happens in the 8.2.x branch.
Create a folder (say /tmp/I) containing a single message.
Visit the folder, and add the label "a" to the message.
Quit the folder.
Now do
(setq vm-virtual-
'(
("V" (("/tmp/I") (any)))))
Visit the virtual folder V.
Add the label "b" to the message.
The summary mode line will show the message as having labels "a" and
"b", as expected; but in fact the message has only the new label "b".
To see this, save the folder, quit, and re-visit the real folder (or
the virtual folder).
The thing that happened this morning was that I spent so long staring
at one line in the debugger that the flush timer fired while I was
doing so, which magically made the bug not happen.
The following patch appears to fix the bug:
*** vm-undo.el 2012/11/26 15:09:10 1.1
--- vm-undo.el 2013/01/08 08:27:02 1.2
***************
*** 597,603 ****
! (if (eq vm-flush-interval t)
(vm-
(vm-
--- 597,604 ----
! ;; deferring stuffing breaks labels in virtual folders
! (if t ;(eq vm-flush-interval t)
(vm-
(vm-
This does raise the question in my mind as to whether the other
similarly deferred uses of vm-stuff-
dangerous.
Changed in vm: | |
milestone: | 8.2.2a → 8.2.1a |
Changed in vm: | |
milestone: | 8.2.1a → 8.2.90a |
Confirmed that this bug is present in the 8.2.x branch, but not the trunk.
It is either fixed in the trunk or perhaps became harder to reproduce. So,
I will have to investigate why it is happening in the 8.2.x branch.