mirror of
https://github.com/chatmail/relay.git
synced 2026-05-18 09:18:57 +00:00
also test that external addresses fail to be forged
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user