@@ -175,7 +175,9 @@ def sendmail_error(env, result: SMTPResponse):
175175 # python-emails does not support attachments without a name
176176 "test_attachment_without_a_name" ,),
177177 exclude_capabilities = (
178- "root.connection.lazy-connection" , # TODO: python-emails does not handle failed auth correctly
178+ # python-emails does not close connections gracefully on failed auth
179+ # fixed in https://github.com/lavr/python-emails/pull/173
180+ "root.connection.lazy-connection" ,
179181 "root.connection.eager-connection" ,
180182 "root.general-crlf-injection.detection" ,
181183 "root.headers.crlf-injection.mitigation" ,
@@ -186,8 +188,9 @@ def sendmail_error(env, result: SMTPResponse):
186188 "test_non-ascii_content_in_send-message_with_8BITMIME_option_and_server_support" , # 8bitmime is sent but body is not 8bitmime
187189 "test_Handle_421_at_start_of_data_command" ,
188190 "test_Handle_421_during_data_command" ,
189- # The library should problably automatically detect whether smtputf8 is required
191+ # python-emails does does not support SMTPUTF8 on its own
190192 "test_international_sender_mailbox_in_send-message_with_SMTPUTF8_support" ,
191193 "test_international_recipient_mailbox_in_send-message_with_SMTPUTF8_support" ,
192194 "test_Send_a_message_with_empty_recipient" ,
193- "test_set_header_with_unicode_value" )) # Encoding of unicode in header value seems wrong (underscore instead of space)
195+ # python-emails also encodes the body when a header field is unicode
196+ "test_set_header_field_with_unicode_value" ))
0 commit comments