MailSystem.NET icon indicating copy to clipboard operation
MailSystem.NET copied to clipboard

Last char of subject is ')'

Open babaOlya opened this issue 7 years ago • 1 comments

If the last character of the message subject is ')', it is truncated when reading the subject property

babaOlya avatar Aug 03 '18 13:08 babaOlya

I think to change the function StripComments to:

private static bool StripComments(ref string input) { var isSurroundedByComments = input.StartsWith("(") && input.EndsWith(")"); if(isSurroundedByComments){ input = input.Trim('(', ')'); } return isSurroundedByComments;

    }

babaOlya avatar Aug 03 '18 14:08 babaOlya