Oh really?
Why the fuck? I really should *NOT* be coding at this time... Or ever...
This commit is contained in:
parent
f8d7bd68b2
commit
9a8a879bf6
|
@ -27,6 +27,7 @@ try:
|
||||||
import sys
|
import sys
|
||||||
import smtplib
|
import smtplib
|
||||||
from email.parser import HeaderParser
|
from email.parser import HeaderParser
|
||||||
|
import pprint
|
||||||
|
|
||||||
logger.info('Starting Logging (inside try)')
|
logger.info('Starting Logging (inside try)')
|
||||||
|
|
||||||
|
@ -48,7 +49,7 @@ try:
|
||||||
#content = content.replace(b'\r\n', b'\n').replace(b'\r', b'\n').replace(b'\n', b'\r\n')
|
#content = content.replace(b'\r\n', b'\n').replace(b'\r', b'\n').replace(b'\n', b'\r\n')
|
||||||
header = content.strip()
|
header = content.strip()
|
||||||
headers = dict(HeaderParser().parsestr(header.decode('utf-8')))
|
headers = dict(HeaderParser().parsestr(header.decode('utf-8')))
|
||||||
header_to = headers[To]
|
header_to = headers['To']
|
||||||
|
|
||||||
# See <https://qmail.notqmail.org/qmail-manual-html/man8/qmail-command.html>
|
# See <https://qmail.notqmail.org/qmail-manual-html/man8/qmail-command.html>
|
||||||
# for qmail command docs and supplied environment variables.
|
# for qmail command docs and supplied environment variables.
|
||||||
|
|
Loading…
Reference in New Issue