Peter,
I've tried Replace("\r\n","") and Replace("\r\nM","") with the latter
getting a much closer result (the header of the file is accurate then). But
with both attempts there are the incorrect number of characters for decoding
which generates an out of range indexing error. I'm guessing there is a
footer added when the "\r\nM" is added in as well. I'm currently trimming
everthing after the "end" text with Text = Text.Substring(0,
Text.IndexOf("\r\nend"))
As far as I can see the begining of the file is correct up until the end,
which is understandable given the indexing error generated when decoding. As
far as I can tell only the final character is incorrect.
Dave
"Peter Bromberg [C# MVP]" <pb*******@yahoo.yabbadabbadoo.comwrote in
message news:54**********************************@microsof t.com...
Dave,
if you believe it is the presence of newline characters in the uuencoded
message string, then the first thing I'd try is using the String.Replace
method to get rid of them, then try your code - before moving on to other
experiments.
e.g.,
string newMessage =uuencodedMessage.Replace("\r\n", "");
-- Peter
Site: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
Short urls & more: http://ittyurl.net
"Dave" wrote:
>Hi guys,
I have several thousand mail files I need to extract attachments from.
Most
of the attachments I can read but some are in a different format as shown
bellow. I've found some code for decoding the data but I can't seem to
get
it working. I think the formatting with the new lines is confusing the
code
I do have. Does anyone have some code for reading these files?