| Method Summary |
| |
__init__(self,
name,
parent,
kind,
view,
clone,
**kw)
|
| |
__str__(self)
|
| |
__unicode__(self)
User readable string version of this address |
| |
emailAddressesAreEqual(cls,
emailAddressOne,
emailAddressTwo)
This method tests whether two email addresses are the same. (Class method)
|
| |
format(cls,
emailAddress,
encode)
(Class method)
|
| |
getCurrentMeEmailAddress(cls,
view)
Lookup the "me" EmailAddress. (Class method)
|
| |
getEmailAddress(cls,
view,
nameOrAddressString,
fullName,
inbound)
Lookup or create an EmailAddress based on the supplied string. (Class method)
|
| |
isValidEmailAddress(cls,
emailAddress)
This method tests an email address for valid syntax as defined RFC
822. (Class method)
|
| |
parseEmailAddresses(cls,
view,
addressesString)
Parse the email addresses in addressesString and return a tuple with:
(the processed string, a list of EmailAddress items created/found for
those addresses, the number of invalid addresses we found). (Class method)
|
Inherited from ContentItem:
addToCollection,
ExportItemData,
getBasedAttributes,
getMembershipItem,
getSharedState,
InitOutgoingAttributes,
isAttributeModifiable,
ItemAboutString,
ItemBodyString,
ItemWhoFromString,
ItemWhoString,
removeFromCollection,
SetItemBodyString,
StampKind
Inherited from Item:
getDefaultParent,
getKind,
iterItems
Inherited from Item:
__getitem__,
__iter__,
_repr_,
addValue,
check,
clone,
collectionChanged,
copy,
delete,
dir,
find,
findMatch,
findPath,
findUUID,
getACL,
getAttributeValue,
getItemChild,
getItemCloud,
getItemDisplayName,
getItemDisplayString,
getValue,
getVersion,
hasAttributeAspect,
hasChild,
hasChildren,
hashItem,
hasKey,
hasLocalAttributeValue,
hasValue,
isAttributeDirty,
isItemOf,
isRemote,
iterAttributeValues,
iterChildren,
mixinKinds,
move,
placeChild,
printItem,
refCount,
removeACL,
removeAttributeValue,
removeValue,
rename,
setACL,
setAttributeValue,
setPinned,
setValue,
unwatchCollection,
unwatchKind,
walk,
watchCollection,
watchKind
Inherited from CItem:
__new__,
__repr__,
getAttributeAspect,
getDirty,
isDeleted,
isDeleting,
isDirty,
isNew,
isPinned,
isSchema,
isStale,
setDirty
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__reduce__,
__reduce_ex__,
__setattr__
|
| Instance Variable Summary |
| |
accounts: Used as Return Address by Email Account --
Sequence(DownloadAccountBase) |
| |
body: attribute descriptor |
| |
collections: attribute descriptor |
| |
contentsOwner: attribute descriptor |
| |
createdOn: attribute descriptor |
| |
creator: attribute descriptor |
| |
description: attribute descriptor |
| |
displayName: attribute descriptor |
| |
emailAddress: Email Address -- One(Text)
An RFC 822 email address. |
| |
fullName: Full Name -- One(Text) |
| |
importance: attribute descriptor |
| |
inviteeOf: Invitee Of -- Sequence(AbstractCollection) |
| |
kindExtent: attribute descriptor |
| |
lastModified: attribute descriptor |
| |
lastModifiedBy: attribute descriptor |
| |
messagesBcc: Messages Bcc -- Sequence(MailMessageMixin) |
| |
messagesCc: Messages cc -- Sequence(MailMessageMixin) |
| |
messagesFrom: Messages From -- Sequence(MailMessageMixin) |
| |
messagesReplyTo: Messages Reply To -- Sequence(MailMessageMixin) |
| |
messagesTo: Messages To -- Sequence(MailMessageMixin) |
| |
mine: attribute descriptor |
| |
modifiedOn: attribute descriptor |
| |
monitors: attribute descriptor |
| |
previousStamps: attribute descriptor |
| |
private: attribute descriptor |
| |
read: attribute descriptor |
| |
references: attribute descriptor |
| |
sharedIn: attribute descriptor |
| |
shares: attribute descriptor |
| |
TPBDetailItemOwner: attribute descriptor |
| |
TPBSelectedItemOwner: attribute descriptor |
| |
vcardType: vCard type -- One(Text) |
| |
viewContainer: attribute descriptor |
| |
watcherDispatch: attribute descriptor |
| |
watchers: attribute descriptor |
| |
watches: attribute descriptor |
Inherited from Item:
aliasedBy,
path,
typeFor,
version
Inherited from CItem:
itsKind,
itsName,
itsParent,
itsPath,
itsRoot,
itsUUID,
itsVersion,
itsView
|
| Class Variable Summary |
ItemRoot |
__default_path__ = ItemRoot'userdata'
|
dict |
__kind_clouds__ = {'sharing': <application.schema.Cloud ...
|
dict |
__kind_info__ = {'displayName': u'Email Address Kind', '...
|
Inherited from ContentItem:
READONLY,
READWRITE,
UNSHARED
Inherited from CItem:
ADIRTY,
CDIRTY,
CMERGED,
CONTAINER,
COPYEXPORT,
CORESCHEMA,
DELETED,
DELETING,
DIRTY,
FDIRTY,
IMPORTING,
MERGED,
MUTATING,
NDIRTY,
NEW,
NMERGED,
NODIRTY,
PINNED,
RAW,
RDIRTY,
RMERGED,
SAVEMASK,
SCHEMA,
STALE,
VDIRTY,
VMERGED,
VRDIRTY
|
getEmailAddress(cls,
view,
nameOrAddressString,
fullName='',
inbound=False)
Lookup or create an EmailAddress based on the supplied string.
If a matching EmailAddress object is found in the repository, it is
returned. If there is no match, then a new item is created and
returned.
There are two ways to call this method:
-
with something the user typed in nameOrAddressString, which will
be parsed, and no fullName is needed
-
with an plain email address in the nameOrAddressString, and a
full name in the fullName field
If a match is found for both name and address then it will be
used.
If there is no name specified, a match on address will be
returned.
If there is no address specified, a match on name will be
returned.
If both name and address are specified, but there's no entry that
matches both, then a new entry is created.
-
- Parameters:
nameOrAddressString -
emailAddress string, or fullName for lookup, or both in the
form "name <address>"
(type=unicode)
fullName -
optional explict fullName when not using the "name
<address>" form of the nameOrAddressString
parameter
(type=unicode)
inbound -
Indicates that even if the email address is not valid still
save it as an EmailAddress Object. When mail enters
Chandler via IMAP, POP, Sharing, etc the email address may not be
valid or in a valid format ie. "name
<emailaddress>". We still want to capture as much
information as possible for display to the user. When sending,
Chandler does not allow a user to send a message with an invalid
email address.
(type=bool)
- Returns:
-
EmailAddress or None if not found, and
nameOrAddressString is not a valid email address.
- Overrides:
osaf.pim.items.ContentItem.getEmailAddress
|