This project is read-only.

IMAPMailAddress

May 29, 2008 at 11:39 AM
Hi All

I have found a small problem on Mail Address e.g from: and to:  specifically on IMAP.ParseAddresses where is splitting the addresses by coma ','
If your string is "surname, name <mail@mail>, surname, name <mail@mail>" this method returns an array of 4 rather than an array of 2 to fix that
replace
    string[] adrlist = s.Split(new char[] { ',' });
for
    string[] adrlist = s.Split(new string[] { ">," },StringSplitOptions.None);

Alberto Acosta
May 29, 2008 at 2:11 PM
This fix has been incorporated and will be available in the next source update
Jun 9, 2008 at 5:03 PM
in GetAddressFromString you also need to check if idxAddrEnd == -1 and then assign idxAddrEnd = s.Length - 1 to it because you  already  removed  >,
Jun 10, 2008 at 2:02 AM
This fix has been integrated, thanks again.