Learning Python Network Programming

(Sean Pound) #1
Chapter 4

Finally, you can quit the mail program by typing the shortcut q on the command
prompt, as shown here:


& q


Saved 1 message in /home/faruq/mbox


Summary


This chapter demonstrates how Python can interact with the three major e-mail
handling protocols: SMTP, POP3, and IMAP. In each of these cases, how to work
the client code has been explained. Finally, an example for using SMTP in the
Python's logging module has been shown.


In the next chapter, you will learn how to use Python to work with remote systems
to perform various tasks, such as administrative tasks by using SSH, file transfer
through FTP, Samba, and so forth. Some remote monitoring protocols, such as
SNMP, and the authentication protocols, such as LDAP, will also be discussed
briefly. So, enjoy writing more Python codes in the next chapter.

Free download pdf