I got Gmail RFC 2822 compliant message which contains everything (headers,body,subject etc.). The message is base64url encoded. I am trying to parse this message and send it to Exchange online. So far I have tried Sasa Mime library but this great library doesn't work for me.
string strRaw = System.IO.File.ReadAllText(@"G:\raw.txt");
var mail = Sasa.Net.Mail.Message.Parse(strRaw);
The above code fails with this following exception : Exception Details: System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length
I request you to tell me which free Mime library I can use to parse Gmail Raw message. Java has a great built-in library called javax.mail.internet (MimeMessage class) which does the job very beautifully. I am using EWS managed Api to work with Exchange online and it's not able to parse Gmail raw message directly.
Edited : removed the encoded message.
best regards,