Package turbomail :: Module wrappedmessage :: Class WrappedMessage
[hide private]
[frames] | no frames]

Class WrappedMessage

source code

         object --+    
                  |    
message.BaseMessage --+
                      |
                     WrappedMessage

This is a wrapper for arbitrary messages so you can send RFC822 messages that were previously assembled (e.g. read from the filesystem).

Instance Methods [hide private]
 
__init__(self, smtp_from=None, to=None, message=None, **kw)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__setattr__(self, name, value)
Reset cached values if new ones are set.
source code
 
__str__(self)
str(x)
source code

Inherited from message.BaseMessage: get_recipient, get_smtpfrom, kwpop, merge_if_set, pop_deprecated, send, set_recipient, set_smtpfrom

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__

Properties [hide private]
  envelope_sender
Returns the address of the envelope sender address (SMTP from).
  id
Get an ID for the message which is used for logging.
  email_msg
Return an email.Message built from the current message.
  recipients

Inherited from message.BaseMessage: recipient, smtp_from, smtpfrom, to

Inherited from object: __class__

Method Details [hide private]

__init__(self, smtp_from=None, to=None, message=None, **kw)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__setattr__(self, name, value)

source code 

Reset cached values if new ones are set.

Overrides: object.__setattr__

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

Property Details [hide private]

envelope_sender

Returns the address of the envelope sender address (SMTP from).

Get Method:
unreachable.envelope_sender(self) - Returns the address of the envelope sender address (SMTP from).

id

Get an ID for the message which is used for logging. The idea is to use the message id if it is available, otherwise a generated message id.

Get Method:
unreachable.id(self) - Get an ID for the message which is used for logging.

email_msg

Return an email.Message built from the current message.

Please note that updating properties in the returned Message will not update the real message content (msg). If you change the message content, a previously returned Message from this method will not be updated, instead a new Message instance will be returned if you call this method again.

Get Method:
unreachable.email_msg(self) - Return an email.Message built from the current message.

recipients

Get Method:
unreachable.recipients(self)