bytesand to encode and decode message text stored in text-mode save filessee the book' for detailsthis is limited and temporary approach to unicode encodings until new bytes-friendly email package parser is provided which can handle unicode encodings more accurately on message-level basisnote'latin (an -bit encoding which is superset of -bit asciiwas required to decode message in some old email save files hadnot 'utf '#fetchencoding 'latin- how to decode and store full message text (ascii?#(optionalfor sendunicode encodings for composed mail' main text plus all text attachmentsset these to none to be prompted for encodings on mail sendelse uses values here across entire sessiondefault='latin- if gui cancelin all casesfalls back on utf- if your encoding setting or input does not work for the text being sent ( ascii chosen for reply to non-ascii textor non-ascii attachments)the email package is pickier than python about nameslatin- is known (uses qp mime)but latin isn' (uses base mime)set these to sys getdefaultencoding(result to choose the platform defaultencodings of text parts of fetched email are automatic via message headers#maintextencoding 'asciiattachmenttextencoding 'asciimain mail body text part sent (none=askall text part attachments sent (utf- latin- #(optionalfor sendset this to unicode encoding name to be applied to non-ascii headersas well as non-ascii names in email addresses in headersin composed messages when they are sentnone means use the utf- defaultwhich should work for most use casesemail names that fail to decode are dropped (the address part is used)note that header decoding is performed automatically for displayaccording to header contentnot user setting#headersencodeto none how to encode non-ascii headers sent (none=utf- #(optionalselect texthtmlor both versions of the help documentalways shows one or the otherdisplays html if both of these are turned off #showhelpastext true showhelpashtml true scrolled textwith button for opening source files html in web browserwithout source file links #(optionalif truedon' show selected html text message part in pyedit popup too if it is being displayed in web browserif false show bothto see unicode encoding name and effect in text widget (browser may not know)#skiptextonhtmlpart false don' show html part in pyedit popup too pymailgui implementation