Foundations of Python Network Programming
Chapter 15 ■ IMap 281 The results of this fetch() call are printed to the screen once an e-mail folder has been selected: 2703 2 ...
Chapter 15 ■ IMap 282 The value "MIXED" indicates exactly what kind of multipart container is being represented—in this case, th ...
Chapter 15 ■ IMap 283 Flagging and Deleting Messages You might have noticed, while trying out Listing 15-7 or reading its sample ...
Chapter 15 ■ IMap 284 Searching Searching is another feature that is very important for a protocol designed to let you keep all ...
Chapter 15 ■ IMap 285 There are also a number of flags that match items in each message’s headers. Each of them searches for a g ...
Chapter 15 ■ IMap 286 First, you can copy an existing message from its home folder into another folder. Start by using select_fo ...
Chapter 15 ■ IMap 287 Summary IMAP is a robust protocol for accessing e-mail messages stored on a remote server. Many IMAP libra ...
289 Chapter 16 Telnet and SSH If you have never read it, then you should brew some of your favorite coffee, sit down, and treat ...
Chapter 16 ■ telnet and SSh 290 Ansible is a sleek and powerful system that lets you declare how dozens or hundreds of remote m ...
Chapter 16 ■ telnet and SSh 291 As made obvious by this example, the rules by which modern shells interpret the special characte ...
Chapter 16 ■ telnet and SSh 292 To make the shell understand that you are talking about one file with a space in its name, not t ...
Chapter 16 ■ telnet and SSh 293 $ python shell.py ] echo Hi there! Hi there! ] echo An asterisk is not special. An asterisk is ...
Chapter 16 ■ telnet and SSh 294 Quoting Characters for Protection In the previous section, you used routines in Python’s subproc ...
Chapter 16 ■ telnet and SSh 295 Every one of these responses is reasonable, as you can demonstrate to yourself. First use echo t ...
Chapter 16 ■ telnet and SSh 296 A terminal is a device into which a user types text and on whose screen the computer’s response ...
Chapter 16 ■ telnet and SSh 297 $ ls sftp.py ssh_commands.py ssh_simple.txt telnet_codes.py shell.py ssh_simple.py ssh_threads.p ...
Chapter 16 ■ telnet and SSh 298 • Many programs read only one line of input at a time when listening to a terminal because hu ...
Chapter 16 ■ telnet and SSh 299 In case you make your terminal settings a hopeless mess after some experimentation, most Unix sy ...
Chapter 16 ■ telnet and SSh 300 The fact that Telnet is ignorant of authentication has an important consequence: you cannot give ...
Chapter 16 ■ telnet and SSh 301 args = parser.parse_args() password = getpass.getpass('Password: ') main(args.hostname, args.use ...
«
10
11
12
13
14
15
16
17
18
19
»
Free download pdf