[Python编程(第4版)].(Programming.Python.4th.Edition).Mark.Lutz.文字版

(yzsuai) #1

  • Use ',' between multiple addresses in To, Cc, and Bcc headers.

  • Addresses may be given in the full '"name" ' form.

  • Payloads and headers are decoded on fetches and encoded on sends.

  • HTML mails show extracted plain text plus HTML in a web browser.

  • To, Cc, and Bcc receive composed mail, but no Bcc header is sent.

  • If enabled in mailconfig, Bcc is prefilled with sender address.

  • Reply and Fwd automatically quote the original mail text.

  • If enabled, replies prefill Cc with all original recipients.

  • Attachments may be added for sends and are encoded as required.

  • Attachments may be opened after View via Split or part buttons.

  • Double-click a mail in the list index to view its raw text.

  • Select multiple mails to process as a set: Ctrl|Shift + click, or All.

  • Sent mails are saved to a file named in mailconfig: use Open to view.

  • Save pops up a dialog for selecting a file to hold saved mails.

  • Save always appends to the chosen save file, rather than erasing it.

  • Split asks for a save directory; part buttons save in ./TempParts.

  • Open and save dialogs always remember the prior directory.

  • Use text editor's Save to save a draft of email text being composed.

  • Passwords are requested if/when needed, and not stored by PyMailGUI.

  • You may list your password in a file named in mailconfig.py.

  • To print emails, "Save" to a text file and print with other tools.

  • See the altconfigs directory for using with multiple email accounts.

  • Emails are never deleted from the mail server automatically.

  • Delete does not reload message headers, unless it fails.

  • Delete checks your inbox to make sure it deletes the correct mail.

  • Fetches detect inbox changes and may automatically reload the index.

  • Any number of sends and disjoint fetches may overlap in time.

  • Click this window's Source button to view PyMailGUI source-code files.

  • Watch http://www.rmi.net/~lutz for updates and patches

  • This is an Open Source system: change its code as you like.
    """


if name == 'main':
print(helptext) # to stdout if run alone
input('Press Enter key') # pause in DOS console pop ups


See the examples package for the HTML help file, the first few lines of which are shown
in Example 14-12; it’s a simple translation of the module’s help text string (adding a
bit more pizzazz to this page is left in the suggested exercise column).


Example 14-12. PP4E\Internet\PyMailGui\PyMailGuiHelp.html (partial)



PyMailGUI 3.0 Help


PyMailGUI, Version 3.0



PyMailGUI Implementation| 1113
Free download pdf