smtpdummy: Add (incorrect) message ids

This commit is contained in:
Geoffrey Frogeye 2021-10-17 14:33:53 +02:00
parent 72e37e0921
commit d689529aae

View file

@ -9,6 +9,7 @@ import io
import pprint import pprint
import subprocess import subprocess
import sys import sys
import uuid
if __name__ == "__main__": if __name__ == "__main__":
@ -72,6 +73,7 @@ if __name__ == "__main__":
if args.password: if args.password:
password = args.password password = args.password
args.password = "********" args.password = "********"
mid = f"{uuid.uuid1()}@{args.helo}"
# Transmission content # Transmission content
@ -89,6 +91,7 @@ XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X"""
From: {getattr(args, 'from')} From: {getattr(args, 'from')}
Subject: {args.subject} Subject: {args.subject}
To: {args.to} To: {args.to}
Message-ID: {mid}
Hello there, Hello there,