Question:
const char * origfilename; CString newfilename; origfilename = imap.getMailAttachFilename(*email,j); MessageBox(origfilename);
While playing around with imap, to check if i can use your fantastic lib in my new project, i found out that the original attachmentname might get split! Therefore MoveFile etc. would fail!
Test: attach a file with a very long name such as "Wir xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx His zum Dupk von Stklärungen-201101.docx"
The filename shown in the MessageBox will be split with a blanc -> "xxxxxxx xxxxx".
Make sure you are using the latest version of Chilkat. This sounds like an older problem that has already been fixed.
I am testing with 9.3.2 (x86) with Visual Studio 2008
This new 32-bit VC9 build fixes the problem:
http://www.chilkatsoft.com/preRelease/chilkat-9.3.2-x86-vc9.zip