Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f7a28c

Browse files
committed
Doc update from Piers Lauder see changes for imaplib.py version 2.16.
1 parent 8c06221 commit 5f7a28c

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

Doc/lib/libimaplib.tex

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ \section{\module{imaplib} ---
4141
exception.
4242
\end{excdesc}
4343

44+
\begin{excdesc}{IMAP4.readonly}
45+
This exception is raised when a writeable mailbox has its status changed by the server. This is a
46+
sub-class of \exception{IMAP4.error}. Some other client now has write permission,
47+
and the mailbox will need to be re-opened to re-obtain write permission.
48+
\end{excdesc}
49+
4450
The following utility functions are defined:
4551

4652
\begin{funcdesc}{Internaldate2tuple}{datestr}
@@ -84,6 +90,13 @@ \subsection{IMAP4 Objects \label{imap4-objects}}
8490
All IMAP4rev1 commands are represented by methods of the same name,
8591
either upper-case or lower-case.
8692

93+
All arguments to commands are converted to strings, except for
94+
AUTHENTICATE, and the last argument to APPEND which is passed as
95+
an IMAP4 literal. If necessary (the string contains
96+
IMAP4 protocol-sensitive characters and isn't enclosed with either parentheses or
97+
double quotes) each string is quoted. However, the \var{password}
98+
argument to the LOGIN command is always quoted.
99+
87100
Each command returns a tuple: \code{(\var{type}, [\var{data},
88101
...])} where \var{type} is usually \code{'OK'} or \code{'NO'},
89102
and \var{data} is either the text from the command response, or
@@ -144,6 +157,7 @@ \subsection{IMAP4 Objects \label{imap4-objects}}
144157

145158
\begin{methoddesc}{login}{user, password}
146159
Identify the client using a plaintext password.
160+
The \var{password} will be quoted.
147161
\end{methoddesc}
148162

149163
\begin{methoddesc}{logout}{}
@@ -157,6 +171,20 @@ \subsection{IMAP4 Objects \label{imap4-objects}}
157171
Returned data are tuples of message part envelope and data.
158172
\end{methoddesc}
159173

174+
\begin{methoddesc}{noop}{}
175+
Send NOOP to server.
176+
\end{methoddesc}
177+
178+
\begin{methoddesc}{open}{host, port}
179+
Opens socket to \var{port} at \var{host}.
180+
You may override this method.
181+
\end{methoddesc}
182+
183+
\begin{methoddesc}{partial}{message_num, message_part, start, length}
184+
Fetch truncated part of a message.
185+
Returned data is a tuple of message part envelope and data.
186+
\end{methoddesc}
187+
160188
\begin{methoddesc}{recent}{}
161189
Prompt server for an update. Returned data is \code{None} if no new
162190
messages, else value of \samp{RECENT} response.
@@ -183,6 +211,10 @@ \subsection{IMAP4 Objects \label{imap4-objects}}
183211
to the mailbox are not allowed.
184212
\end{methoddesc}
185213

214+
\begin{methoddesc}{socket}{}
215+
Returns socket instance used to connect to server.
216+
\end{methoddesc}
217+
186218
\begin{methoddesc}{status}{mailbox, names}
187219
Request named status conditions for \var{mailbox}.
188220
\end{methoddesc}

0 commit comments

Comments
 (0)