roundcubemail/plugins/enigma/lib/enigma_mime_message.php
public function getRecipients()
    {
        // get sender address
        $headers = $this->message->headers();
        $to      = rcube_mime::decode_address_list($headers['To'], null, false, null, true);
        $cc      = rcube_mime::decode_address_list($headers['Cc'], null, false, null, true);
        $bcc     = rcube_mime::decode_address_list($headers['Bcc'], null, false, null, true);

        $recipients = array_unique(array_merge($to, $cc, $bcc));
        $recipients = array_diff($recipients, array('undisclosed-recipients:'));

        return $recipients;
    }
public function getRecipients()
    {
        // get sender address
        $headers = $this->message->headers();
        $to      = rcube_mime::decode_address_list($headers['To'], null, false, null, true);
        $cc      = rcube_mime::decode_address_list($headers['Cc'], null, false, null, true);
        $bcc     = rcube_mime::decode_address_list($headers['Bcc'], null, false, null, true);

        $recipients = array_unique(array_merge($to, $cc, $bcc));
        $recipients = array_diff($recipients, array('undisclosed-recipients:'));

        return $recipients;
    }
public function getRecipients ( ) { // get sender address $ headers = $ this -> message -> headers ( ) ; $ to = rcube_mime :: decode_address_list ( $ headers [ 'To' ] , null , false , null , true ) ; $ cc = rcube_mime :: decode_address_list ( $ headers [ 'Cc' ] , null , false , null , true ) ; $ bcc = rcube_mime :: decode_address_list ( $ headers [ 'Bcc' ] , null , false , null , true ) ; $ recipients = array_unique ( array_merge ( $ to , $ cc , $ bcc ) ) ; $ recipients = array_diff ( $ recipients , array ( 'undisclosed-recipients:' ) ) ; return $ recipients ; }
Get recipients' e-mail addresses

@return array Recipients' addresses
Get recipients e - mail addresses