| 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);
return array("$slocal@$sdomain", "$rlocal@$rdomain");
}
+
}