Quantcast
Channel: ImapX 2
Viewing all articles
Browse latest Browse all 1952

Commented Unassigned: ImapX.Message possible issues [1780]

$
0
0
new SharpMessage( ImapX.Message.GetAsString()) throws a non explicit error : {"The type initializer for 'anmar.SharpMimeTools.SharpMessage' threw an exception."}

Is this ok?

and ImapX.Message.MessageBuilder() throws this:

{"StartIndex cannot be less than zero.\r\nParameter name: startIndex"}

Best regards,
AK89
Comments: ** Comment from web user: ak89 **

So, while calling ImapX.Message.MessageBuilder() the function throws an exception on line 670 while your .indexOf('/') returns -1, I don't know what do you want to find with that... my current3.FileName = "file.pdf" and nothing more..

stringBuilder.AppendFormat("Content-Type: {0}; name=\"{1}\"{2}", current3.FileType,
current3.FileName.Substring(current3.FileName.IndexOf('/')).Trim(new[]
{
'/'
}), Environment.NewLine);

Please tell me what were you intending to do with this


Viewing all articles
Browse latest Browse all 1952

Trending Articles