structureand should probably not be necessitated by regression in python in any event rewrite (pymailria?will have to await final verdict on python cgi support fixes new in the prior edition (version in the third editionpymailcgi was upgraded to use the new mailtools module package of employ the pycrypto package for passwords if it is installedsupport viewing and sending message attachmentsand run more efficiently all these are inherited by version as well we'll meet these new features along the waybut the last two of these merit few words up front attachments are supported in simplistic but usable fashion and use existing mailtools package code for much of their operationfor viewing attachmentsmessage parts are split off the message and saved in local files on the server message view pages are then augmented with hyperlinks pointing to the temporary fileswhen clickedthey open in whatever way your web browser opens the selected part' file type for sending attachmentswe use the html upload techniques presented near the end of mail edit pages now have file-upload controlsto allow maximum of three attachments selected files are uploaded to the server by the browser with the rest of the page as usualsaved in temporary files on the serverand added to the outgoing mail from the local files on the server by mailtools as described in the note in the preceding sectionsent attachments can only be compatibly encoded text in version not binarythough this includes encodable html files both schemes would fail for multiple simultaneous usersbut since pymailcgi' configuration file scheme (described later in this already limits it to single usernamethis is reasonable constraint the links to temporary files generated for attachment viewing also apply only to the last message selectedbut this works if the page flow is followed normally improving this for multiuser scenarioas well as adding additional features such as pymailgui' local file save and open optionsare left as exercises for efficiencythis version of pymailcgi also avoids repeated exhaustive mail downloads in the prior versionthe full text of all messages in an inbox was downloaded every time you visited the list page and every time you selected single message to view in this versionthe list page downloads only the header text portion of each messageand only single message' full text is downloaded when one is selected for viewing in additionthe headers fetch limits added to mailtools in the fourth edition of this book are applied automatically to limit download time (earlier mails outside the set' size are ignoredthe pymailcgi website