Email Parsing

  • Thread starter Thread starter Clint Steele
  • Start date Start date
C

Clint Steele

Hello,

i am trying to decode a .eml file, parse out the header and the body
and what not. and i'm trying to figure out what would be the best
method of reading the email into, a string, stringbuilder,
memorystream, byte[] or any other method, because one thing that i'm
running into, is because of the use of RegEx, its become a hasle
converting from byte[] to string back and forth all the time depending
on the part of the email it is in.

any suggestion are appreciated.. thanks

-Clint
 
Why don't you convert email body once into string and then use it instead of
original byte array? You don't need stringbuilder as you don't need to
change original body. You don't need byte[] because emails are text by
definition.

HTH
Alex
 
Back
Top