From ccc9b6abb66ebda0b91b4e21f8ec2fb2e87390f7 Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Wed, 27 Dec 2023 18:33:06 +0100 Subject: add a --dev mode --- tests/rm-mail-parser-expected-struct.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 tests/rm-mail-parser-expected-struct.py (limited to 'tests/rm-mail-parser-expected-struct.py') diff --git a/tests/rm-mail-parser-expected-struct.py b/tests/rm-mail-parser-expected-struct.py deleted file mode 100644 index 3dbc56e..0000000 --- a/tests/rm-mail-parser-expected-struct.py +++ /dev/null @@ -1,17 +0,0 @@ -from os import listdir -from os.path import isfile, join -import sys - -path = sys.argv[1] -onlyfiles = [join(path, f) for f in listdir(path) if isfile(join(path, f)) and len(f) > 4 and f[-4:] == ".txt"] - -for p in onlyfiles: - g = p[:-4] + ".eml" - print(f"{p} -> {g}") - with open(p, 'r+b') as inp: - with open(g, 'w+b') as out: - for line in inp: - if b"EXPECTED STRUCTURE" in line: - break - out.write(line) - -- cgit v1.2.3