diff options
author | Guido van Rossum <guido@python.org> | 1996-11-12 04:15:47 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1996-11-12 04:15:47 (GMT) |
commit | 3508d60f99f91a81c0e903d8db16eb7fe69a8388 (patch) | |
tree | 9dc9cb24adcc1a4d070118c0be839e543902afeb /Lib/mhlib.py | |
parent | 3e1fe89a0d3a66fca38f4381391f9c48b1b22fb6 (diff) | |
download | cpython-3508d60f99f91a81c0e903d8db16eb7fe69a8388.zip cpython-3508d60f99f91a81c0e903d8db16eb7fe69a8388.tar.gz cpython-3508d60f99f91a81c0e903d8db16eb7fe69a8388.tar.bz2 |
When removing a messge from all sequences, don't remove from 'cur',
which needs to stay unless explicitly set.
Diffstat (limited to 'Lib/mhlib.py')
-rw-r--r-- | Lib/mhlib.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/mhlib.py b/Lib/mhlib.py index f8599b7..dd38762 100644 --- a/Lib/mhlib.py +++ b/Lib/mhlib.py @@ -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) |