Dave Fischetti wrote:
> On Feb 26, 2009, at 2:28 AM, Alexandru Stanoi wrote:
> 
>> Dave Fischetti wrote:
>>> Hey all. Is it possible to read the value in a mail file for  
>>> Content-Transfer-Encoding? I need to check if its Base64 encoded  
>>> and decode it. any help to do this would be appreciated.
>> You can use $mail->getHeader( 'Content-Transfer-Encoding' ) where  
>> $mail is an ezcMail object. If the header is missing from the mail  
>> then an empty string will be returned.
>>
>> -- 
>> Alexandru Stanoi
>> System Developer
>> eZ Systems | http://ez.no
> 
> 
> Thanks Alex, after I posted here I continued to do some more research.  
> Am I correct in assuming that when I parse the body of the message EZ  
> automatically decodes messages that are base64 encoded? From one piece  
> of documentation it seems that way.

Yes the Mail component will decode base64 attachments and save them in 
temporary files. These files must be copied by your application before 
the execution ends, because the temporary files are deleted then. See 
http://ezcomponents.org/docs/tutorials/Mail#parsing-a-message-set for 
more details.

-- 
Alexandru Stanoi
System Developer
eZ Systems | http://ez.no
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to