Class AjxEmailAddress
Class Detail
AjxEmailAddress(address, type, name, dispName, isGroup, canExpand)
Creates a new emal address, either by parsing an email string or from component parts.
Author: Conrad Damon.
Field Detail
<static>
AjxEmailAddress.BCC
Defines the "bcc" type.
<static>
AjxEmailAddress.CC
Defines the "cc" type.
<static>
AjxEmailAddress.customInvalidEmailPats
Defines list of custom invalid RegEx patterns that are set in LDAP
<static>
AjxEmailAddress.FROM
Defines the "from" type.
<static>
AjxEmailAddress.TO
Defines the "to" type.
Method Detail
{AjxEmailAddress}
clone()
Clones this email address.
<static>
{AjxEmailAddress}
AjxEmailAddress.copy(obj)
Copies the email address.
<static>
AjxEmailAddress.dedup(addrs)
Returns the list of addresses with duplicates (based on email) removed.
{string}
getAddress()
Gets the address.
{string}
getDispName()
Gets the display name.
{string}
getName()
Gets the name.
{constant}
getType()
Gets the type (to/from/cc/bcc).
{string}
getTypeAsString()
Gets the type as a string.
<static>
{AjxVector}
AjxEmailAddress.getValidAddresses(emailStr, type, strict)
Returns an AjxVector with valid email addresses
<static>
{boolean}
AjxEmailAddress.isValid(str)
Checks if a string to see if it's a valid email string according to our mailbox pattern.
<static>
{AjxEmailAddress}
AjxEmailAddress.parse(str)
Parses an email address string into its component parts. The parsing is adapted from the perl module
Email::Address. Check that out if you
want to know how the gory regexes that do the parsing were built. They are based on RFC2822, but don't represent a full
implementation. We don't really need or want that, since we don't want to be overly restrictive or bloated. It was easier
to just use the resulting regexes from the Perl module, rather than go through all the rigmarole of building them up from
atoms.
If the address parses successfully, the current object's properties will be set.
<static>
{hash}
AjxEmailAddress.parseEmailString(emailStr, type, strict)
Parses a string with one or more addresses and parses it. An object with lists of good addresses, bad
addresses, and all addresses is returned. Strict RFC822 validation (at least as far as it goes in the
regexes we have) is optional. If it's off, we'll retry a failed address after quoting the personal part.
setAddress(addr)
Sets the address.
setType(type)
Sets the type.
<static>
{array}
AjxEmailAddress.split(str)
Splits a string into (possible) email address strings based on delimiters. Tries to
be flexible about what it will accept. The following delimiters are recognized, under
the following conditions:
Smith, John <jsmith@aol.com>
{string}
toString(shortForm, forceUnescape)
Returns a string representation of this object.
|
||||||||||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:30 GMT-0400 (EDT)
|