also test that external addresses fail to be forged

This commit is contained in:
holger krekel
2023-10-18 15:12:14 +02:00
parent 087ae78edc
commit 6dcd686701
3 changed files with 23 additions and 9 deletions

View File

@@ -84,6 +84,15 @@ class ImapConn:
assert status == "OK"
return results
def fetch_all_messages(self):
print("imap-fetch all messages")
results = self.fetch_all()
messages = []
for item in results:
if len(item) == 2:
messages.append(item[1].decode())
return messages
@pytest.fixture
def smtp(maildomain):