on all displayed headers (the extra subject decode is no-op)on sendsall non-ascii hdrs and hdr email names are in decoded form in the guibut are encoded within the mailtools packagequoteorigtext also decodes the initial headers it inserts into the quoted text blockand index lists decode for display""for msgnum in msgnumsfulltext self getmessage(msgnummessage self parsemessage(fulltextmay failerror obj maintext self formatquotedmaintext(messagesame as forward from and to are decoded by view window from mailconfig myaddress not original to to message get('from''' ',sept cc self replycopyto(message cc all recipientssubj message get('subject''(no subject)'subj self decodeheader(subjdeocde for str if subj[: lower(!'re' unify case subj 'resubj replywindow(starttext maintextheadermap dict(from=fromto=tocc=ccsubject=subjbcc=from)def onfwdmail(self)possibly threadedforward selected emails msgnums self verifyselectedmsgs(if msgnumsself getmessages(msgnumsafter=lambdaself contfwd(msgnums)def contfwd(selfmsgnums)""finish forwarddrop attachmentsquote with '>'add signaturesee notes about headers decoding in the reply action methodsview window superclass will decode the from header we pass here""for msgnum in msgnumsfulltext self getmessage(msgnummessage self parsemessage(fulltextmaintext self formatquotedmaintext(messagesame as reply initial from value from confignot mail from mailconfig myaddress encoded or not subj message get('subject''(no subject)'subj self decodeheader(subj send encodes if subj[: lower(!'fwd' unify case subj 'fwdsubj forwardwindow(starttext maintextheadermap dict(from=fromsubject=subjbcc=from)def onsavemailfile(self)""save selected emails to file for offline viewingdisabled if target file load/delete is in progressdisabled by getmessages if self is busy file toopymailgui implementation