diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-03-12 13:54:36 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2020-03-12 13:54:36 -0400 |
commit | 39dc465c2f0735ff590b56068523abdbcc89d800 (patch) | |
tree | 631d19a041963e04b7eee4fb40a013dfb39c0195 | |
parent | 4c7cf63cbc2d3c4cc4b333df67a6b6355cdf25e6 (diff) | |
download | korg-helpers-39dc465c2f0735ff590b56068523abdbcc89d800.tar.gz |
Preserve original order of identical trailers
Because we go backwards from the --- line, multiple identical trailers
like "Signed-off-by" ended up reversed from the initial order. This
commit reverses them back.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | get-lore-mbox.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/get-lore-mbox.py b/get-lore-mbox.py index 58244bc..e5ae1af 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.15' +VERSION = '0.2.16' # You can use bash-style globbing here WANTHDRS = [ @@ -540,6 +540,7 @@ class LoreMessage: btrailers.append(matches.groups()) # Now we add mix-in trailers + btrailers.reverse() trailers = btrailers + self.followup_trailers added = list() if trailer_order is None: |