Psyduck - 可達鴨 之 鴨力山大2


Server : LiteSpeed
System : Linux premium217.web-hosting.com 4.18.0-553.54.1.lve.el8.x86_64 #1 SMP Wed Jun 4 13:01:13 UTC 2025 x86_64
User : alloknri ( 880)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/python27/lib64/python2.7/email/mime/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python27/lib64/python2.7/email/mime/message.py
# 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')
Name
Size
Permissions
Options
__init__.py
0 KB
-rw-r--r--
__init__.pyc
0.14 KB
-rw-r--r--
__init__.pyo
0.14 KB
-rw-r--r--
application.py
1.227 KB
-rw-r--r--
application.pyc
1.585 KB
-rw-r--r--
application.pyo
1.585 KB
-rw-r--r--
audio.py
2.62 KB
-rw-r--r--
audio.pyc
2.892 KB
-rw-r--r--
audio.pyo
2.892 KB
-rw-r--r--
base.py
0.775 KB
-rw-r--r--
base.pyc
1.128 KB
-rw-r--r--
base.pyo
1.128 KB
-rw-r--r--
image.py
1.723 KB
-rw-r--r--
image.pyc
2.039 KB
-rw-r--r--
image.pyo
2.039 KB
-rw-r--r--
message.py
1.256 KB
-rw-r--r--
message.pyc
1.452 KB
-rw-r--r--
message.pyo
1.452 KB
-rw-r--r--
multipart.py
1.536 KB
-rw-r--r--
multipart.pyc
1.668 KB
-rw-r--r--
multipart.pyo
1.668 KB
-rw-r--r--
nonmultipart.py
0.675 KB
-rw-r--r--
nonmultipart.pyc
0.905 KB
-rw-r--r--
nonmultipart.pyo
0.905 KB
-rw-r--r--
text.py
0.982 KB
-rw-r--r--
text.pyc
1.315 KB
-rw-r--r--
text.pyo
1.315 KB
-rw-r--r--