We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

IMAP Invalid character in a Base-64 string when listing messages

Hi, this is the exception we get when listing messages using Imap – the mailbox has messages, but one fails with the subject “1&1 Internet AG - Ihre Rechnung”:

Transmx.Email.EmailException:
Failed to get messages in “Inbox” – Invalid character in a Base-64
string. —> System.FormatException: Invalid character in a Base-64
string. at System.Convert.FromBase64String(String s) at
Aspose.Network.Imap.xbf9a3f5a906fc9c0.xa134a20dc02e72a0(String
x4a3f0a05c02f235f) at
Aspose.Network.Imap.x45efdabe04b88d09…ctor(x96ede5b74ba520e6 parser,
x0d5228de32e4575d response, Boolean group, Encoding encoding) at
Aspose.Network.Imap.x45efdabe04b88d09…ctor(x96ede5b74ba520e6 parser,
x0d5228de32e4575d response, Boolean group, Encoding encoding) at
Aspose.Network.Imap.x45efdabe04b88d09…ctor(x96ede5b74ba520e6 parser,
x0d5228de32e4575d response, Boolean group, Encoding encoding) at
Aspose.Network.Imap.ImapClient.xaf1ad0f9514c0e91(ImapMessageInfoCollection
x8a0b266419f09a55, x0d5228de32e4575d xe13536703a5eff16, Int32
xa942970cc8a85fd4, UInt32 x49f7e52e813da01a, Encoding
xff3edc9aa5f0523b) at
Aspose.Network.Imap.ImapClient.x35d4f75cf2668399(xc410cc399b92bb26
x35e272d3072c829f, Int32 xa942970cc8a85fd4) at
Aspose.Network.Imap.ImapClient.ListMessages() at
Transmx.Email.ImapMailServer.OnGetFolderMessages(String serverPath)

Hi,

I have tested the ListMessages() method of ImapClient class and was able to reproduce the same error message when tried to download a message with the subject "1&1 Internet AG - Ihre Rechnung".

Our development team will look into this and fix this soon.

Regards,
Saqib Razzaq

Hello,

We have located the root and fixed it finally. I will provide a hotfix for your evaluation shortly.

Best regards.

Hello,

We have released Aspose.Network v3.7.0.0. In the new release, we fixed this bug in Imap. Please check it out and let me know it is working.

download:

http://www.aspose.com/Community/Files/54/aspose.network/entry107627.aspx

Thanks,