Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
WMc @ s d Z d d k Z d d k Z d d g Z d e f d YZ d Z d Z d Z d Z e e Z
d f d
YZ y d d k Z Wn e
j
o n% Xd e f d YZ e i d e d
j o d d k Z e e i d Z e i GHe i e i d e i e i d e i e i \ Z Z x[ e d e d D]F Z e i e \ Z Z Z d e GHx e D] Z! d e! GHq{Wd GHqMWe i" n d S( s@ A POP3 client class.
Based on the J. Myers POP3 draft, Jan. 96
iNt POP3t error_protoc B s e Z RS( ( t __name__t
__module__( ( ( s /usr/lib/python2.6/poplib.pyR s in i s
s
c B s e Z d Z e e i d Z d Z d Z d Z d Z
d Z d Z d Z
d Z d
Z d Z d Z d
Z d d Z d Z d Z d Z d Z d Z d Z e i d Z d Z d Z d d Z RS( s This class supports both the minimal and optional command sets.
Arguments can be strings or integers (where appropriate)
(e.g.: retr(1) and retr('1') both work equally well.
Minimal Command Set:
USER name user(name)
PASS string pass_(string)
STAT stat()
LIST [msg] list(msg = None)
RETR msg retr(msg)
DELE msg dele(msg)
NOOP noop()
RSET rset()
QUIT quit()
Optional Commands (some servers support these):
RPOP name rpop(name)
APOP name digest apop(name, digest)
TOP msg n top(msg, n)
UIDL [msg] uidl(msg = None)
Raises one exception: 'error_proto'.
Instantiate with:
POP3(hostname, port=110)
NB: the POP protocol locks the mailbox from user
authorization until QUIT, so be sure to get in, suck
the messages, and quit, each time you access the
mailbox.
POP is a line-based protocol, which means large mail
messages consume lots of python cycles reading them
line-by-line.
If it's available on your mail server, use IMAP4
instead, it doesn't suffer from the two problems
above.
c C s^ | | _ | | _ t i | | f | | _ | i i d | _ d | _ | i | _ d S( Nt rbi (
t hostt portt sockett create_connectiont sockt makefilet filet
_debuggingt _getrespt welcome( t selfR R t timeout( ( s /usr/lib/python2.6/poplib.pyt __init__O s c C sA | i d j o d Gt | GHn | i i d | t f d S( Ni s *put*s %s%s( R t reprR t sendallt CRLF( R t line( ( s /usr/lib/python2.6/poplib.pyt _putlineY s c C s. | i o d Gt | GHn | i | d S( Ns *cmd*( R R R ( R R ( ( s /usr/lib/python2.6/poplib.pyt _putcmd` s
c C s | i i } | i d j o d Gt | GHn | p t d n t | } | d t j o | d | f S| d t j o | d d !| f S| d | f S( Ni s *get*s -ERR EOFii i( R t readlineR R R t lenR t CR( R R t octets( ( s /usr/lib/python2.6/poplib.pyt _getlinei s c C s` | i \ } } | i d j o d Gt | GHn | d } | d j o t | n | S( Ni s *resp*t +( R R R R ( R t respt ot c( ( s /usr/lib/python2.6/poplib.pyR
{ s
c C s | i } g } d } | i \ } } xd | d j oV | d d j o | d } | d } n | | } | i | | i \ } } q- W| | | f S( Ni t .i s ..i ( R
R t append( R R t listR R R ( ( s /usr/lib/python2.6/poplib.pyt _getlongresp s
c C s | i | | i S( N( R R
( R R ( ( s /usr/lib/python2.6/poplib.pyt _shortcmd s
c C s | i | | i S( N( R R$ ( R R ( ( s /usr/lib/python2.6/poplib.pyt _longcmd s
c C s | i S( N( R ( R ( ( s /usr/lib/python2.6/poplib.pyt
getwelcome s c C s
| | _ d S( N( R ( R t level( ( s /usr/lib/python2.6/poplib.pyt set_debuglevel s c C s | i d | S( sV Send user name, return response
(should indicate password required).
s USER %s( R% ( R t user( ( s /usr/lib/python2.6/poplib.pyR* s c C s | i d | S( s Send password, return response
(response includes message count, mailbox size).
NB: mailbox is locked by server from here to 'quit()'
s PASS %s( R% ( R t pswd( ( s /usr/lib/python2.6/poplib.pyt pass_ s c C sb | i d } | i } | i o d Gt | GHn t | d } t | d } | | f S( s] Get mailbox status.
Result is tuple of 2 ints (message count, mailbox size)
t STATs *stat*i i ( R% t splitR R t int( R t retvalt retst numMessagest sizeMessages( ( s /usr/lib/python2.6/poplib.pyt stat s
c C s, | d j o | i d | S| i d S( s Request listing, return result.
Result without a message number argument is in form
['response', ['mesg_num octets', ...], octets].
Result when a message number argument is given is a
single response: the "scan listing" for that message.
s LIST %st LISTN( t NoneR% R&