diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-20 16:00:02 -0500 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-02-20 16:00:02 -0500 |
commit | 54fc46db01c66eaa85bd7f16a658cd15006936dc (patch) | |
tree | 5a53cf95d0384dd83de5712277f60cd0bfcdf8bc | |
parent | f60d794e2d54daab132aa7bba48e077865c9fa28 (diff) | |
download | korg-helpers-54fc46db01c66eaa85bd7f16a658cd15006936dc.tar.gz |
Deal with missing messages in the thread
When doing trailer collating, don't break if there are missing messages
in the thread.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | get-lore-mbox.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/get-lore-mbox.py b/get-lore-mbox.py index e50044b..4a077a5 100755 --- a/get-lore-mbox.py +++ b/get-lore-mbox.py @@ -30,7 +30,7 @@ charset.add_charset('utf-8', None) emlpolicy = email.policy.EmailPolicy(utf8=True, cte_type='8bit', max_line_length=None) logger = logging.getLogger('get-lore-mbox') -VERSION = '0.2.4' +VERSION = '0.2.5' # You can use bash-style globbing here WANTHDRS = [ @@ -156,7 +156,7 @@ class LoreMailbox: break if found: break - elif pmsg.in_reply_to: + elif pmsg.in_reply_to and pmsg.in_reply_to in self.msgid_map: lvl += 1 trailers += pmsg.trailers pmsg = self.msgid_map[pmsg.in_reply_to] |