@@ -8,6 +8,7 @@ \section{\module{poplib} ---
88% Even though I put it into LaTeX, I cannot really claim that I wrote
99% it since I just stole most of it from the poplib.py source code and
1010% the imaplib ``chapter''.
11+ % Revised by ESR, January 2000
1112
1213\indexii {POP3}{protocol}
1314
@@ -16,6 +17,12 @@ \section{\module{poplib} ---
1617\rfc {1725}. The \class {POP3} class supports both the minimal and
1718optional command sets.
1819
20+ Note that POP3, though widely supported, is obsolescent. The
21+ implementation quality of POP3 servers varies widely, and too many are
22+ quite poor. If your mailserver supports IMAP, you would be better off
23+ using the \refmodule {IMAP} class, as IMAP servers tend to be better
24+ implemented.
25+
1926A single class is provided by the \module {poplib} module:
2027
2128\begin {classdesc }{POP3}{host\optional {, port}}
@@ -75,12 +82,15 @@ \subsection{POP3 Objects \label{pop3-objects}}
7582\end {methoddesc }
7683
7784\begin {methoddesc }{retr}{which}
78- Retrieve whole message number \var {which}. Result is in form
79- \code {(\var {response}, ['line', ...], \var {octets})}.
85+ Retrieve whole message number \var {which}, and set its seen flag.
86+ Result is in form \code {(\var {response}, ['line', ...], \var {octets})}.
8087\end {methoddesc }
8188
8289\begin {methoddesc }{dele}{which}
83- Delete message number \var {which}.
90+ Flag message number \var {which} for deletion. On most servers
91+ deletions are not actually performed until QUIT (the major exception is
92+ Eudora QPOP, which deliberately violates the RFCs by doing pending
93+ deletes on any disconnect).
8494\end {methoddesc }
8595
8696\begin {methoddesc }{rset}{}
@@ -99,6 +109,12 @@ \subsection{POP3 Objects \label{pop3-objects}}
99109Retrieves the message header plus \var {howmuch} lines of the message
100110after the header of message number \var {which}. Result is in form
101111\code {(\var {response}, ['line', ...], \var {octets})}.
112+
113+ The POP3 TOP command this method uses, unlike the RETR command,
114+ doesn't set the message's seen flag; unfortunately, TOP is poorly
115+ specified in the RFCs and is frequently broken in off-brand servers.
116+ Test this method by hand against the POP3 servers you will use before
117+ trusting it.
102118\end {methoddesc }
103119
104120\begin {methoddesc }{uidl}{\optional {which}}
@@ -109,6 +125,9 @@ \subsection{POP3 Objects \label{pop3-objects}}
109125\var {octets})}.
110126\end {methoddesc }
111127
128+ \begin {seealso }
129+ \seemodule {imap}{The standard Python IMAP module.}
130+ \end {seealso }
112131
113132\subsection {POP3 Example \label {pop3-example } }
114133
0 commit comments