This project is read-only.

base64 TextData

Jun 9, 2008 at 4:53 PM
In Imap.ProcessBodyContent you are missing the textdata when ContentTransferEncoding is base64, so I have fix it like that, What do you think ?

                     if(content.ContentTransferEncoding != null ? content.ContentTransferEncoding.ToLower().Equals("base64") : false)
                        {
                            content.BinaryData = Convert.FromBase64String(contentString.ToString());

                            if(content.ContentType.Contains("text/plain;") && content.ContentDisposition != "attachment;")
                            {
                                content.TextData = System.Text.Encoding.UTF8.GetString(content.BinaryData);
                            }
                        }
                        else
                        {
                            content.TextData = contentString.ToString();
                        }
Jun 10, 2008 at 2:07 AM
this fix has been integrated, thanks yet again for your input