When removing a messge from all sequences, don't remove from 'cur',
which needs to stay unless explicitly set.
This commit is contained in:
parent
3e1fe89a0d
commit
3508d60f99
@ -522,12 +522,15 @@ class Folder:
|
||||
pass
|
||||
|
||||
# Remove one or more messages from all sequeuces (including last)
|
||||
# -- but not from 'cur'!!!
|
||||
def removefromallsequences(self, list):
|
||||
if hasattr(self, 'last') and self.last in list:
|
||||
del self.last
|
||||
sequences = self.getsequences()
|
||||
changed = 0
|
||||
for name, seq in sequences.items():
|
||||
if name == 'cur':
|
||||
continue
|
||||
for n in list:
|
||||
if n in seq:
|
||||
seq.remove(n)
|
||||
|
Loading…
x
Reference in New Issue
Block a user