Server IP : 149.255.58.128 / Your IP : 216.73.216.20
System : Linux cloud516.thundercloud.uk 5.14.0-427.26.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 17 15:51:13 EDT 2024 x86_64
PHP Version : 8.2.28
Disable Function : allow_url_include, apache_child_terminate, apache_setenv, exec, passthru, pcntl_exec, posix_kill, posix_mkfifo, posix_getpwuid, posix_setpgid, posix_setsid, posix_setuid, posix_setgid, posix_seteuid, posix_setegid, posix_uname, proc_close, proc_get_status, proc_open, proc_terminate, shell_exec, show_source, system
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /usr/lib64/python3.9/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', *, 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')
Name |
Size |
Last Modified |
Owner / Group |
Permissions |
Options |
.. | -- | December 12 2024 22:42:25 | 0 / root | 0755 | |
__pycache__ | -- | December 12 2024 22:42:25 | 0 / root | 0755 | |
| | | | | |
__init__.py | 0 KB | December 12 2024 10:11:37 | 0 / root | 0644 | |
application.py | 1.29 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
audio.py | 2.675 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
base.py | 0.895 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
image.py | 1.786 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
message.py | 1.286 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
multipart.py | 1.583 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
nonmultipart.py | 0.675 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |
text.py | 1.403 KB | December 03 2024 17:50:13 | 0 / root | 0644 | |