summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2015-05-16 19:05:53 (GMT)
committerR David Murray <rdmurray@bitdance.com>2015-05-16 19:05:53 (GMT)
commitb8cd3e4e30d3219ecf00ce7f114a15746561ea87 (patch)
tree062ec0ea886b1015e47f932d4676ee2dced7c85d /Doc/library
parent8eb1f077c2be03f72ef31ddd2cfe805ffbfbd524 (diff)
downloadcpython-b8cd3e4e30d3219ecf00ce7f114a15746561ea87.zip
cpython-b8cd3e4e30d3219ecf00ce7f114a15746561ea87.tar.gz
cpython-b8cd3e4e30d3219ecf00ce7f114a15746561ea87.tar.bz2
#21804: Add RFC 6856 (UTF8) support to poplib.
Patch by Milan Oberkirch.
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/poplib.rst9
1 files changed, 9 insertions, 0 deletions
diff --git a/Doc/library/poplib.rst b/Doc/library/poplib.rst
index 45baad9..fee6298 100644
--- a/Doc/library/poplib.rst
+++ b/Doc/library/poplib.rst
@@ -194,6 +194,15 @@ An :class:`POP3` instance has the following methods:
the unique id for that message in the form ``'response mesgnum uid``, otherwise
result is list ``(response, ['mesgnum uid', ...], octets)``.
+
+.. method:: POP3.utf8()
+
+ Try to switch to UTF-8 mode. Returns the server response if sucessful,
+ raises :class:`error_proto` if not. Specified in :RFC:`6856`.
+
+ .. versionadded:: 3.5
+
+
.. method:: POP3.stls(context=None)
Start a TLS session on the active connection as specified in :rfc:`2595`.