Package swaml :: Package classes :: Module message :: Class Message
[show private | hide private]
[frames | no frames]

Class Message


Mail message abstraction
Method Summary
  __init__(self, msg, config, sender)
Message constructor
  addChild(self, child)
Add new child message
  getBody(self)
Get message body content
  getDate(self)
Get date
  getFromMail(self)
Get from mail
  getFromName(self)
Get message from name
  getId(self)
Get message ID
  getInReplyTo(self)
Get in-reply-to field
  getMessageId(self)
Get message ID field
  getNextByDate(self)
Get next message by date
  getParent(self)
Get parent message
  getPath(self)
Return the message's index name
  getPreviousByDate(self)
Get previous message by date
  getSender(self)
Get message sender
  getSubject(self)
Get subject
  getSwamlId(self)
Get message SWAML ID
  getTo(self)
Get To field
  getUri(self)
Get message URI
  setBody(self, body)
Set body content
  setNextByDate(self, next)
Set next message by date
  setParent(self, parent)
Set parent message
  setPreviousByDate(self, previous)
Set previous message by date
  setSender(self, sender)
Set message's sender
  toRDF(self)
Print a message into RDF in XML format

Class Variable Summary
int id = 0                                                                     

Method Details

__init__(self, msg, config, sender=None)
(Constructor)

Message constructor
Parameters:
msg - plain message object
config - configuration reference
sender - author message reference

addChild(self, child)

Add new child message
Parameters:
child - child reference

getBody(self)

Get message body content
Returns:
body

getDate(self)

Get date
Returns:
date string

getFromMail(self)

Get from mail
Returns:
mail

getFromName(self)

Get message from name
Returns:
name

getId(self)

Get message ID
Returns:
id

getInReplyTo(self)

Get in-reply-to field
Returns:
in-reply-to

getMessageId(self)

Get message ID field
Returns:
id field

getNextByDate(self)

Get next message by date
Returns:
next

getParent(self)

Get parent message
Returns:
parent

getPath(self)

Return the message's index name
Returns:
path

getPreviousByDate(self)

Get previous message by date
Returns:
previous

getSender(self)

Get message sender
Returns:
author

getSubject(self)

Get subject
Returns:
subject

getSwamlId(self)

Get message SWAML ID
Returns:
swaml id

getTo(self)

Get To field
Returns:
to

getUri(self)

Get message URI
Returns:
uri

setBody(self, body)

Set body content
Parameters:
body - content

setNextByDate(self, next)

Set next message by date
Parameters:
next - next message reference

setParent(self, parent)

Set parent message
Parameters:
parent - parent reference

setPreviousByDate(self, previous)

Set previous message by date
Parameters:
previous - previous message reference

setSender(self, sender)

Set message's sender
Parameters:
sender - author

toRDF(self)

Print a message into RDF in XML format

Class Variable Details

id

Type:
int
Value:
0                                                                     

Generated by Epydoc 2.1 on Thu Dec 28 16:31:10 2006 http://epydoc.sf.net