| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
* Class to handle encoding and decoding Variable Enveleope Return Path (VERP)
*
* @return string
* The VERP encoded address
- * @static
*/
public static function encode($sender, $recipient) {
preg_match('/(.+)\@([^\@]+)$/', $sender, $match);
*
* @return array
* The tuple ($sender, $recipient)
- * @static
*/
public static function &verpdecode($address) {
preg_match('/^(.+)-([^=]+)=([^\@]+)\@(.+)/', $address, $match);
- $slocal = $match[1];
- $rlocal = $match[2];
+ $slocal = $match[1];
+ $rlocal = $match[2];
$rdomain = $match[3];
$sdomain = $match[4];
return array("$slocal@$sdomain", "$rlocal@$rdomain");
}
+
}