I wrote your necessary method too :
private string FixString(string message)
{
string[] fixedCode =new string[1] {"A0AKKmasaieTTYYIOIOIMddssPP...--++yyyYYYY"};
StringSplitOptions option = StringSplitOptions.None;
string[] messages = message.Split(fixedCode, option);
for (int i = 0; i < messages.Length;i++ )
{
if (i == 1)
return messages[i];
}
return string.Empty;
}
Now, you can find your main message:
string k = @"--0016367fb7376bfdc30499a12567Content-Type: text/plain; charset=ISO-8859-1
Your Text message.A0AKKmasaieTTYYIOIOIMddssPP...--++yyyYYYYHelloA0AKKmasaieTTYYIOIOIMddssPP...--++yyyYYYY--0016367fb7376bfdc30499a12567Content-Type: text/plain; charset=ISO-8859-1
Your Text message."
Console.WriteLine(FixString(k))