ó m”þfc@sÆdZddlZddlZddlZddlmZmZeƒ-ejrfeddeƒnddl Z WdQXddlm Z e ddd ƒd d d d ddgZ d e j fd„ƒYZ yddl Z Wnek røddlZ nXe jƒZ[ dad„Zdad„Zd„Zd„ZdZied6ed6ed6ed6dd6dd6Zidd6dd6dd6dd6d d6d!d6Zd"„Zd#„Zd$„Zd%„ZdS(&s<Various tools used by MIME-reading or MIME-writing programs.iÿÿÿÿN(tfilterwarningstcatch_warningstignores.*rfc822 has been removed(twarnpy3ks@in 3.x, mimetools has been removed in favor of the email packaget stacklevelitMessagetchoose_boundarytencodetdecodet copyliteralt copybinarycBskeZdZdd„Zd„Zd„Zd„Zd„Zd„Zd„Z d „Z d „Z d „Z RS( sˆA derived class of rfc822.Message that knows about MIME headers and contains some hooks for decoding encoded and multipart messages.icCsRtjj|||ƒ|jdƒ|_|jdƒ|_|jƒ|jƒdS(Nscontent-transfer-encodings content-type(trfc822Rt__init__t getheadertencodingheadert typeheadert parsetypet parseplist(tselftfptseekable((s!/usr/lib64/python2.7/mimetools.pyR s  cCsÛ|j}|dkrd}nd|krS|jdƒ}|||_|| }n d|_|jdƒ}x4tt|ƒƒD] }||jƒjƒ||sZ       W