diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-06-27 14:41:08 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2022-06-27 14:41:08 -0400 |
commit | f2680af521673c402282324d478ae682ef969c14 (patch) | |
tree | df17014c9c753dafff87349a6164cbe4dfff81e9 | |
parent | ead2b92216c135152f28f9847b52479fe279edf8 (diff) | |
download | korg-helpers-f2680af521673c402282324d478ae682ef969c14.tar.gz |
Allow list-id to be a globbing match
Add ability to specify list-ids as a globbling match (even if it's just
'*' for "everything").
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
-rwxr-xr-x | list-archive-maker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/list-archive-maker.py b/list-archive-maker.py index 9db319e..393e294 100755 --- a/list-archive-maker.py +++ b/list-archive-maker.py @@ -185,7 +185,7 @@ def process_archives(sources, outdir, msgids, listids, rejectsfile, asmaildir): elif lhdrname == 'list-id': for listid in listids: - if lhdrval.find(listid) >= 0: + if lhdrval.find(listid) >= 0 or fnmatch.fnmatch(lhdrval, listid): newhdrs.append((hdrname, hdrval)) is_our_list = True break |