PHP Classes

Decode subject

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Decode subject  >  (Un) Subscribe thread alerts  
Subject:Decode subject
Summary:if it started like this =?utf-8?
Messages:4
Author:yola
Date:2010-08-26 11:18:27
Update:2010-08-30 11:21:57
 

  1. Decode subject   Reply   Report abuse  
Picture of yola yola - 2010-08-26 11:18:27
sometime subject encoded, how to decode it?
Example is:
=?utf-8?Q?26_=D1=81=D0=B5=D1=80=D0=BF=D0=BD=D1=8F_12:33?=

And thanks for this class

  2. Re: Decode subject   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2010-08-26 12:07:23 - In reply to message 1 from yola
Use the MIME parser class:

phpclasses.org/mimeparser

  3. Re: Decode subject   Reply   Report abuse  
Picture of yola yola - 2010-08-30 10:57:26 - In reply to message 2 from Manuel Lemos
Thanks, decode_headers was helpful.

Then i download attachments this change line breaks style from Unix to Windows, may i workaround it? Where i need to dig?

  4. Re: Decode subject   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2010-08-30 11:21:57 - In reply to message 3 from yola
The class does not change line breaks in messages.

However, it is a requirement of the SMTP protocol that line breaks should be a carriage return followed by a line feed, which coincidental is the same line break character pattern used on Windows.

This means that messages already arrive in your POP3 mailbox like that. There is nothing you can do.