Oh really?

Why the fuck?  I really should *NOT* be coding at this time...  Or
ever...
This commit is contained in:
Jigme Datse Yli-Rasku 2024-05-30 01:13:23 -07:00
parent f8d7bd68b2
commit 9a8a879bf6
1 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ try:
import sys
import smtplib
from email.parser import HeaderParser
import pprint
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')
header = content.strip()
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>
# for qmail command docs and supplied environment variables.