diff options
author | Christoph Goehre <christoph.goehre@gmx.de> | 2009-07-30 14:16:08 +0200 |
---|---|---|
committer | Christoph Goehre <christoph.goehre@gmx.de> | 2009-07-30 14:16:08 +0200 |
commit | 3ac871e8ac9a04067e2489231650057321ffd5d8 (patch) | |
tree | 97622fdb3c77e2ad9ae7911a036dae80e87afdc7 | |
parent | f44c4e1c5ddb6f31644335df1c0ae6f91d189a20 (diff) | |
download | mini-dinstall-3ac871e8ac9a04067e2489231650057321ffd5d8.tar.bz2 mini-dinstall-3ac871e8ac9a04067e2489231650057321ffd5d8.tar.xz mini-dinstall-3ac871e8ac9a04067e2489231650057321ffd5d8.tar.zst |
add 'X-Mini-Dinstall' header field to upload email
Closes: #539124
-rw-r--r-- | minidinstall/mail.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/minidinstall/mail.py b/minidinstall/mail.py index d1c7c0a..8f97147 100644 --- a/minidinstall/mail.py +++ b/minidinstall/mail.py @@ -34,6 +34,7 @@ def send(smtp_server, smtp_from, smtp_to, body, subject="mini-dinstall mail noti mime_body['Subject'] = subject mime_body['From'] = smtp_from mime_body['To'] = smtp_to + mime_body.add_header('X-Mini-Dinstall', 'YES') # Send via SMTP server smtp = smtplib.SMTP(smtp_server) |