@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2023-06-30 14:13 +0000\n "
14+ "POT-Creation-Date : 2023-07-14 14:14 +0000\n "
1515"PO-Revision-Date : 2021-06-28 01:05+0000\n "
1616"
Last-Translator :
Maciej Olko <[email protected] >, 2021\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -84,6 +84,12 @@ msgid ""
8484"unless the parse fails, in which case a 2-tuple of ``('', '')`` is returned."
8585msgstr ""
8686
87+ msgid ""
88+ "For security reasons, addresses that were ambiguous and could parse into "
89+ "multiple different addresses now cause ``('', '')`` to be returned instead "
90+ "of only one of the *potential* addresses."
91+ msgstr ""
92+
8793msgid ""
8894"The inverse of :meth:`parseaddr`, this takes a 2-tuple of the form "
8995"``(realname, email_address)`` and returns the string value suitable for a :"
@@ -105,7 +111,32 @@ msgid ""
105111"This method returns a list of 2-tuples of the form returned by "
106112"``parseaddr()``. *fieldvalues* is a sequence of header field values as might "
107113"be returned by :meth:`Message.get_all <email.message.Message.get_all>`. "
108- "Here's a simple example that gets all the recipients of a message::"
114+ "Here's a simple example that gets all the recipients of a message:"
115+ msgstr ""
116+
117+ msgid "from email.utils import getaddresses"
118+ msgstr ""
119+
120+ msgid ""
121+ "tos = msg.get_all('to', []) ccs = msg.get_all('cc', []) resent_tos = msg."
122+ "get_all('resent-to', []) resent_ccs = msg.get_all('resent-cc', []) "
123+ "all_recipients = getaddresses(tos + ccs + resent_tos + resent_ccs)"
124+ msgstr ""
125+
126+ msgid ""
127+ "When parsing fails for a single fieldvalue, a 2-tuple of ``('', '')`` is "
128+ "returned in its place. Other errors in parsing the list of addresses such "
129+ "as a fieldvalue seemingly parsing into multiple addresses may result in a "
130+ "list containing a single empty 2-tuple ``[('', '')]`` being returned rather "
131+ "than returning potentially invalid output."
132+ msgstr ""
133+
134+ msgid "Example malformed input parsing:"
135+ msgstr ""
136+
137+ msgid ""
138+ "The 2-tuple of ``('', '')`` in the returned values when parsing fails were "
139+ "added as to address a security issue."
109140msgstr ""
110141
111142msgid ""
0 commit comments