inbox content by pymailgui immediately after the error pop up is dismissed this scheme ensures that pymailgui won' delete or display the wrong messagein the rare case that the server' inbox is changed without its knowledge see mailtools in for more on synchronization teststhese errors are detected and raised in mail toolsbut triggered by calls made in the mail cache manager here handling html content in email up to this pointwe've seen pymailgui' basic operation in the context of plain-text emails we've also seen it handling html part attachmentsbut not the main text of html messages todayof coursehtml is common for mail content too because the pyedit mail display deployed by pymailgui uses tkinter text widget oriented toward plain texthtml content is handled speciallyfor text/html alternative mailspymailgui displays the plain text part in its view window and includes button for opening the html rendition in web browser on demand for html-only mailsthe main text area shows plain text extracted from the html by simple parser (not the raw html)and the html is also displayed in web browser automatically in all casesthe web browser' display of international character set content in the html depends upon encoding information in tags in the htmlguessesor user feedback well-formed html parts already have "tags in their "sections which give the html' encodingbut they may be absent or incorrect we'll learn more about internationalization support in the next section figure - gives the scene when text/html alternative mail is viewedand figure - shows what happens when an html-only email is viewed the web browser in figure - was opened by clicking the html part' buttonthis is no different than the html attachment example we saw earlier for html-only messagesthoughbehavior is new herethe view window on the left in figure - reflects the results of extracting plain text from the html shown in the popped-up web browser behind it the html parser used for this is something of first-cut prototypebut any result it can give is an improvement on displaying raw html in the view window for html-only mails for simpler html mails of the sort sent by individuals instead of those sent by mass-mailing companies (like those shown here)the results are generally good in tests run to datethough time will tell how this prototype parser fares in today' unforgiving html jungle of nonstandard and nonconforming code--improve as desired pymailgui demo