Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(73435)

Delta Between Two Patch Sets: Doc/library/poplib.rst

Issue 21804: Implement thr UTF8 command (RFC 6856) in poplib.
Left Patch Set: Created 5 years, 2 months ago
Right Patch Set: Created 5 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « no previous file | Lib/poplib.py » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 :mod:`poplib` --- POP3 protocol client 1 :mod:`poplib` --- POP3 protocol client
2 ====================================== 2 ======================================
3 3
4 .. module:: poplib 4 .. module:: poplib
5 :synopsis: POP3 protocol client (requires sockets). 5 :synopsis: POP3 protocol client (requires sockets).
6 .. sectionauthor:: Andrew T. Csillag 6 .. sectionauthor:: Andrew T. Csillag
7 .. revised by ESR, January 2000 7 .. revised by ESR, January 2000
8 8
9 .. index:: pair: POP3; protocol 9 .. index:: pair: POP3; protocol
10 10
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 .. method:: POP3.uidl(which=None) 191 .. method:: POP3.uidl(which=None)
192 192
193 Return message digest (unique id) list. If *which* is specified, result conta ins 193 Return message digest (unique id) list. If *which* is specified, result conta ins
194 the unique id for that message in the form ``'response mesgnum uid``, otherwi se 194 the unique id for that message in the form ``'response mesgnum uid``, otherwi se
195 result is list ``(response, ['mesgnum uid', ...], octets)``. 195 result is list ``(response, ['mesgnum uid', ...], octets)``.
196 196
197 197
198 .. method:: POP3.utf8() 198 .. method:: POP3.utf8()
199 199
200 Switch to UTF-8 mode if the server supports it. Returns the servers 200 Try to switch to UTF-8 mode. Returns the server response if sucessful,
201 response. Specified in :RFC:`6856`. 201 raises :class:`error_proto` if not. Specified in :RFC:`6856`.
202 202
203 .. versionadded:: 3.5 203 .. versionadded:: 3.5
204 204
205 205
206 .. method:: POP3.stls(context=None) 206 .. method:: POP3.stls(context=None)
207 207
208 Start a TLS session on the active connection as specified in :rfc:`2595`. 208 Start a TLS session on the active connection as specified in :rfc:`2595`.
209 This is only allowed before user authentication 209 This is only allowed before user authentication
210 210
211 *context* parameter is a :class:`ssl.SSLContext` object which allows 211 *context* parameter is a :class:`ssl.SSLContext` object which allows
(...skipping 26 matching lines...) Expand all
238 M.user(getpass.getuser()) 238 M.user(getpass.getuser())
239 M.pass_(getpass.getpass()) 239 M.pass_(getpass.getpass())
240 numMessages = len(M.list()[1]) 240 numMessages = len(M.list()[1])
241 for i in range(numMessages): 241 for i in range(numMessages):
242 for j in M.retr(i+1)[1]: 242 for j in M.retr(i+1)[1]:
243 print(j) 243 print(j)
244 244
245 At the end of the module, there is a test section that contains a more extensive 245 At the end of the module, there is a test section that contains a more extensive
246 example of usage. 246 example of usage.
247 247
LEFTRIGHT
« no previous file | Lib/poplib.py » ('j') | Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Toggle Comments ('s')

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+