Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorinsanet
     

    i have just been hunting an error in the mailer class. the mailer was converting this format of mail "test@my-mail.com" to "test@my, mail.com"

    look at: AKMailMessage line 128

    function _getMessageHeaderFieldFormated($address_header_field)
    {
        $charset = empty($this->charset) ? AK_ACTION_MAILER_DEFAULT_CHARSET : $this->charset;
        return join(", ",AkActionMailerQuoting::quoteAnyAddressIfNecessary(Ak::toArray($address_header_field), $charset));
    }
    

    Ak::toArray calls stringToArray which separate strings by "-"

    function stringToArray($string)
    {
        $args = $string;
        if(count($args) == 1 && !is_array($args)){
        (array)$args = array_unique(array_map('trim',array_diff(explode(',',strtr($args.',',';|-',',,,')),array(''))));
        }
        return $args;
    }
    
    • CommentAuthorhafeez
     
    I think there is problem after 75 chars in subject. something like "= " is adding which seems like bug.

    Do any one have solution for this ?

    MAH
    •  
      CommentAuthorbermi
     

    @insanet That was a bug, which has been fixed at rev.1203

    @hafeez: That is normal on raw emails, see http://www.ietf.org/rfc/rfc2045.txt