Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ EmailMessage
Class
EmailMessage
Lib/email/message.py:1212–1217 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1210
1211
1212
class
EmailMessage(MIMEPart):
1213
1214
def
set_content(self, *args, **kw):
1215
super().set_content(*args, **kw)
1216
if
'MIME-Version'
not in self:
1217
self[
'MIME-Version'
] =
'1.0'
Callers
15
main
Function · 0.90
email-mime.py
File · 0.90
email-alternative.py
File · 0.90
email-simple.py
File · 0.90
emit
Method · 0.90
setUp
Method · 0.90
test_send_message_error_on_non_ascii_addrs_if_no_smtputf8
Method · 0.90
test_name_field_not_included_in_envelop_addresses
Method · 0.90
test_send_message_uses_smtputf8_if_addrs_non_ascii
Method · 0.90
test_defaults_handle_spaces_between_encoded_words_when_folded
Method · 0.90
test_defaults_handle_spaces_when_encoded_words_is_folded_in_middle
Method · 0.90
test_defaults_handle_spaces_at_start_of_subject
Method · 0.90
Calls
no outgoing calls
Tested by
15
setUp
Method · 0.72
test_send_message_error_on_non_ascii_addrs_if_no_smtputf8
Method · 0.72
test_name_field_not_included_in_envelop_addresses
Method · 0.72
test_send_message_uses_smtputf8_if_addrs_non_ascii
Method · 0.72
test_defaults_handle_spaces_between_encoded_words_when_folded
Method · 0.72
test_defaults_handle_spaces_when_encoded_words_is_folded_in_middle
Method · 0.72
test_defaults_handle_spaces_at_start_of_subject
Method · 0.72
test_defaults_handle_spaces_at_start_of_continuation_line
Method · 0.72
test_defaults_handle_spaces_at_start_of_continuation_line_2
Method · 0.72
test_ew_folding_round_trip_1
Method · 0.72
test_ew_folding_round_trip_2
Method · 0.72
test_smtputf8_policy
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…