MTrack/SCMEvent.php
authorAlan Knowles <alan@akbkhome.com>
Sat, 25 Jun 2011 15:19:38 +0000 (23:19 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 25 Jun 2011 15:19:38 +0000 (23:19 +0800)
MTrack/SCMEvent.php

index f4296df..50eba60 100644 (file)
@@ -49,12 +49,13 @@ class MTrackSCMEvent
     /**
      * return the changeby as a RFC address..
      */
-    function changebyToRFC()
+    function changebyToEmail()
     {
         require_once 'Mail/RFC822.php';
         $m = new Mail_RFC822;
-        $m->parseAddressList($this->changeby);
-        return $m;
+        $addr = $m->parseAddressList($this->changeby);
+        return $addr['mailbox'].'@'.$add['host'];
+
     }
      
 }
\ No newline at end of file