Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I have written a pop3 service, the problem is when I download the content it always contain extra characters in the email body like =3D or = at the end of every line etc.

is there any way to get rid of them ?

Mail contains HTML content and these are couple of lines from mail

XML
<TABLE style=3D"COLOR: #000000" border=3D0 cellSpacing=3D0 =
cellPadding=3D0 width=3D"100%"=20
align=3Dcenter>
  <TBODY>
  <TR>
    <TD style=3D"PADDING-LEFT: 10px">
      <TABLE style=3D"COLOR: #000000" border=3D0 cellSpacing=3D0 =
cellPadding=3D0=20



Best Regards
Rizwan Bashir
Posted

1 solution

POP3 uses a similar format to HTTP POST, and message content is typically encoded in this way. (The transfer encoding header will tell you, it is "quoted-printable" – see Wikipedia[^].) It is a simple job to decode such strings (the two characters after an = give you a byte code).

Remember when reading emails that you also have to deal with multi-part messages and MIME-encoded sections (for example images or attachments).
 
Share this answer
 
v2
Comments
MacRaider4 21-Apr-11 11:22am    
That Wikipedia page is very helpful, I've been working on a mail reader for a bit of time and that came in really handy.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900