Alternative Configurations and Accounts
So far, we’ve mostly seen PyMailGUI being run on an email account I created for this
book’s examples, but it’s easy to tailor its mailconfig module for different accounts, as
well as different visual effects. For example, Figure 14-45 captures the scene with Py-
MailGUI being run on three different email accounts I use for books and training. All
three instances are run in independent processes here. Each main list window is dis-
playing a different email account’s messages, and each customizes appearance or be-
havior in some fashion. The message view window at the top, opened from the server
list window in the lower left also applies custom color and displayed headers schemes.
You can always change mailconfigs in-place for a specific account if you use just one,
but we’ll later see how the altconfigs subdirectory applies one possible solution to
allow configuring for multiple accounts such as these, completely external to the orig-
inal source code. The altconfigs option renders the windows in Figure 14-45, and
suffices as my launching interface; see its code ahead.
Figure 14-44. Raw text of sent Russian reply, headers and body re-encoded
A PyMailGUI Demo| 1059