Commit f7ffa92c authored by Fred Drake's avatar Fred Drake

Fix typo in example found by Anthony Starks <anthony_starks@merck.com>,

reported to me by Piers Lauder <piers@cs.su.oz.au>.
parent 91aaa92c
......@@ -222,7 +222,7 @@ M.LOGIN(getpass.getuser(), getpass.getpass())
M.SELECT()
typ, data = M.SEARCH(None, 'ALL')
for num in string.split(data[0]):
typ, data - M.FETCH(num, '(RFC822)')
typ, data = M.FETCH(num, '(RFC822)')
print 'Message %s\n%s\n' % (num, data[0][1])
M.LOGOUT()
\end{verbatim}
......
......@@ -222,7 +222,7 @@ M.LOGIN(getpass.getuser(), getpass.getpass())
M.SELECT()
typ, data = M.SEARCH(None, 'ALL')
for num in string.split(data[0]):
typ, data - M.FETCH(num, '(RFC822)')
typ, data = M.FETCH(num, '(RFC822)')
print 'Message %s\n%s\n' % (num, data[0][1])
M.LOGOUT()
\end{verbatim}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment