[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/src/applications/metamta/receiver/ -> PhabricatorMailReceiver.php (summary)

(no description)

File Size: 212 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 6 functions

  receiveMail()
  validateSender()
  loadSender()
  matchAddresses()
  stripMailboxPrefix()
  getRawAddress()

Functions
Functions that are not part of a class:

receiveMail(PhabricatorMetaMTAReceivedMail $mail,PhabricatorUser $sender)   X-Ref
No description

validateSender(PhabricatorMetaMTAReceivedMail $mail,PhabricatorUser $sender)   X-Ref
No description

loadSender(PhabricatorMetaMTAReceivedMail $mail)   X-Ref
Identifies the sender's user account for a piece of received mail. Note
that this method does not validate that the sender is who they say they
are, just that they've presented some credential which corresponds to a
recognizable user.


matchAddresses($u, $v)   X-Ref
Determine if two inbound email addresses are effectively identical. This
method strips and normalizes addresses so that equivalent variations are
correctly detected as identical. For example, these addresses are all
considered to match one another:

"Abraham Lincoln" <[email protected]>
[email protected]
<[email protected]>
"Abraham" <[email protected]> # With configured prefix.

param: string  Email address.
param: string  Another email address.
return: bool    True if addresses match.

stripMailboxPrefix($address)   X-Ref
Strip a global mailbox prefix from an address if it is present. Phabricator
can be configured to prepend a prefix to all reply addresses, which can
make forwarding rules easier to write. A prefix looks like:

[email protected]              # No Prefix
[email protected]  # Prefix "phabricator"

param: string  Email address, possibly with a mailbox prefix.
return: string  Email address with any prefix stripped.

getRawAddress($address)   X-Ref
Reduce an email address to its canonical form. For example, an adddress
like:

"Abraham Lincoln" < [email protected] >

...will be reduced to:

[email protected]

param: string  Email address in noncanonical form.
return: string  Canonical email address.



Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1