email now--pymailgui is smart enough to download only the one new message' header text and tack it onto the end of the loaded email list mail send operations automatically save sent mails in save file that you name in your configuration moduleuse open to view sent messages in offline mode and delete to clean up the sent mail file if it grows too large (you can also save from the sent-mail file to another file to copy mails into other save files per categoryviewing email and attachments now let' view the mail message that was sent and received pymailgui lets us view email in formatted or raw mode firsthighlight (single-clickthe mail you want to see in the main windowand press the view button after the full message text is downloaded (unless it is already cached) formatted mail viewer window like that shown in figure - appears if multiple messages are selectedthe view button will download all that are not already cached ( that have not already been fetchedand will pop up view window for each selected like all long-running operationsfull message downloads are run in parallel threads to avoid blocking figure - pymailgui view incoming mail window python' email module is used to parse out header lines from the raw text of the email messagetheir text is placed in the fields in the top right of the window the message' main text is fetched from its body and stuffed into new texteditor object for display at the window bottom pymailgui uses heuristics to extract the main text of the message to displayif there is oneit does not blindly show the entire raw text of the mail html-only mail is handled speciallybut 'll defer details on this until later in this demo pymailgui demo