]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF #1297059, doc incorrect return type for search() method. (There is a description...
authorNeal Norwitz <nnorwitz@gmail.com>
Fri, 23 Sep 2005 04:26:24 +0000 (04:26 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Fri, 23 Sep 2005 04:26:24 +0000 (04:26 +0000)
Doc/lib/libimaplib.tex

index 2c4555dbae7e9abbbf0bfba2056494cda7f9af1d..6f09551342f435d92768525d8a8ca0d1586e97b9 100644 (file)
@@ -327,8 +327,7 @@ data = authobject(response)
 \end{methoddesc}
 
 \begin{methoddesc}{search}{charset, criterion\optional{, ...}}
-  Search mailbox for matching messages.  Returned data contains a space
-  separated list of matching message numbers.  \var{charset} may be
+  Search mailbox for matching messages.  \var{charset} may be
   \code{None}, in which case no \samp{CHARSET} will be specified in the
   request to the server.  The IMAP protocol requires that at least one
   criterion be specified; an exception will be raised when the server
@@ -338,10 +337,10 @@ data = authobject(response)
 
 \begin{verbatim}
 # M is a connected IMAP4 instance...
-msgnums = M.search(None, 'FROM', '"LDJ"')
+typ, msgnums = M.search(None, 'FROM', '"LDJ"')
 
 # or:
-msgnums = M.search(None, '(FROM "LDJ")')
+typ, msgnums = M.search(None, '(FROM "LDJ")')
 \end{verbatim}
 \end{methoddesc}