no is_multipart yet msgline (msgtype ='multipartand '*'or msgline +'% (ix+ for key in showhdrsmysize maxsize[keyif key not in addrhdrskeytext self decodeheader(msg get(key')elsekeytext self decodeaddrheader(msg get(key')msgline +%-* (mysizekeytext[:mysize]msgline +' fk(self mailsize(ix+ optional self listbox insert(endmsglineself listbox see(endshow most recent mail=last line def replycopyto(selfmessage)"" replies copy all original recipientsby prefilling cc header with all addreses in original to and cc after removing duplicates and new sendercould decode addrs herebut the view window will decode to display (and send will reencodeand the unique set filtering here will work either waythough sender' address is assumed to be in encoded form in mailconfig (else it is not removed here)empty to or cc headers are okaysplit returns empty lists""if not mailconfig repliescopytoallreply to sender only cc 'elsecopy all original recipients ( allrecipients (self splitaddresses(message get('to''')self splitaddresses(message get('cc'''))uniqueothers set(allrecipientsset([mailconfig myaddress]cc 'join(uniqueothersreturn cc or '?def formatquotedmaintext(selfmessage)"" factor out common code shared by reply and forwardfetch decoded textextract text if htmlline wrapadd quote ""typemaintext self findmaintext(message decoded str if type in ['text/html''text/xml'] get plain text maintext html text html text(maintextmaintext wraplines wraptext (maintextmailconfig wrapsz- 'maintext self quoteorigtext(maintextmessageadd hdrsif mailconfig mysignaturemaintext ('\ % \nmailconfig mysignaturemaintext return maintext def quoteorigtext(selfmaintextmessage)"" we need to decode any (internationalizdheaders here tooor they show up in email+mime encoded form in the quoted text blockdecodeaddrheader works on one addr or all in comma-separated list the pymailgui client