Thanks!
Body is ok now.
I have a minor issue on ValidateAndGetTimeZoneOffsetValues.
offset="+0200Subject:" and method throws FormatException:
IMAPX47 OK FETCH completed.
Body is ok now.
I have a minor issue on ValidateAndGetTimeZoneOffsetValues.
offset="+0200Subject:" and method throws FormatException:
private static void ValidateAndGetTimeZoneOffsetValues(string offset, out bool positive, out int hours, out int minutes)
{
if (offset.Length != 5)
throw new FormatException();
This is the trace:-
SEARCH
IMAPX45 OK SEARCH completed.
IMAPX46 UID SEARCH UNSEEN FROM ************** -
SEARCH 18972 18973 18974 18975 19014
IMAPX46 OK SEARCH completed.
IMAPX47 UID FETCH 18972 (FLAGS INTERNALDATE RFC822.SIZE BODY.PEEK[HEADER.FIELDS (FROM TO DATE SUBJECT CC CONTENT-TYPE)] BODYSTRUCTURE) -
21 FETCH (FLAGS () INTERNALDATE "13-Apr-2014 00:54:18 +0200" RFC822.SIZE 2390 BODY[HEADER.FIELDS (FROM TO DATE SUBJECT CC CONTENT-TYPE)] {385}
From: "***" <>
To: "*" <>
CC: "*" <>
Date: Sun, 13 Apr 2014 00:54:13 +0200
Subject:
=?utf-8?B?U2l0ZSB3d3cuaWJlcmljYXJjdXpjby5lcyAtIEVzdG95IEludGVyZXNzYWRv?=
=?utf-8?B?IGVuIEVzdGUgVmVow61jdWxv?=
Content-Type: text/plain; charset="utf-8"
IMAPX47 OK FETCH completed.