Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 88

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 218

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 219

Warning: Cannot modify header information - headers already sent by (output started at /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php:88) in /home/afelisqd/cppseducation.sc.tz/admin/images/photos/17587263121019776732_admin-dbb.php on line 220
PK!n%% message.pynu[# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Class representing message/* MIME documents.""" __all__ = ['MIMEMessage'] from email import message from email.mime.nonmultipart import MIMENonMultipart class MIMEMessage(MIMENonMultipart): """Class representing message/* MIME documents.""" def __init__(self, _msg, _subtype='rfc822', *, policy=None): """Create a message/* type MIME document. _msg is a message object and must be an instance of Message, or a derived class of Message, otherwise a TypeError is raised. Optional _subtype defines the subtype of the contained message. The default is "rfc822" (this is defined by the MIME standard, even though the term "rfc822" is technically outdated by RFC 2822). """ MIMENonMultipart.__init__(self, 'message', _subtype, policy=policy) if not isinstance(_msg, message.Message): raise TypeError('Argument is not an instance of Message') # It's convenient to use this base class method. We need to do it # this way or we'll get an exception message.Message.attach(self, _msg) # And be sure our default type is set correctly self.set_default_type('message/rfc822') PK! __init__.pynu[PK!%%image.pynu[# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Class representing image/* type MIME documents.""" __all__ = ['MIMEImage'] import imghdr from email import encoders from email.mime.nonmultipart import MIMENonMultipart class MIMEImage(MIMENonMultipart): """Class for generating image/* type MIME documents.""" def __init__(self, _imagedata, _subtype=None, _encoder=encoders.encode_base64, *, policy=None, **_params): """Create an image/* type MIME document. _imagedata is a string containing the raw image data. If this data can be decoded by the standard Python `imghdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific image subtype via the _subtype parameter. _encoder is a function which will perform the actual encoding for transport of the image data. It takes one argument, which is this Image instance. It should use get_payload() and set_payload() to change the payload to the encoded form. It should also add any Content-Transfer-Encoding or other headers to the message as necessary. The default encoding is Base64. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. """ if _subtype is None: _subtype = imghdr.what(None, _imagedata) if _subtype is None: raise TypeError('Could not guess image MIME subtype') MIMENonMultipart.__init__(self, 'image', _subtype, policy=policy, **_params) self.set_payload(_imagedata) _encoder(self) PK!sZnonmultipart.pynu[# Copyright (C) 2002-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Base class for MIME type messages that are not multipart.""" __all__ = ['MIMENonMultipart'] from email import errors from email.mime.base import MIMEBase class MIMENonMultipart(MIMEBase): """Base class for MIME non-multipart type messages.""" def attach(self, payload): # The public API prohibits attaching multiple subparts to MIMEBase # derived subtypes since none of them are, by definition, of content # type multipart/* raise errors.MultipartConversionError( 'Cannot attach additional subparts to non-multipart/*') PK!S`""%__pycache__/text.cpython-38.opt-2.pycnu[U e5d@s2dgZddlmZddlmZGdddeZdS)MIMEText)Charset)MIMENonMultipartc@seZdZdddddZdS)rplainN)policycCsf|dkr4z|dd}Wntk r2d}YnXtj|d|fd|idt|i|||dS)Nzus-asciizutf-8textrcharset)encodeUnicodeEncodeErrorr__init__strZ set_payload)selfZ_textZ_subtypeZ_charsetrr'/usr/lib64/python3.8/email/mime/text.pyr s   zMIMEText.__init__)rN)__name__ __module__ __qualname__r rrrrrsN)__all__Z email.charsetrZemail.mime.nonmultipartrrrrrrs  PK!C__pycache__/base.cpython-38.pycnu[U e5d@s4dZdgZddlZddlmZGdddejZdS)$Base class for MIME specializations.MIMEBaseN)messagec@seZdZdZddddZdS)rrNpolicycKsH|dkrtjj}tjj||dd||f}|jd|f|d|d<dS)zThis constructor adds a Content-Type: and a MIME-Version: header. The Content-Type: header is taken from the _maintype and _subtype arguments. Additional parameters for this header are taken from the keyword arguments. Nrz%s/%sz Content-Typez1.0z MIME-Version)emailrZcompat32rMessage__init__Z add_header)selfZ _maintypeZ_subtyperZ_paramsZctyper '/usr/lib64/python3.8/email/mime/base.pyr s  zMIMEBase.__init__)__name__ __module__ __qualname____doc__r r r r r rs)r__all__Z email.policyrrrrr r r r s PK!y!!%__pycache__/text.cpython-38.opt-1.pycnu[U e5d@s6dZdgZddlmZddlmZGdddeZdS)z.Class representing text/* type MIME documents.MIMEText)Charset)MIMENonMultipartc@s eZdZdZdddddZdS)rz0Class for generating text/* type MIME documents.plainN)policycCsf|dkr4z|dd}Wntk r2d}YnXtj|d|fd|idt|i|||dS)a~Create a text/* type MIME document. _text is the string for this message object. _subtype is the MIME sub content type, defaulting to "plain". _charset is the character set parameter added to the Content-Type header. This defaults to "us-ascii". Note that as a side-effect, the Content-Transfer-Encoding header will also be set. Nzus-asciizutf-8textrcharset)encodeUnicodeEncodeErrorr__init__strZ set_payload)selfZ_textZ_subtypeZ_charsetrr'/usr/lib64/python3.8/email/mime/text.pyr s   zMIMEText.__init__)rN)__name__ __module__ __qualname____doc__r rrrrrsN)r__all__Z email.charsetrZemail.mime.nonmultipartrrrrrrs  PK!CԵ&__pycache__/application.cpython-38.pycnu[U e5d)@s6dZdgZddlmZddlmZGdddeZdS)z5Class representing application/* type MIME documents.MIMEApplication)encoders)MIMENonMultipartc@s&eZdZdZdejfddddZdS)rz2Class for generating application/* MIME documents.z octet-streamN)policycKs@|dkrtdtj|d|fd|i|||||dS)aCreate an application/* type MIME document. _data is a string containing the raw application data. _subtype is the MIME content type subtype, defaulting to 'octet-stream'. _encoder is a function which will perform the actual encoding for transport of the application data, defaulting to base64 encoding. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz Invalid application MIME subtypeZ applicationr) TypeErrorr__init__Z set_payload)self_dataZ_subtypeZ_encoderrZ_paramsr ./usr/lib64/python3.8/email/mime/application.pyrs zMIMEApplication.__init__)__name__ __module__ __qualname____doc__rZ encode_base64rr r r r r s N)r__all__ZemailrZemail.mime.nonmultipartrrr r r r s  PK!C%__pycache__/base.cpython-38.opt-1.pycnu[U e5d@s4dZdgZddlZddlmZGdddejZdS)$Base class for MIME specializations.MIMEBaseN)messagec@seZdZdZddddZdS)rrNpolicycKsH|dkrtjj}tjj||dd||f}|jd|f|d|d<dS)zThis constructor adds a Content-Type: and a MIME-Version: header. The Content-Type: header is taken from the _maintype and _subtype arguments. Additional parameters for this header are taken from the keyword arguments. Nrz%s/%sz Content-Typez1.0z MIME-Version)emailrZcompat32rMessage__init__Z add_header)selfZ _maintypeZ_subtyperZ_paramsZctyper '/usr/lib64/python3.8/email/mime/base.pyr s  zMIMEBase.__init__)__name__ __module__ __qualname____doc__r r r r r rs)r__all__Z email.policyrrrrr r r r s PK!꯮$__pycache__/multipart.cpython-38.pycnu[U e5dU@s*dZdgZddlmZGdddeZdS).Base class for MIME multipart/* type messages. MIMEMultipart)MIMEBasec@s eZdZdZdddddZdS)rrmixedN)policycKsJtj|d|fd|i|g|_|r8|D]}||q(|rF||dS)aCreates a multipart/* type message. By default, creates a multipart/mixed message, with proper Content-Type and MIME-Version headers. _subtype is the subtype of the multipart content type, defaulting to `mixed'. boundary is the multipart boundary string. By default it is calculated as needed. _subparts is a sequence of initial subparts for the payload. It must be an iterable object, such as a list. You can always attach new subparts to the message by using the attach() method. Additional parameters for the Content-Type header are taken from the keyword arguments (or passed into the _params argument). Z multipartrN)r__init__Z_payloadZattachZ set_boundary)selfZ_subtypeboundaryZ _subpartsrZ_paramspr ,/usr/lib64/python3.8/email/mime/multipart.pyrs zMIMEMultipart.__init__)rNN)__name__ __module__ __qualname____doc__rr r r r r sN)r__all__Zemail.mime.baserrr r r r s PK!'Hd(__pycache__/message.cpython-38.opt-2.pycnu[U e5d%@s2dgZddlmZddlmZGdddeZdS) MIMEMessage)message)MIMENonMultipartc@seZdZdddddZdS)rrfc822NpolicycCsBtj|d||dt|tjs&tdtj|||ddS)Nrrz&Argument is not an instance of Messagezmessage/rfc822)r__init__ isinstancerZMessage TypeErrorZattachZset_default_type)selfZ_msgZ_subtyperr */usr/lib64/python3.8/email/mime/message.pyrs  zMIMEMessage.__init__)r)__name__ __module__ __qualname__rr r r r rsN)__all__ZemailrZemail.mime.nonmultipartrrr r r r s  PK!"__pycache__/message.cpython-38.pycnu[U e5d%@s6dZdgZddlmZddlmZGdddeZdS),Class representing message/* MIME documents. MIMEMessage)message)MIMENonMultipartc@s eZdZdZdddddZdS)rrrfc822NpolicycCsBtj|d||dt|tjs&tdtj|||ddS)aCreate a message/* type MIME document. _msg is a message object and must be an instance of Message, or a derived class of Message, otherwise a TypeError is raised. Optional _subtype defines the subtype of the contained message. The default is "rfc822" (this is defined by the MIME standard, even though the term "rfc822" is technically outdated by RFC 2822). rrz&Argument is not an instance of Messagezmessage/rfc822N)r__init__ isinstancerZMessage TypeErrorZattachZset_default_type)selfZ_msgZ_subtyperr */usr/lib64/python3.8/email/mime/message.pyr s  zMIMEMessage.__init__)r)__name__ __module__ __qualname____doc__r r r r rrsN)r__all__ZemailrZemail.mime.nonmultipartrrr r r rs  PK! X'',__pycache__/application.cpython-38.opt-2.pycnu[U e5d)@s2dgZddlmZddlmZGdddeZdS)MIMEApplication)encoders)MIMENonMultipartc@s"eZdZdejfddddZdS)rz octet-streamN)policycKs@|dkrtdtj|d|fd|i|||||dS)Nz Invalid application MIME subtypeZ applicationr) TypeErrorr__init__Z set_payload)self_dataZ_subtypeZ_encoderrZ_paramsr ./usr/lib64/python3.8/email/mime/application.pyrs zMIMEApplication.__init__)__name__ __module__ __qualname__rZ encode_base64rr r r r r s N)__all__ZemailrZemail.mime.nonmultipartrrr r r r s  PK!:n])__pycache__/__init__.cpython-38.opt-1.pycnu[U .e@sdS)Nrrr+/usr/lib64/python3.8/email/mime/__init__.pyPK!y!!__pycache__/text.cpython-38.pycnu[U e5d@s6dZdgZddlmZddlmZGdddeZdS)z.Class representing text/* type MIME documents.MIMEText)Charset)MIMENonMultipartc@s eZdZdZdddddZdS)rz0Class for generating text/* type MIME documents.plainN)policycCsf|dkr4z|dd}Wntk r2d}YnXtj|d|fd|idt|i|||dS)a~Create a text/* type MIME document. _text is the string for this message object. _subtype is the MIME sub content type, defaulting to "plain". _charset is the character set parameter added to the Content-Type header. This defaults to "us-ascii". Note that as a side-effect, the Content-Transfer-Encoding header will also be set. Nzus-asciizutf-8textrcharset)encodeUnicodeEncodeErrorr__init__strZ set_payload)selfZ_textZ_subtypeZ_charsetrr'/usr/lib64/python3.8/email/mime/text.pyr s   zMIMEText.__init__)rN)__name__ __module__ __qualname____doc__r rrrrrsN)r__all__Z email.charsetrZemail.mime.nonmultipartrrrrrrs  PK!:n])__pycache__/__init__.cpython-38.opt-2.pycnu[U .e@sdS)Nrrr+/usr/lib64/python3.8/email/mime/__init__.pyPK!norr&__pycache__/image.cpython-38.opt-1.pycnu[U e5d%@s>dZdgZddlZddlmZddlmZGdddeZdS)z/Class representing image/* type MIME documents. MIMEImageN)encoders)MIMENonMultipartc@s&eZdZdZdejfddddZdS)rz1Class for generating image/* type MIME documents.N)policycKsT|dkrtd|}|dkr$tdtj|d|fd|i|||||dS)aCreate an image/* type MIME document. _imagedata is a string containing the raw image data. If this data can be decoded by the standard Python `imghdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific image subtype via the _subtype parameter. _encoder is a function which will perform the actual encoding for transport of the image data. It takes one argument, which is this Image instance. It should use get_payload() and set_payload() to change the payload to the encoded form. It should also add any Content-Transfer-Encoding or other headers to the message as necessary. The default encoding is Base64. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz"Could not guess image MIME subtypeZimager)imghdrZwhat TypeErrorr__init__Z set_payload)selfZ _imagedataZ_subtypeZ_encoderrZ_paramsr (/usr/lib64/python3.8/email/mime/image.pyrs  zMIMEImage.__init__)__name__ __module__ __qualname____doc__rZ encode_base64rr r r r rs )r__all__rZemailrZemail.mime.nonmultipartrrr r r r s   PK!9B{==&__pycache__/image.cpython-38.opt-2.pycnu[U e5d%@s:dgZddlZddlmZddlmZGdddeZdS) MIMEImageN)encoders)MIMENonMultipartc@s"eZdZdejfddddZdS)rN)policycKsT|dkrtd|}|dkr$tdtj|d|fd|i|||||dS)Nz"Could not guess image MIME subtypeZimager)imghdrZwhat TypeErrorr__init__Z set_payload)selfZ _imagedataZ_subtypeZ_encoderrZ_paramsr (/usr/lib64/python3.8/email/mime/image.pyrs  zMIMEImage.__init__)__name__ __module__ __qualname__rZ encode_base64rr r r r rs )__all__rZemailrZemail.mime.nonmultipartrrr r r r s  PK!Rww-__pycache__/nonmultipart.cpython-38.opt-2.pycnu[U e5d@s2dgZddlmZddlmZGdddeZdS)MIMENonMultipart)errors)MIMEBasec@seZdZddZdS)rcCstddS)Nz4Cannot attach additional subparts to non-multipart/*)rZMultipartConversionError)selfZpayloadr//usr/lib64/python3.8/email/mime/nonmultipart.pyattachszMIMENonMultipart.attachN)__name__ __module__ __qualname__rrrrrrsN)__all__ZemailrZemail.mime.baserrrrrrs  PK!\%__pycache__/base.cpython-38.opt-2.pycnu[U e5d@s0dgZddlZddlmZGdddejZdS)MIMEBaseN)messagec@seZdZddddZdS)rNpolicycKsH|dkrtjj}tjj||dd||f}|jd|f|d|d<dS)Nrz%s/%sz Content-Typez1.0z MIME-Version)emailrZcompat32rMessage__init__Z add_header)selfZ _maintypeZ_subtyperZ_paramsZctyper '/usr/lib64/python3.8/email/mime/base.pyrs  zMIMEBase.__init__)__name__ __module__ __qualname__rr r r r rs)__all__Z email.policyrrrrr r r r s PK!-@'__pycache__/nonmultipart.cpython-38.pycnu[U e5d@s6dZdgZddlmZddlmZGdddeZdS)z9Base class for MIME type messages that are not multipart.MIMENonMultipart)errors)MIMEBasec@seZdZdZddZdS)rz0Base class for MIME non-multipart type messages.cCstddS)Nz4Cannot attach additional subparts to non-multipart/*)rZMultipartConversionError)selfZpayloadr//usr/lib64/python3.8/email/mime/nonmultipart.pyattachszMIMENonMultipart.attachN)__name__ __module__ __qualname____doc__rrrrrrsN)r __all__ZemailrZemail.mime.baserrrrrrs  PK!9A|B B __pycache__/audio.cpython-38.pycnu[U e5d @s`dZdgZddlZddlmZddlmZddlmZddd d d Z d d Z Gd ddeZ dS)z/Class representing audio/* type MIME documents. MIMEAudioN)BytesIO)encoders)MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifccCsH|dd}t|}tjD](}|||}|dk rt|dSqdS)aTry to identify a sound file type. sndhdr.what() has a pretty cruddy interface, unfortunately. This is why we re-do it here. It would be easier to reverse engineer the Unix 'file' command and use the standard 'magic' file, as shipped with a modern Unix. Nir)rsndhdrZtests_sndhdr_MIMEmapget)dataZhdrZfakefileZtestfnresr (/usr/lib64/python3.8/email/mime/audio.py_whatsnds   r c@s&eZdZdZdejfddddZdS)rz,Class for generating audio/* MIME documents.N)policycKsP|dkrt|}|dkr tdtj|d|fd|i|||||dS)a Create an audio/* type MIME document. _audiodata is a string containing the raw audio data. If this data can be decoded by the standard Python `sndhdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific audio subtype via the _subtype parameter. If _subtype is not given, and no subtype can be guessed, a TypeError is raised. _encoder is a function which will perform the actual encoding for transport of the image data. It takes one argument, which is this Image instance. It should use get_payload() and set_payload() to change the payload to the encoded form. It should also add any Content-Transfer-Encoding or other headers to the message as necessary. The default encoding is Base64. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz!Could not find audio MIME subtypeZaudior)r TypeErrorr__init__Z set_payload)selfZ _audiodataZ_subtypeZ_encoderrZ_paramsr r r r-s zMIMEAudio.__init__)__name__ __module__ __qualname____doc__rZ encode_base64rr r r r r*s ) r__all__riorZemailrZemail.mime.nonmultipartrrr rr r r r s   PK!dR*__pycache__/multipart.cpython-38.opt-2.pycnu[U e5dU@s&dgZddlmZGdddeZdS) MIMEMultipart)MIMEBasec@seZdZdddddZdS)rmixedN)policycKsJtj|d|fd|i|g|_|r8|D]}||q(|rF||dS)NZ multipartr)r__init__Z_payloadZattachZ set_boundary)selfZ_subtypeboundaryZ _subpartsrZ_paramspr ,/usr/lib64/python3.8/email/mime/multipart.pyrs zMIMEMultipart.__init__)rNN)__name__ __module__ __qualname__rr r r r r sN)__all__Zemail.mime.baserrr r r r s PK!norr __pycache__/image.cpython-38.pycnu[U e5d%@s>dZdgZddlZddlmZddlmZGdddeZdS)z/Class representing image/* type MIME documents. MIMEImageN)encoders)MIMENonMultipartc@s&eZdZdZdejfddddZdS)rz1Class for generating image/* type MIME documents.N)policycKsT|dkrtd|}|dkr$tdtj|d|fd|i|||||dS)aCreate an image/* type MIME document. _imagedata is a string containing the raw image data. If this data can be decoded by the standard Python `imghdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific image subtype via the _subtype parameter. _encoder is a function which will perform the actual encoding for transport of the image data. It takes one argument, which is this Image instance. It should use get_payload() and set_payload() to change the payload to the encoded form. It should also add any Content-Transfer-Encoding or other headers to the message as necessary. The default encoding is Base64. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz"Could not guess image MIME subtypeZimager)imghdrZwhat TypeErrorr__init__Z set_payload)selfZ _imagedataZ_subtypeZ_encoderrZ_paramsr (/usr/lib64/python3.8/email/mime/image.pyrs  zMIMEImage.__init__)__name__ __module__ __qualname____doc__rZ encode_base64rr r r r rs )r__all__rZemailrZemail.mime.nonmultipartrrr r r r s   PK!9A|B B &__pycache__/audio.cpython-38.opt-1.pycnu[U e5d @s`dZdgZddlZddlmZddlmZddlmZddd d d Z d d Z Gd ddeZ dS)z/Class representing audio/* type MIME documents. MIMEAudioN)BytesIO)encoders)MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifccCsH|dd}t|}tjD](}|||}|dk rt|dSqdS)aTry to identify a sound file type. sndhdr.what() has a pretty cruddy interface, unfortunately. This is why we re-do it here. It would be easier to reverse engineer the Unix 'file' command and use the standard 'magic' file, as shipped with a modern Unix. Nir)rsndhdrZtests_sndhdr_MIMEmapget)dataZhdrZfakefileZtestfnresr (/usr/lib64/python3.8/email/mime/audio.py_whatsnds   r c@s&eZdZdZdejfddddZdS)rz,Class for generating audio/* MIME documents.N)policycKsP|dkrt|}|dkr tdtj|d|fd|i|||||dS)a Create an audio/* type MIME document. _audiodata is a string containing the raw audio data. If this data can be decoded by the standard Python `sndhdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific audio subtype via the _subtype parameter. If _subtype is not given, and no subtype can be guessed, a TypeError is raised. _encoder is a function which will perform the actual encoding for transport of the image data. It takes one argument, which is this Image instance. It should use get_payload() and set_payload() to change the payload to the encoded form. It should also add any Content-Transfer-Encoding or other headers to the message as necessary. The default encoding is Base64. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz!Could not find audio MIME subtypeZaudior)r TypeErrorr__init__Z set_payload)selfZ _audiodataZ_subtypeZ_encoderrZ_paramsr r r r-s zMIMEAudio.__init__)__name__ __module__ __qualname____doc__rZ encode_base64rr r r r r*s ) r__all__riorZemailrZemail.mime.nonmultipartrrr rr r r r s   PK!꯮*__pycache__/multipart.cpython-38.opt-1.pycnu[U e5dU@s*dZdgZddlmZGdddeZdS).Base class for MIME multipart/* type messages. MIMEMultipart)MIMEBasec@s eZdZdZdddddZdS)rrmixedN)policycKsJtj|d|fd|i|g|_|r8|D]}||q(|rF||dS)aCreates a multipart/* type message. By default, creates a multipart/mixed message, with proper Content-Type and MIME-Version headers. _subtype is the subtype of the multipart content type, defaulting to `mixed'. boundary is the multipart boundary string. By default it is calculated as needed. _subparts is a sequence of initial subparts for the payload. It must be an iterable object, such as a list. You can always attach new subparts to the message by using the attach() method. Additional parameters for the Content-Type header are taken from the keyword arguments (or passed into the _params argument). Z multipartrN)r__init__Z_payloadZattachZ set_boundary)selfZ_subtypeboundaryZ _subpartsrZ_paramspr ,/usr/lib64/python3.8/email/mime/multipart.pyrs zMIMEMultipart.__init__)rNN)__name__ __module__ __qualname____doc__rr r r r r sN)r__all__Zemail.mime.baserrr r r r s PK!3&__pycache__/audio.cpython-38.opt-2.pycnu[U e5d @s\dgZddlZddlmZddlmZddlmZddddd Zd d Z Gd ddeZ dS) MIMEAudioN)BytesIO)encoders)MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifccCsH|dd}t|}tjD](}|||}|dk rt|dSqdS)Nir)rsndhdrZtests_sndhdr_MIMEmapget)dataZhdrZfakefileZtestfnresr (/usr/lib64/python3.8/email/mime/audio.py_whatsnds   r c@s"eZdZdejfddddZdS)rN)policycKsP|dkrt|}|dkr tdtj|d|fd|i|||||dS)Nz!Could not find audio MIME subtypeZaudior)r TypeErrorr__init__Z set_payload)selfZ _audiodataZ_subtypeZ_encoderrZ_paramsr r r r-s zMIMEAudio.__init__)__name__ __module__ __qualname__rZ encode_base64rr r r r r*s ) __all__riorZemailrZemail.mime.nonmultipartrrr rr r r r s   PK!-@-__pycache__/nonmultipart.cpython-38.opt-1.pycnu[U e5d@s6dZdgZddlmZddlmZGdddeZdS)z9Base class for MIME type messages that are not multipart.MIMENonMultipart)errors)MIMEBasec@seZdZdZddZdS)rz0Base class for MIME non-multipart type messages.cCstddS)Nz4Cannot attach additional subparts to non-multipart/*)rZMultipartConversionError)selfZpayloadr//usr/lib64/python3.8/email/mime/nonmultipart.pyattachszMIMENonMultipart.attachN)__name__ __module__ __qualname____doc__rrrrrrsN)r __all__ZemailrZemail.mime.baserrrrrrs  PK!CԵ,__pycache__/application.cpython-38.opt-1.pycnu[U e5d)@s6dZdgZddlmZddlmZGdddeZdS)z5Class representing application/* type MIME documents.MIMEApplication)encoders)MIMENonMultipartc@s&eZdZdZdejfddddZdS)rz2Class for generating application/* MIME documents.z octet-streamN)policycKs@|dkrtdtj|d|fd|i|||||dS)aCreate an application/* type MIME document. _data is a string containing the raw application data. _subtype is the MIME content type subtype, defaulting to 'octet-stream'. _encoder is a function which will perform the actual encoding for transport of the application data, defaulting to base64 encoding. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. Nz Invalid application MIME subtypeZ applicationr) TypeErrorr__init__Z set_payload)self_dataZ_subtypeZ_encoderrZ_paramsr ./usr/lib64/python3.8/email/mime/application.pyrs zMIMEApplication.__init__)__name__ __module__ __qualname____doc__rZ encode_base64rr r r r r s N)r__all__ZemailrZemail.mime.nonmultipartrrr r r r s  PK!(__pycache__/message.cpython-38.opt-1.pycnu[U e5d%@s6dZdgZddlmZddlmZGdddeZdS),Class representing message/* MIME documents. MIMEMessage)message)MIMENonMultipartc@s eZdZdZdddddZdS)rrrfc822NpolicycCsBtj|d||dt|tjs&tdtj|||ddS)aCreate a message/* type MIME document. _msg is a message object and must be an instance of Message, or a derived class of Message, otherwise a TypeError is raised. Optional _subtype defines the subtype of the contained message. The default is "rfc822" (this is defined by the MIME standard, even though the term "rfc822" is technically outdated by RFC 2822). rrz&Argument is not an instance of Messagezmessage/rfc822N)r__init__ isinstancerZMessage TypeErrorZattachZset_default_type)selfZ_msgZ_subtyperr */usr/lib64/python3.8/email/mime/message.pyr s  zMIMEMessage.__init__)r)__name__ __module__ __qualname____doc__r r r r rrsN)r__all__ZemailrZemail.mime.nonmultipartrrr r r rs  PK!:n]#__pycache__/__init__.cpython-38.pycnu[U .e@sdS)Nrrr+/usr/lib64/python3.8/email/mime/__init__.pyPK!!'ݝtext.pynu[# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Class representing text/* type MIME documents.""" __all__ = ['MIMEText'] from email.charset import Charset from email.mime.nonmultipart import MIMENonMultipart class MIMEText(MIMENonMultipart): """Class for generating text/* type MIME documents.""" def __init__(self, _text, _subtype='plain', _charset=None, *, policy=None): """Create a text/* type MIME document. _text is the string for this message object. _subtype is the MIME sub content type, defaulting to "plain". _charset is the character set parameter added to the Content-Type header. This defaults to "us-ascii". Note that as a side-effect, the Content-Transfer-Encoding header will also be set. """ # If no _charset was specified, check to see if there are non-ascii # characters present. If not, use 'us-ascii', otherwise use utf-8. # XXX: This can be removed once #7304 is fixed. if _charset is None: try: _text.encode('us-ascii') _charset = 'us-ascii' except UnicodeEncodeError: _charset = 'utf-8' MIMENonMultipart.__init__(self, 'text', _subtype, policy=policy, **{'charset': str(_charset)}) self.set_payload(_text, _charset) PK!KB audio.pynu[# Copyright (C) 2001-2007 Python Software Foundation # Author: Anthony Baxter # Contact: email-sig@python.org """Class representing audio/* type MIME documents.""" __all__ = ['MIMEAudio'] import sndhdr from io import BytesIO from email import encoders from email.mime.nonmultipart import MIMENonMultipart _sndhdr_MIMEmap = {'au' : 'basic', 'wav' :'x-wav', 'aiff':'x-aiff', 'aifc':'x-aiff', } # There are others in sndhdr that don't have MIME types. :( # Additional ones to be added to sndhdr? midi, mp3, realaudio, wma?? def _whatsnd(data): """Try to identify a sound file type. sndhdr.what() has a pretty cruddy interface, unfortunately. This is why we re-do it here. It would be easier to reverse engineer the Unix 'file' command and use the standard 'magic' file, as shipped with a modern Unix. """ hdr = data[:512] fakefile = BytesIO(hdr) for testfn in sndhdr.tests: res = testfn(hdr, fakefile) if res is not None: return _sndhdr_MIMEmap.get(res[0]) return None class MIMEAudio(MIMENonMultipart): """Class for generating audio/* MIME documents.""" def __init__(self, _audiodata, _subtype=None, _encoder=encoders.encode_base64, *, policy=None, **_params): """Create an audio/* type MIME document. _audiodata is a string containing the raw audio data. If this data can be decoded by the standard Python `sndhdr' module, then the subtype will be automatically included in the Content-Type header. Otherwise, you can specify the specific audio subtype via the _subtype parameter. If _subtype is not given, and no subtype can be guessed, a TypeError is raised. _encoder is a function which will perform the actual encoding for transport of the image data. It takes one argument, which is this Image instance. It should use get_payload() and set_payload() to change the payload to the encoded form. It should also add any Content-Transfer-Encoding or other headers to the message as necessary. The default encoding is Base64. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. """ if _subtype is None: _subtype = _whatsnd(_audiodata) if _subtype is None: raise TypeError('Could not find audio MIME subtype') MIMENonMultipart.__init__(self, 'audio', _subtype, policy=policy, **_params) self.set_payload(_audiodata) _encoder(self) PK!A/c))application.pynu[# Copyright (C) 2001-2006 Python Software Foundation # Author: Keith Dart # Contact: email-sig@python.org """Class representing application/* type MIME documents.""" __all__ = ["MIMEApplication"] from email import encoders from email.mime.nonmultipart import MIMENonMultipart class MIMEApplication(MIMENonMultipart): """Class for generating application/* MIME documents.""" def __init__(self, _data, _subtype='octet-stream', _encoder=encoders.encode_base64, *, policy=None, **_params): """Create an application/* type MIME document. _data is a string containing the raw application data. _subtype is the MIME content type subtype, defaulting to 'octet-stream'. _encoder is a function which will perform the actual encoding for transport of the application data, defaulting to base64 encoding. Any additional keyword arguments are passed to the base class constructor, which turns them into parameters on the Content-Type header. """ if _subtype is None: raise TypeError('Invalid application MIME subtype') MIMENonMultipart.__init__(self, 'application', _subtype, policy=policy, **_params) self.set_payload(_data) _encoder(self) PK!2_UU multipart.pynu[# Copyright (C) 2002-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Base class for MIME multipart/* type messages.""" __all__ = ['MIMEMultipart'] from email.mime.base import MIMEBase class MIMEMultipart(MIMEBase): """Base class for MIME multipart/* type messages.""" def __init__(self, _subtype='mixed', boundary=None, _subparts=None, *, policy=None, **_params): """Creates a multipart/* type message. By default, creates a multipart/mixed message, with proper Content-Type and MIME-Version headers. _subtype is the subtype of the multipart content type, defaulting to `mixed'. boundary is the multipart boundary string. By default it is calculated as needed. _subparts is a sequence of initial subparts for the payload. It must be an iterable object, such as a list. You can always attach new subparts to the message by using the attach() method. Additional parameters for the Content-Type header are taken from the keyword arguments (or passed into the _params argument). """ MIMEBase.__init__(self, 'multipart', _subtype, policy=policy, **_params) # Initialise _payload to an empty list as the Message superclass's # implementation of is_multipart assumes that _payload is a list for # multipart messages. self._payload = [] if _subparts: for p in _subparts: self.attach(p) if boundary: self.set_boundary(boundary) PK!fbase.pynu[# Copyright (C) 2001-2006 Python Software Foundation # Author: Barry Warsaw # Contact: email-sig@python.org """Base class for MIME specializations.""" __all__ = ['MIMEBase'] import email.policy from email import message class MIMEBase(message.Message): """Base class for MIME specializations.""" def __init__(self, _maintype, _subtype, *, policy=None, **_params): """This constructor adds a Content-Type: and a MIME-Version: header. The Content-Type: header is taken from the _maintype and _subtype arguments. Additional parameters for this header are taken from the keyword arguments. """ if policy is None: policy = email.policy.compat32 message.Message.__init__(self, policy=policy) ctype = '%s/%s' % (_maintype, _subtype) self.add_header('Content-Type', ctype, **_params) self['MIME-Version'] = '1.0' PK!n%% message.pynu[PK! ___init__.pynu[PK!%%image.pynu[PK!sZ nonmultipart.pynu[PK!S`""%__pycache__/text.cpython-38.opt-2.pycnu[PK!C`__pycache__/base.cpython-38.pycnu[PK!y!!%__pycache__/text.cpython-38.opt-1.pycnu[PK!CԵ&8__pycache__/application.cpython-38.pycnu[PK!C%C#__pycache__/base.cpython-38.opt-1.pycnu[PK!꯮$'__pycache__/multipart.cpython-38.pycnu[PK!'Hd(-__pycache__/message.cpython-38.opt-2.pycnu[PK!"O1__pycache__/message.cpython-38.pycnu[PK! X'',6__pycache__/application.cpython-38.opt-2.pycnu[PK!:n])(:__pycache__/__init__.cpython-38.opt-1.pycnu[PK!y!!;__pycache__/text.cpython-38.pycnu[PK!:n])w@__pycache__/__init__.cpython-38.opt-2.pycnu[PK!norr&VA__pycache__/image.cpython-38.opt-1.pycnu[PK!9B{==&I__pycache__/image.cpython-38.opt-2.pycnu[PK!Rww-L__pycache__/nonmultipart.cpython-38.opt-2.pycnu[PK!\%O__pycache__/base.cpython-38.opt-2.pycnu[PK!-@'R__pycache__/nonmultipart.cpython-38.pycnu[PK!9A|B B U__pycache__/audio.cpython-38.pycnu[PK!dR*`__pycache__/multipart.cpython-38.opt-2.pycnu[PK!norr c__pycache__/image.cpython-38.pycnu[PK!9A|B B &pk__pycache__/audio.cpython-38.opt-1.pycnu[PK!꯮*v__pycache__/multipart.cpython-38.opt-1.pycnu[PK!3&B|__pycache__/audio.cpython-38.opt-2.pycnu[PK!-@-:__pycache__/nonmultipart.cpython-38.opt-1.pycnu[PK!CԵ,__pycache__/application.cpython-38.opt-1.pycnu[PK!(__pycache__/message.cpython-38.opt-1.pycnu[PK!:n]#__pycache__/__init__.cpython-38.pycnu[PK!!'ݝېtext.pynu[PK!KB audio.pynu[PK!A/c))application.pynu[PK!2_UU multipart.pynu[PK!fbase.pynu[PK$$d ]