diff options
author | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-11-01 11:46:10 -0400 |
---|---|---|
committer | Konstantin Ryabitsev <konstantin@linuxfoundation.org> | 2021-11-01 11:46:10 -0400 |
commit | d7c823c519a8158127626e259941c53ae7c7a26a (patch) | |
tree | 0be368c94847e3602e5d60d5f534b410d3535605 /b4/__init__.py | |
parent | 750286a7aba7dc091b4407c9f31157129aade588 (diff) | |
download | b4-d7c823c519a8158127626e259941c53ae7c7a26a.tar.gz |
ty: fix problems with smtplib and 8BITMIME
There appears to be a bug in smtplib that doesn't properly support 8-bit
content even when upstream SMTP gateway supports 8BITMIME (they all do,
it's not 90s any more). Work around this by passing the message payload
as bytes instead of string.
Signed-off-by: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Diffstat (limited to 'b4/__init__.py')
-rw-r--r-- | b4/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/b4/__init__.py b/b4/__init__.py index adbcf7d..14224a7 100644 --- a/b4/__init__.py +++ b/b4/__init__.py @@ -2505,6 +2505,7 @@ def get_smtp(identity: Optional[str] = None): raise smtplib.SMTPException('Invalid smtpport entry in %s' % sectname) encryption = sconfig.get('smtpencryption') + logger.info('Connecting to %s:%s', server, port) # We only authenticate if we have encryption if encryption: if encryption in ('tls', 'starttls'): |