[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版
server). Passwords are encoded as they are added to links in the reply page’s selection list, and they remain encoded in URLs an ...
def saveAttachments(message, parser, savedir='partsdownload'): """ save fetched email's parts to files on server to be viewed in ...
inherited from mailtools. Part files are kept temporarily; they are deleted when the next message is fetched. They are also curr ...
the file type. For instance, clicking on the “.txt” file will likely open it in either the browser or a text editor. In other ma ...
Figure 16-14 shows part of the source code generated for another message’s view page; the hidden input fields used to pass selec ...
Escaping Mail Text and Passwords in HTML Notice that everything you see on the message view page’s HTML in Figure 16-14 is escap ...
> > > -----Original Message----- Beyond the normal text, the password gets special HTML escapes treatment as well. Thou ...
In terms of implementation, though, the model is very different. PyMailGUI doesn’t need to care about things such as passing sta ...
form = cgi.FieldStorage() # parse form or URL data user, pswd, site = commonhtml.getstandardpopfields(form) pswd = secret.decode ...
same confirmation page we got earlier when writing new mail from scratch (Figure 16-4). Forward operations are virtually the sam ...
tools package. In a prior version, the call to the utility was wrapped in a commonhtml.run silent call that prevents print call ...
format an edit page, which ultimately sends a message to the SMTP server; no POP information is needed or passed. But at this po ...
View page fields (CGI server to client): To direct the next script’s behavior, the password is embedded in the view page itself ...
Deletions and POP Message Numbers Note that you probably should click the “Back to root page” link in Figure 16-19 after a succe ...
last determined, or a broader policy, which sidesteps the issue completely. The next three sections outline suggested improvemen ...
be the only one deleted. A working but tentative implementation of this scheme is implemented in the following directory of the ...
matching is necessary to be robust. See the discussion of mailtools in Chapter 13 for more details. Alternative: Server-side fil ...
Because of the current lack of inbox synchronization error checks in PyMailCGI, you should not delete mails with it in an import ...
This version of PyMailCGI has its own local copy of the mailconfig module we coded in Chapter 13 and expanded in Chapter 14, but ...
This module is not much to look at—just an interface and calls to other modules. The mailtools.SilentMailFetcher class (reused h ...
«
61
62
63
64
65
66
67
68
69
70
»
Free download pdf