| |
|
Back to Index
|
|
The following methods are deprecated in email version 2. They are
documented here for completeness.
-
- Add payload to the message object's existing payload. If, prior to calling
this method, the object's payload was
None (i.e. never before set), then
after this method is called, the payload will be the argument payload.
If the object's payload was already a list (i.e. is_multipart()
returns 1), then payload is appended to the end of the existing payload list.
For any other type of existing payload, add_payload() will
transform the new payload into a list consisting of the old payload and payload,
but only if the document is already a MIME multipart document. This condition is satisfied
if the message's header's main type is
either multipart, or there is no
header. In any other situation, MultipartConversionError is
raised.
Deprecated since release 2.2.2. Use the attach() method
instead.
-
- Return the message's content type, as a string of the form maintype/subtype
as taken from the header. The returned
string is coerced to lowercase.
If there is no header in the message, failobj
is returned (defaults to None).
Deprecated since release 2.2.2. Use the get_content_type()
method instead.
-
| get_main_type( |
[failobj]) |
- Return the message's main content type. This essentially returns the maintype
part of the string returned by get_type(), with the same semantics
for failobj.
Deprecated since release 2.2.2. Use the get_content_maintype()
method instead.
-
- Return the message's sub-content type. This essentially returns the subtype
part of the string returned by get_type(), with the same semantics
for failobj.
Deprecated since release 2.2.2. Use the get_content_subtype()
method instead.
|
|
|
|
|
|
© 2002-2004 Active-Venture.com
Webhosting
Service
|
| |
|
Disclaimer: This
documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to http://python.org/doc/
|
Domain registration : Buy domain name or register domain name from $5.95/year only |
Cheap domain registration : Register domain name or
buy domain name, including free domain hosting services |
Active-Domain.com offers cheap domain registration, domain name transfer and domain search services |
|
|
|