Current File : /home/mmdealscpanel/yummmdeals.com/mime.tar
message.py000064400000002406150524404550006550 0ustar00# 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'):
        """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)
        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')
__init__.py000064400000000000150524404550006647 0ustar00image.py000064400000003344150524404550006210 0ustar00# 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, **_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, **_params)
        self.set_payload(_imagedata)
        _encoder(self)
nonmultipart.py000064400000001263150524404550007660 0ustar00# 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/*')
__pycache__/text.cpython-38.opt-2.pyc000064400000001442150524404560013336 0ustar00U

e5d��@s2dgZddlmZddlmZGdd�de�ZdS)�MIMEText�)�Charset)�MIMENonMultipartc@seZdZddd�dd�ZdS)r�plainN)�policycCsf|dkr4z|�d�d}Wntk
r2d}YnXtj|d|fd|idt|�i��|�||�dS)Nzus-asciizutf-8�textr�charset)�encode�UnicodeEncodeErrorr�__init__�strZset_payload)�selfZ_textZ_subtypeZ_charsetr�r�'/usr/lib64/python3.8/email/mime/text.pyrs


�zMIMEText.__init__)rN)�__name__�
__module__�__qualname__rrrrrrsN)�__all__Z
email.charsetrZemail.mime.nonmultipartrrrrrr�<module>s__pycache__/base.cpython-38.pyc000064400000002023150524404560012320 0ustar00U

e5d��@s4dZdgZddlZddlmZGdd�dej�ZdS)�$Base class for MIME specializations.�MIMEBase�N)�messagec@seZdZdZdd�dd�ZdS)rrN��policycKsH|dkrtjj}tjj||d�d||f}|jd|f|�d|d<dS)z�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.
        Nrz%s/%szContent-Typez1.0zMIME-Version)�emailrZcompat32r�Message�__init__Z
add_header)�selfZ	_maintypeZ_subtyperZ_paramsZctype�r�'/usr/lib64/python3.8/email/mime/base.pyr	szMIMEBase.__init__)�__name__�
__module__�__qualname__�__doc__r	rrrrrs)r�__all__Zemail.policyrrrrrrrr�<module>s__pycache__/text.cpython-38.opt-1.pyc000064400000002441150524404570013336 0ustar00U

e5d��@s6dZdgZddlmZddlmZGdd�de�ZdS)z.Class representing text/* type MIME documents.�MIMEText�)�Charset)�MIMENonMultipartc@s eZdZdZddd�dd�ZdS)rz0Class for generating text/* type MIME documents.�plainN)�policycCsf|dkr4z|�d�d}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-8�textr�charset)�encode�UnicodeEncodeErrorr�__init__�strZset_payload)�selfZ_textZ_subtypeZ_charsetr�r�'/usr/lib64/python3.8/email/mime/text.pyrs


�zMIMEText.__init__)rN)�__name__�
__module__�__qualname__�__doc__rrrrrrsN)r�__all__Z
email.charsetrZemail.mime.nonmultipartrrrrrr�<module>s__pycache__/application.cpython-38.pyc000064400000002665150524404570013726 0ustar00U

e5d)�@s6dZdgZddlmZddlmZGdd�de�ZdS)z5Class representing application/* type MIME documents.�MIMEApplication�)�encoders)�MIMENonMultipartc@s&eZdZdZdejfdd�dd�ZdS)rz2Class for generating application/* MIME documents.zoctet-streamN)�policycKs@|dkrtd��tj|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 subtypeZapplicationr)�	TypeErrorr�__init__Zset_payload)�self�_dataZ_subtypeZ_encoderrZ_params�r
�./usr/lib64/python3.8/email/mime/application.pyrs�
zMIMEApplication.__init__)�__name__�
__module__�__qualname__�__doc__rZ
encode_base64rr
r
r
rr
s��N)r�__all__ZemailrZemail.mime.nonmultipartrrr
r
r
r�<module>s__pycache__/base.cpython-38.opt-1.pyc000064400000002023150524404600013252 0ustar00U

e5d��@s4dZdgZddlZddlmZGdd�dej�ZdS)�$Base class for MIME specializations.�MIMEBase�N)�messagec@seZdZdZdd�dd�ZdS)rrN��policycKsH|dkrtjj}tjj||d�d||f}|jd|f|�d|d<dS)z�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.
        Nrz%s/%szContent-Typez1.0zMIME-Version)�emailrZcompat32r�Message�__init__Z
add_header)�selfZ	_maintypeZ_subtyperZ_paramsZctype�r�'/usr/lib64/python3.8/email/mime/base.pyr	szMIMEBase.__init__)�__name__�
__module__�__qualname__�__doc__r	rrrrrs)r�__all__Zemail.policyrrrrrrrr�<module>s__pycache__/multipart.cpython-38.pyc000064400000002740150524404600013430 0ustar00U

e5dU�@s*dZdgZddlmZGdd�de�ZdS)�.Base class for MIME multipart/* type messages.�
MIMEMultipart�)�MIMEBasec@s eZdZdZddd�dd�ZdS)rr�mixedN)�policycKsJtj|d|fd|i|��g|_|r8|D]}|�|�q(|rF|�|�dS)a�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).
        Z	multipartrN)r�__init__Z_payloadZattachZset_boundary)�selfZ_subtype�boundaryZ	_subpartsrZ_params�p�r�,/usr/lib64/python3.8/email/mime/multipart.pyrszMIMEMultipart.__init__)rNN)�__name__�
__module__�__qualname__�__doc__rrrrrr
s�N)r�__all__Zemail.mime.baserrrrrr�<module>s__pycache__/message.cpython-38.opt-2.pyc000064400000001430150524404610013767 0ustar00U

e5d%�@s2dgZddlmZddlmZGdd�de�ZdS)�MIMEMessage�)�message)�MIMENonMultipartc@seZdZddd�dd�ZdS)r�rfc822N��policycCsBtj|d||d�t|tj�s&td��tj�||�|�d�dS)Nrrz&Argument is not an instance of Messagezmessage/rfc822)r�__init__�
isinstancerZMessage�	TypeErrorZattachZset_default_type)�selfZ_msgZ_subtyper�r�*/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
�<module>s__pycache__/message.cpython-38.pyc000064400000002404150524404610013031 0ustar00U

e5d%�@s6dZdgZddlmZddlmZGdd�de�ZdS)�,Class representing message/* MIME documents.�MIMEMessage�)�message)�MIMENonMultipartc@s eZdZdZddd�dd�ZdS)rr�rfc822N��policycCsBtj|d||d�t|tj�s&td��tj�||�|�d�dS)a�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).
        rrz&Argument is not an instance of Messagezmessage/rfc822N)r�__init__�
isinstancerZMessage�	TypeErrorZattachZset_default_type)�selfZ_msgZ_subtyper�r
�*/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
r�<module>s__pycache__/application.cpython-38.opt-2.pyc000064400000001447150524404620014657 0ustar00U

e5d)�@s2dgZddlmZddlmZGdd�de�ZdS)�MIMEApplication�)�encoders)�MIMENonMultipartc@s"eZdZdejfdd�dd�ZdS)rzoctet-streamN)�policycKs@|dkrtd��tj|d|fd|i|��|�|�||�dS)Nz Invalid application MIME subtypeZapplicationr)�	TypeErrorr�__init__Zset_payload)�self�_dataZ_subtypeZ_encoderrZ_params�r
�./usr/lib64/python3.8/email/mime/application.pyrs�
zMIMEApplication.__init__)�__name__�
__module__�__qualname__rZ
encode_base64rr
r
r
rr
s
��N)�__all__ZemailrZemail.mime.nonmultipartrrr
r
r
r�<module>s__pycache__/__init__.cpython-38.opt-1.pyc000064400000000206150524404630014103 0ustar00U

��.e�@sdS)N�rrr�+/usr/lib64/python3.8/email/mime/__init__.py�<module>�__pycache__/text.cpython-38.pyc000064400000002441150524404630012374 0ustar00U

e5d��@s6dZdgZddlmZddlmZGdd�de�ZdS)z.Class representing text/* type MIME documents.�MIMEText�)�Charset)�MIMENonMultipartc@s eZdZdZddd�dd�ZdS)rz0Class for generating text/* type MIME documents.�plainN)�policycCsf|dkr4z|�d�d}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-8�textr�charset)�encode�UnicodeEncodeErrorr�__init__�strZset_payload)�selfZ_textZ_subtypeZ_charsetr�r�'/usr/lib64/python3.8/email/mime/text.pyrs


�zMIMEText.__init__)rN)�__name__�
__module__�__qualname__�__doc__rrrrrrsN)r�__all__Z
email.charsetrZemail.mime.nonmultipartrrrrrr�<module>s__pycache__/__init__.cpython-38.opt-2.pyc000064400000000206150524404630014104 0ustar00U

��.e�@sdS)N�rrr�+/usr/lib64/python3.8/email/mime/__init__.py�<module>�__pycache__/image.cpython-38.opt-1.pyc000064400000003562150524404630013436 0ustar00U

e5d%�@s>dZdgZddlZddlmZddlmZGdd�de�ZdS)z/Class representing image/* type MIME documents.�	MIMEImage�N)�encoders)�MIMENonMultipartc@s&eZdZdZdejfdd�dd�ZdS)rz1Class for generating image/* type MIME documents.N)�policycKsT|dkrt�d|�}|dkr$td��tj|d|fd|i|��|�|�||�dS)a�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.
        Nz"Could not guess image MIME subtypeZimager)�imghdrZwhat�	TypeErrorr�__init__Zset_payload)�selfZ
_imagedataZ_subtypeZ_encoderrZ_params�r
�(/usr/lib64/python3.8/email/mime/image.pyrs�
zMIMEImage.__init__)�__name__�
__module__�__qualname__�__doc__rZ
encode_base64rr
r
r
rrs��)r�__all__rZemailrZemail.mime.nonmultipartrrr
r
r
r�<module>s
__pycache__/image.cpython-38.opt-2.pyc000064400000001475150524404640013441 0ustar00U

e5d%�@s:dgZddlZddlmZddlmZGdd�de�ZdS)�	MIMEImage�N)�encoders)�MIMENonMultipartc@s"eZdZdejfdd�dd�ZdS)rN)�policycKsT|dkrt�d|�}|dkr$td��tj|d|fd|i|��|�|�||�dS)Nz"Could not guess image MIME subtypeZimager)�imghdrZwhat�	TypeErrorr�__init__Zset_payload)�selfZ
_imagedataZ_subtypeZ_encoderrZ_params�r
�(/usr/lib64/python3.8/email/mime/image.pyrs�
zMIMEImage.__init__)�__name__�
__module__�__qualname__rZ
encode_base64rr
r
r
rrs
��)�__all__rZemailrZemail.mime.nonmultipartrrr
r
r
r�<module>s__pycache__/nonmultipart.cpython-38.opt-2.pyc000064400000001167150524404650015112 0ustar00U

e5d��@s2dgZddlmZddlmZGdd�de�ZdS)�MIMENonMultipart�)�errors)�MIMEBasec@seZdZdd�ZdS)rcCst�d��dS)Nz4Cannot attach additional subparts to non-multipart/*)rZMultipartConversionError)�selfZpayload�r�//usr/lib64/python3.8/email/mime/nonmultipart.py�attachs�zMIMENonMultipart.attachN)�__name__�
__module__�__qualname__rrrrrrsN)�__all__ZemailrZemail.mime.baserrrrrr�<module>s__pycache__/base.cpython-38.opt-2.pyc000064400000001317150524404650013265 0ustar00U

e5d��@s0dgZddlZddlmZGdd�dej�ZdS)�MIMEBase�N)�messagec@seZdZdd�dd�ZdS)rN��policycKsH|dkrtjj}tjj||d�d||f}|jd|f|�d|d<dS)Nrz%s/%szContent-Typez1.0zMIME-Version)�emailrZcompat32r�Message�__init__Z
add_header)�selfZ	_maintypeZ_subtyperZ_paramsZctype�r
�'/usr/lib64/python3.8/email/mime/base.pyrszMIMEBase.__init__)�__name__�
__module__�__qualname__rr
r
r
rrs)�__all__Zemail.policyrrrrr
r
r
r�<module>s__pycache__/nonmultipart.cpython-38.pyc000064400000001376150524404660014155 0ustar00U

e5d��@s6dZdgZddlmZddlmZGdd�de�ZdS)z9Base class for MIME type messages that are not multipart.�MIMENonMultipart�)�errors)�MIMEBasec@seZdZdZdd�ZdS)rz0Base class for MIME non-multipart type messages.cCst�d��dS)Nz4Cannot attach additional subparts to non-multipart/*)rZMultipartConversionError)�selfZpayload�r�//usr/lib64/python3.8/email/mime/nonmultipart.py�attachs�zMIMENonMultipart.attachN)�__name__�
__module__�__qualname__�__doc__rrrrrrsN)r�__all__ZemailrZemail.mime.baserrrrrr�<module>s__pycache__/audio.cpython-38.pyc000064400000005102150524404660012511 0ustar00U

e5d�
�@s`dZdgZddlZddlmZddlmZddlmZddd	d	d
�Z	dd�Z
Gd
d�de�ZdS)z/Class representing audio/* type MIME documents.�	MIMEAudio�N)�BytesIO)�encoders)�MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifccCsH|dd�}t|�}tjD](}|||�}|dk	rt�|d�SqdS)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)r�sndhdrZtests�_sndhdr_MIMEmap�get)�dataZhdrZfakefileZtestfn�res�r�(/usr/lib64/python3.8/email/mime/audio.py�_whatsnds

r
c@s&eZdZdZdejfdd�dd�ZdS)rz,Class for generating audio/* MIME documents.N)�policycKsP|dkrt|�}|dkr td��tj|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__Zset_payload)�selfZ
_audiodataZ_subtypeZ_encoderrZ_paramsrrrr-s�
zMIMEAudio.__init__)�__name__�
__module__�__qualname__�__doc__rZ
encode_base64rrrrrr*s��)r�__all__r�iorZemailrZemail.mime.nonmultipartrrr
rrrrr�<module>s�__pycache__/multipart.cpython-38.opt-2.pyc000064400000001304150524404670014372 0ustar00U

e5dU�@s&dgZddlmZGdd�de�ZdS)�
MIMEMultipart�)�MIMEBasec@seZdZddd�dd�ZdS)r�mixedN)�policycKsJtj|d|fd|i|��g|_|r8|D]}|�|�q(|rF|�|�dS)NZ	multipartr)r�__init__Z_payloadZattachZset_boundary)�selfZ_subtype�boundaryZ	_subpartsrZ_params�p�r
�,/usr/lib64/python3.8/email/mime/multipart.pyrszMIMEMultipart.__init__)rNN)�__name__�
__module__�__qualname__rr
r
r
rr
s�N)�__all__Zemail.mime.baserrr
r
r
r�<module>s__pycache__/image.cpython-38.pyc000064400000003562150524404700012475 0ustar00U

e5d%�@s>dZdgZddlZddlmZddlmZGdd�de�ZdS)z/Class representing image/* type MIME documents.�	MIMEImage�N)�encoders)�MIMENonMultipartc@s&eZdZdZdejfdd�dd�ZdS)rz1Class for generating image/* type MIME documents.N)�policycKsT|dkrt�d|�}|dkr$td��tj|d|fd|i|��|�|�||�dS)a�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.
        Nz"Could not guess image MIME subtypeZimager)�imghdrZwhat�	TypeErrorr�__init__Zset_payload)�selfZ
_imagedataZ_subtypeZ_encoderrZ_params�r
�(/usr/lib64/python3.8/email/mime/image.pyrs�
zMIMEImage.__init__)�__name__�
__module__�__qualname__�__doc__rZ
encode_base64rr
r
r
rrs��)r�__all__rZemailrZemail.mime.nonmultipartrrr
r
r
r�<module>s
__pycache__/audio.cpython-38.opt-1.pyc000064400000005102150524404710013444 0ustar00U

e5d�
�@s`dZdgZddlZddlmZddlmZddlmZddd	d	d
�Z	dd�Z
Gd
d�de�ZdS)z/Class representing audio/* type MIME documents.�	MIMEAudio�N)�BytesIO)�encoders)�MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifccCsH|dd�}t|�}tjD](}|||�}|dk	rt�|d�SqdS)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)r�sndhdrZtests�_sndhdr_MIMEmap�get)�dataZhdrZfakefileZtestfn�res�r�(/usr/lib64/python3.8/email/mime/audio.py�_whatsnds

r
c@s&eZdZdZdejfdd�dd�ZdS)rz,Class for generating audio/* MIME documents.N)�policycKsP|dkrt|�}|dkr td��tj|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__Zset_payload)�selfZ
_audiodataZ_subtypeZ_encoderrZ_paramsrrrr-s�
zMIMEAudio.__init__)�__name__�
__module__�__qualname__�__doc__rZ
encode_base64rrrrrr*s��)r�__all__r�iorZemailrZemail.mime.nonmultipartrrr
rrrrr�<module>s�__pycache__/multipart.cpython-38.opt-1.pyc000064400000002740150524404710014371 0ustar00U

e5dU�@s*dZdgZddlmZGdd�de�ZdS)�.Base class for MIME multipart/* type messages.�
MIMEMultipart�)�MIMEBasec@s eZdZdZddd�dd�ZdS)rr�mixedN)�policycKsJtj|d|fd|i|��g|_|r8|D]}|�|�q(|rF|�|�dS)a�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).
        Z	multipartrN)r�__init__Z_payloadZattachZset_boundary)�selfZ_subtype�boundaryZ	_subpartsrZ_params�p�r�,/usr/lib64/python3.8/email/mime/multipart.pyrszMIMEMultipart.__init__)rNN)�__name__�
__module__�__qualname__�__doc__rrrrrr
s�N)r�__all__Zemail.mime.baserrrrrr�<module>s__pycache__/audio.cpython-38.opt-2.pyc000064400000002242150524404710013447 0ustar00U

e5d�
�@s\dgZddlZddlmZddlmZddlmZddddd	�Zd
d�Z	Gdd�de�Z
dS)
�	MIMEAudio�N)�BytesIO)�encoders)�MIMENonMultipartZbasiczx-wavzx-aiff)ZauZwavZaiffZaifccCsH|dd�}t|�}tjD](}|||�}|dk	rt�|d�SqdS)Nir)r�sndhdrZtests�_sndhdr_MIMEmap�get)�dataZhdrZfakefileZtestfn�res�r�(/usr/lib64/python3.8/email/mime/audio.py�_whatsnds

r
c@s"eZdZdejfdd�dd�ZdS)rN)�policycKsP|dkrt|�}|dkr td��tj|d|fd|i|��|�|�||�dS)Nz!Could not find audio MIME subtypeZaudior)r
�	TypeErrorr�__init__Zset_payload)�selfZ
_audiodataZ_subtypeZ_encoderrZ_paramsrrrr-s�
zMIMEAudio.__init__)�__name__�
__module__�__qualname__rZ
encode_base64rrrrrr*s
��)�__all__r�iorZemailrZemail.mime.nonmultipartrrr
rrrrr�<module>s�__pycache__/nonmultipart.cpython-38.opt-1.pyc000064400000001376150524404720015111 0ustar00U

e5d��@s6dZdgZddlmZddlmZGdd�de�ZdS)z9Base class for MIME type messages that are not multipart.�MIMENonMultipart�)�errors)�MIMEBasec@seZdZdZdd�ZdS)rz0Base class for MIME non-multipart type messages.cCst�d��dS)Nz4Cannot attach additional subparts to non-multipart/*)rZMultipartConversionError)�selfZpayload�r�//usr/lib64/python3.8/email/mime/nonmultipart.py�attachs�zMIMENonMultipart.attachN)�__name__�
__module__�__qualname__�__doc__rrrrrrsN)r�__all__ZemailrZemail.mime.baserrrrrr�<module>s__pycache__/application.cpython-38.opt-1.pyc000064400000002665150524404720014662 0ustar00U

e5d)�@s6dZdgZddlmZddlmZGdd�de�ZdS)z5Class representing application/* type MIME documents.�MIMEApplication�)�encoders)�MIMENonMultipartc@s&eZdZdZdejfdd�dd�ZdS)rz2Class for generating application/* MIME documents.zoctet-streamN)�policycKs@|dkrtd��tj|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 subtypeZapplicationr)�	TypeErrorr�__init__Zset_payload)�self�_dataZ_subtypeZ_encoderrZ_params�r
�./usr/lib64/python3.8/email/mime/application.pyrs�
zMIMEApplication.__init__)�__name__�
__module__�__qualname__�__doc__rZ
encode_base64rr
r
r
rr
s��N)r�__all__ZemailrZemail.mime.nonmultipartrrr
r
r
r�<module>s__pycache__/message.cpython-38.opt-1.pyc000064400000002404150524404730013773 0ustar00U

e5d%�@s6dZdgZddlmZddlmZGdd�de�ZdS)�,Class representing message/* MIME documents.�MIMEMessage�)�message)�MIMENonMultipartc@s eZdZdZddd�dd�ZdS)rr�rfc822N��policycCsBtj|d||d�t|tj�s&td��tj�||�|�d�dS)a�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).
        rrz&Argument is not an instance of Messagezmessage/rfc822N)r�__init__�
isinstancerZMessage�	TypeErrorZattachZset_default_type)�selfZ_msgZ_subtyper�r
�*/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
r�<module>s__pycache__/__init__.cpython-38.pyc000064400000000206150524404730013145 0ustar00U

��.e�@sdS)N�rrr�+/usr/lib64/python3.8/email/mime/__init__.py�<module>�text.py000064400000001756150524404730006117 0ustar00# 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.encoders import encode_7or8bit
from email.mime.nonmultipart import MIMENonMultipart



class MIMEText(MIMENonMultipart):
    """Class for generating text/* type MIME documents."""

    def __init__(self, _text, _subtype='plain', _charset='us-ascii'):
        """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.
        """
        MIMENonMultipart.__init__(self, 'text', _subtype,
                                  **{'charset': _charset})
        self.set_payload(_text, _charset)
audio.py000064400000005173150524404730006231 0ustar00# Copyright (C) 2001-2006 Python Software Foundation
# Author: Anthony Baxter
# Contact: email-sig@python.org

"""Class representing audio/* type MIME documents."""

__all__ = ['MIMEAudio']

import sndhdr

from cStringIO import StringIO
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 = StringIO(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, **_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, **_params)
        self.set_payload(_audiodata)
        _encoder(self)
application.py000064400000002350150524404740007426 0ustar00# 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, **_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, **_params)
        self.set_payload(_data)
        _encoder(self)
multipart.py000064400000003045150524404740007146 0ustar00# 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,
                 **_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, **_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)
base.py000064400000001432150524404750006036 0ustar00# Copyright (C) 2001-2006 Python Software Foundation
# Author: Barry Warsaw
# Contact: email-sig@python.org

"""Base class for MIME specializations."""

__all__ = ['MIMEBase']

from email import message



class MIMEBase(message.Message):
    """Base class for MIME specializations."""

    def __init__(self, _maintype, _subtype, **_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.
        """
        message.Message.__init__(self)
        ctype = '%s/%s' % (_maintype, _subtype)
        self.add_header('Content-Type', ctype, **_params)
        self['MIME-Version'] = '1.0'
text.pyc000064400000002434150530042660006251 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s.Class representing text/* type MIME documents.tMIMETexti����(tencode_7or8bit(tMIMENonMultipartcBseZdZddd�ZRS(s0Class for generating text/* type MIME documents.tplainsus-asciicCs1tj|d|i|d6�|j||�dS(s~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.
        ttexttcharsetN(Rt__init__tset_payload(tselft_textt_subtypet_charset((s'/usr/lib64/python2.7/email/mime/text.pyRs(t__name__t
__module__t__doc__R(((s'/usr/lib64/python2.7/email/mime/text.pyRsN(Rt__all__temail.encodersRtemail.mime.nonmultipartRR(((s'/usr/lib64/python2.7/email/mime/text.pyt<module>s	application.pyc000064400000003060150530042660007564 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s5Class representing application/* type MIME documents.tMIMEApplicationi����(tencoders(tMIMENonMultipartcBs eZdZdejd�ZRS(s2Class for generating application/* MIME documents.soctet-streamcKsL|dkrtd��ntj|d||�|j|�||�dS(sCreate 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.
        s Invalid application MIME subtypetapplicationN(tNonet	TypeErrorRt__init__tset_payload(tselft_datat_subtypet_encodert_params((s./usr/lib64/python2.7/email/mime/application.pyRs

(t__name__t
__module__t__doc__Rt
encode_base64R(((s./usr/lib64/python2.7/email/mime/application.pyR
sN(Rt__all__temailRtemail.mime.nonmultipartRR(((s./usr/lib64/python2.7/email/mime/application.pyt<module>s	base.pyo000064400000002134150530042660006210 0ustar00�
{fc@s<dZdgZddlmZdejfd��YZdS(s$Base class for MIME specializations.tMIMEBasei����(tmessagecBseZdZd�ZRS(s$Base class for MIME specializations.cKsAtjj|�d||f}|jd||�d|d<dS(s�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.
        s%s/%ssContent-Types1.0sMIME-VersionN(RtMessaget__init__t
add_header(tselft	_maintypet_subtypet_paramstctype((s'/usr/lib64/python2.7/email/mime/base.pyRs(t__name__t
__module__t__doc__R(((s'/usr/lib64/python2.7/email/mime/base.pyR
sN(Rt__all__temailRRR(((s'/usr/lib64/python2.7/email/mime/base.pyt<module>s	__init__.pyo000064400000000202150530042660007027 0ustar00�
{fc@sdS(N((((s+/usr/lib64/python2.7/email/mime/__init__.pyt<module>tmultipart.pyc000064400000003205150530042660007303 0ustar00�
{fc@s9dZdgZddlmZdefd��YZdS(s.Base class for MIME multipart/* type messages.t
MIMEMultiparti����(tMIMEBasecBs eZdZdddd�ZRS(s.Base class for MIME multipart/* type messages.tmixedcKs`tj|d||�g|_|rFx|D]}|j|�q,Wn|r\|j|�ndS(s�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).
        t	multipartN(Rt__init__t_payloadtattachtset_boundary(tselft_subtypetboundaryt	_subpartst_paramstp((s,/usr/lib64/python2.7/email/mime/multipart.pyRs	
N(t__name__t
__module__t__doc__tNoneR(((s,/usr/lib64/python2.7/email/mime/multipart.pyR
sN(Rt__all__temail.mime.baseRR(((s,/usr/lib64/python2.7/email/mime/multipart.pyt<module>s	multipart.pyo000064400000003205150530042660007317 0ustar00�
{fc@s9dZdgZddlmZdefd��YZdS(s.Base class for MIME multipart/* type messages.t
MIMEMultiparti����(tMIMEBasecBs eZdZdddd�ZRS(s.Base class for MIME multipart/* type messages.tmixedcKs`tj|d||�g|_|rFx|D]}|j|�q,Wn|r\|j|�ndS(s�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).
        t	multipartN(Rt__init__t_payloadtattachtset_boundary(tselft_subtypetboundaryt	_subpartst_paramstp((s,/usr/lib64/python2.7/email/mime/multipart.pyRs	
N(t__name__t
__module__t__doc__tNoneR(((s,/usr/lib64/python2.7/email/mime/multipart.pyR
sN(Rt__all__temail.mime.baseRR(((s,/usr/lib64/python2.7/email/mime/multipart.pyt<module>s	message.pyo000064400000002650150530042660006725 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s,Class representing message/* MIME documents.tMIMEMessagei����(tmessage(tMIMENonMultipartcBseZdZdd�ZRS(s,Class representing message/* MIME documents.trfc822cCsXtj|d|�t|tj�s4td��ntjj||�|jd�dS(s�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).
        Rs&Argument is not an instance of Messagesmessage/rfc822N(Rt__init__t
isinstanceRtMessaget	TypeErrortattachtset_default_type(tselft_msgt_subtype((s*/usr/lib64/python2.7/email/mime/message.pyRs

(t__name__t
__module__t__doc__R(((s*/usr/lib64/python2.7/email/mime/message.pyRsN(Rt__all__temailRtemail.mime.nonmultipartRR(((s*/usr/lib64/python2.7/email/mime/message.pyt<module>s	text.pyo000064400000002434150530042660006265 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s.Class representing text/* type MIME documents.tMIMETexti����(tencode_7or8bit(tMIMENonMultipartcBseZdZddd�ZRS(s0Class for generating text/* type MIME documents.tplainsus-asciicCs1tj|d|i|d6�|j||�dS(s~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.
        ttexttcharsetN(Rt__init__tset_payload(tselft_textt_subtypet_charset((s'/usr/lib64/python2.7/email/mime/text.pyRs(t__name__t
__module__t__doc__R(((s'/usr/lib64/python2.7/email/mime/text.pyRsN(Rt__all__temail.encodersRtemail.mime.nonmultipartRR(((s'/usr/lib64/python2.7/email/mime/text.pyt<module>s	message.pyc000064400000002650150530042660006711 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s,Class representing message/* MIME documents.tMIMEMessagei����(tmessage(tMIMENonMultipartcBseZdZdd�ZRS(s,Class representing message/* MIME documents.trfc822cCsXtj|d|�t|tj�s4td��ntjj||�|jd�dS(s�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).
        Rs&Argument is not an instance of Messagesmessage/rfc822N(Rt__init__t
isinstanceRtMessaget	TypeErrortattachtset_default_type(tselft_msgt_subtype((s*/usr/lib64/python2.7/email/mime/message.pyRs

(t__name__t
__module__t__doc__R(((s*/usr/lib64/python2.7/email/mime/message.pyRsN(Rt__all__temailRtemail.mime.nonmultipartRR(((s*/usr/lib64/python2.7/email/mime/message.pyt<module>s	application.pyo000064400000003060150530042660007600 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s5Class representing application/* type MIME documents.tMIMEApplicationi����(tencoders(tMIMENonMultipartcBs eZdZdejd�ZRS(s2Class for generating application/* MIME documents.soctet-streamcKsL|dkrtd��ntj|d||�|j|�||�dS(sCreate 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.
        s Invalid application MIME subtypetapplicationN(tNonet	TypeErrorRt__init__tset_payload(tselft_datat_subtypet_encodert_params((s./usr/lib64/python2.7/email/mime/application.pyRs

(t__name__t
__module__t__doc__Rt
encode_base64R(((s./usr/lib64/python2.7/email/mime/application.pyR
sN(Rt__all__temailRtemail.mime.nonmultipartRR(((s./usr/lib64/python2.7/email/mime/application.pyt<module>s	base.pyc000064400000002134150530042660006174 0ustar00�
{fc@s<dZdgZddlmZdejfd��YZdS(s$Base class for MIME specializations.tMIMEBasei����(tmessagecBseZdZd�ZRS(s$Base class for MIME specializations.cKsAtjj|�d||f}|jd||�d|d<dS(s�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.
        s%s/%ssContent-Types1.0sMIME-VersionN(RtMessaget__init__t
add_header(tselft	_maintypet_subtypet_paramstctype((s'/usr/lib64/python2.7/email/mime/base.pyRs(t__name__t
__module__t__doc__R(((s'/usr/lib64/python2.7/email/mime/base.pyR
sN(Rt__all__temailRRR(((s'/usr/lib64/python2.7/email/mime/base.pyt<module>s	image.pyo000064400000004001150530042660006353 0ustar00�
{fc@sUdZdgZddlZddlmZddlmZdefd��YZdS(s/Class representing image/* type MIME documents.t	MIMEImagei����N(tencoders(tMIMENonMultipartcBs eZdZdejd�ZRS(s1Class for generating image/* type MIME documents.cKsm|dkr!tjd|�}n|dkr<td��ntj|d||�|j|�||�dS(s�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.
        s"Could not guess image MIME subtypetimageN(tNonetimghdrtwhatt	TypeErrorRt__init__tset_payload(tselft
_imagedatat_subtypet_encodert_params((s(/usr/lib64/python2.7/email/mime/image.pyRs
N(t__name__t
__module__t__doc__RRt
encode_base64R(((s(/usr/lib64/python2.7/email/mime/image.pyRs(Rt__all__RtemailRtemail.mime.nonmultipartRR(((s(/usr/lib64/python2.7/email/mime/image.pyt<module>s
	nonmultipart.pyo000064400000001570150530042660010035 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s9Base class for MIME type messages that are not multipart.tMIMENonMultiparti����(terrors(tMIMEBasecBseZdZd�ZRS(s0Base class for MIME non-multipart type messages.cCstjd��dS(Ns4Cannot attach additional subparts to non-multipart/*(RtMultipartConversionError(tselftpayload((s//usr/lib64/python2.7/email/mime/nonmultipart.pytattachs(t__name__t
__module__t__doc__R(((s//usr/lib64/python2.7/email/mime/nonmultipart.pyRsN(R	t__all__temailRtemail.mime.baseRR(((s//usr/lib64/python2.7/email/mime/nonmultipart.pyt<module>s	audio.pyc000064400000005535150530042660006373 0ustar00�
{fc@s�dZdgZddlZddlmZddlmZddlmZidd6d	d
6dd6dd
6Z	d�Z
defd��YZdS(s/Class representing audio/* type MIME documents.t	MIMEAudioi����N(tStringIO(tencoders(tMIMENonMultiparttbasictausx-wavtwavsx-aifftaifftaifccCsZ|d }t|�}x=tjD]2}|||�}|dk	r tj|d�Sq WdS(sTry 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.
    iiN(RtsndhdrtteststNonet_sndhdr_MIMEmaptget(tdatathdrtfakefilettestfntres((s(/usr/lib64/python2.7/email/mime/audio.pyt_whatsnds
cBs eZdZdejd�ZRS(s,Class for generating audio/* MIME documents.cKsg|dkrt|�}n|dkr6td��ntj|d||�|j|�||�dS(s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.
        s!Could not find audio MIME subtypetaudioN(RRt	TypeErrorRt__init__tset_payload(tselft
_audiodatat_subtypet_encodert_params((s(/usr/lib64/python2.7/email/mime/audio.pyR-s
N(t__name__t
__module__t__doc__RRt
encode_base64R(((s(/usr/lib64/python2.7/email/mime/audio.pyR*s(Rt__all__R	t	cStringIORtemailRtemail.mime.nonmultipartRRRR(((s(/usr/lib64/python2.7/email/mime/audio.pyt<module>s	

	image.pyc000064400000004001150530042660006337 0ustar00�
{fc@sUdZdgZddlZddlmZddlmZdefd��YZdS(s/Class representing image/* type MIME documents.t	MIMEImagei����N(tencoders(tMIMENonMultipartcBs eZdZdejd�ZRS(s1Class for generating image/* type MIME documents.cKsm|dkr!tjd|�}n|dkr<td��ntj|d||�|j|�||�dS(s�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.
        s"Could not guess image MIME subtypetimageN(tNonetimghdrtwhatt	TypeErrorRt__init__tset_payload(tselft
_imagedatat_subtypet_encodert_params((s(/usr/lib64/python2.7/email/mime/image.pyRs
N(t__name__t
__module__t__doc__RRt
encode_base64R(((s(/usr/lib64/python2.7/email/mime/image.pyRs(Rt__all__RtemailRtemail.mime.nonmultipartRR(((s(/usr/lib64/python2.7/email/mime/image.pyt<module>s
	audio.pyo000064400000005535150530042660006407 0ustar00�
{fc@s�dZdgZddlZddlmZddlmZddlmZidd6d	d
6dd6dd
6Z	d�Z
defd��YZdS(s/Class representing audio/* type MIME documents.t	MIMEAudioi����N(tStringIO(tencoders(tMIMENonMultiparttbasictausx-wavtwavsx-aifftaifftaifccCsZ|d }t|�}x=tjD]2}|||�}|dk	r tj|d�Sq WdS(sTry 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.
    iiN(RtsndhdrtteststNonet_sndhdr_MIMEmaptget(tdatathdrtfakefilettestfntres((s(/usr/lib64/python2.7/email/mime/audio.pyt_whatsnds
cBs eZdZdejd�ZRS(s,Class for generating audio/* MIME documents.cKsg|dkrt|�}n|dkr6td��ntj|d||�|j|�||�dS(s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.
        s!Could not find audio MIME subtypetaudioN(RRt	TypeErrorRt__init__tset_payload(tselft
_audiodatat_subtypet_encodert_params((s(/usr/lib64/python2.7/email/mime/audio.pyR-s
N(t__name__t
__module__t__doc__RRt
encode_base64R(((s(/usr/lib64/python2.7/email/mime/audio.pyR*s(Rt__all__R	t	cStringIORtemailRtemail.mime.nonmultipartRRRR(((s(/usr/lib64/python2.7/email/mime/audio.pyt<module>s	

	__init__.pyc000064400000000202150530042660007013 0ustar00�
{fc@sdS(N((((s+/usr/lib64/python2.7/email/mime/__init__.pyt<module>tnonmultipart.pyc000064400000001570150530042660010021 0ustar00�
{fc@sIdZdgZddlmZddlmZdefd��YZdS(s9Base class for MIME type messages that are not multipart.tMIMENonMultiparti����(terrors(tMIMEBasecBseZdZd�ZRS(s0Base class for MIME non-multipart type messages.cCstjd��dS(Ns4Cannot attach additional subparts to non-multipart/*(RtMultipartConversionError(tselftpayload((s//usr/lib64/python2.7/email/mime/nonmultipart.pytattachs(t__name__t
__module__t__doc__R(((s//usr/lib64/python2.7/email/mime/nonmultipart.pyRsN(R	t__all__temailRtemail.mime.baseRR(((s//usr/lib64/python2.7/email/mime/nonmultipart.pyt<module>s