Qt 4.8 "Draft Message" problem
neil at ossau.homelinux.net
Wed Nov 28 01:39:06 CET 2012
Radek Polak <psonek2 at seznam.cz> writes:
> On Thursday, November 22, 2012 07:55:31 PM Neil Jerram wrote:
>> By the way, I am also making gradual progress on the "Draft Message"
>> problem, which is to do with the QMailMessage::Incoming flag being
>> incorrectly reset on some messages. It affects email as well as SMS,
>> and I think it's timing dependent because it doesn't every incoming
> For me it triggered when i received SMS on v49 rootfs and rebooted to rootfs
> with 4.8.3 Qt. Maybe this will help you.
FYI I've narrowed this down to a QtSql/sqlite problem.
- By logging all the SQL operations from QMailStore, I can see that
QMailStore always sets the status field for newly received messages to
a value that includes the QMailMessage::Incoming flag. But if I copy
the database to my laptop and look at it with sqlitebrowser, I see
newly received messages with status = 0.
The missing QMailMessage::Incoming flag then accounts for SMSs being
shown as "Draft Message" and for emails being listed with the name of
the recipient instead of the sender.
- If I revert just qtopiacore/qt/src/sql and
qtopiacore/qt/src/3rdparty/sqlite back to v4.7.4-qtmoko-v46, but keep
the rest of Qt at v4.8.3-qtmoko-v49, the problem disappears.
- If I move qtopiacore/qt/src/sql and qtopiacore/qt/src/3rdparty/sqlite
forward to e2e62bc, the problem comes back again. e2e62bc is just
after the sqlite code was upgraded to 188.8.131.52.
There's still a way to go on this, but I thought worth sharing in case
you or anyone else sees problems that might be SQL-related.
More information about the community