I'm having fun with misencoded data. Should
theCursor.Field("OriginatorFrom".setString(App.MailFields.OriginatorFrom)
make a hard crash when the data in App.MailFields is misencoded?
Crash log:
Thread 27 Crashed:
0 libvshared_fat_release_x64.dylib 0x000000011551b6d8 fbl::String::c_str() const + 4
1 v4rb_cocoa_64.dylib 0x00000001153d024d Str_Unicode::c_str() const + 13
2 v4rb_cocoa_64.dylib 0x00000001153de81b Field_SetString(REALobjectStruct*, REALstringStruct*) + 200
3 Mail Archiver X.debug 0x000000010acd8df6 VField.SetString%%o<VField>s + 54
4 Mail Archiver X.debug 0x000000010b02bad4 WriteMessageToValentina.Constructor%%o<WriteMessageToValentina>o<VDatabase> + 28052 (/WriteMessageToValentina:35)
5 Mail Archiver X.debug 0x000000010b16aabc WriteMessageToDatabase.Constructor%%o<WriteMessageToDatabase>so<VDatabase>o<ExportOptions>ss + 2492 (/WriteMessageToDatabase:16)
6 Mail Archiver X.debug 0x000000010b27bf6e MailParser.parse%i8%o<MailParser> + 11838 (/MailParser:118)
7 Mail Archiver X.debug 0x000000010b2234ff ArchiveThread.Archive%%o<ArchiveThread> + 24239 (/ArchiveThread:167)
8 Mail Archiver X.debug 0x000000010b218328 ArchiveThread.Event_Run%%o<ArchiveThread> + 248 (/ArchiveThread:7)
9 XojoFramework 0x000000010ddef97d 0x10db8d000 + 2500989
10 XojoFramework 0x000000010dcb4223 0x10db8d000 + 1208867
11 libsystem_pthread.dylib 0x00007fff82f0099d _pthread_body + 131
12 libsystem_pthread.dylib 0x00007fff82f0091a _pthread_start + 168
13 libsystem_pthread.dylib 0x00007fff82efe351 thread_start + 13
The string causing this is foobared japanese text:
Mit freundlichen Grüßen/Regards
Beatrix Willius
http://www.mothsoftware.com
Mail Archiver X: The email archiving solution for professionals