[Qt-qmf] Where can I find the log of message server of QMF?

6 views
Skip to first unread message

Apollo Xue

unread,
Mar 7, 2011, 5:56:45 AM3/7/11
to qt-...@qt.nokia.com, ext Eric Springer
Hi All,
    I am debugging a messaging client app, and want to see how the message server handle client's request and what is happening in the message server, but I do not know the path the log file, can anyone tell where I can find the log of message server?

Best Regards
Apollo Xue

Eric Springer

unread,
Mar 7, 2011, 6:05:48 AM3/7/11
to ext Apollo Xue, qt-...@qt.nokia.com
Hi Apollo,

The message server doesn't log what it's doing. But the plugins (IMAP, POP etc.) log the network traffic (so you can see what they're doing) to the console, it should be enabled by default with debug builds.

If you want to see what actions the message server is doing, there's an API for that QMailActionObserver (?) -- and there's an example application (server observer, in the example directory) that's pretty useful for this stuff.

Regards,
Eric

Apollo Xue

unread,
Mar 8, 2011, 1:53:26 AM3/8/11
to Eric Springer, qt-...@qt.nokia.com
thank you, Eric.
I am using QMailActionObserver, but I found that Message server reported an error to client, the error code seemed meaningless:
Locals   
    activity    QMailServiceAction::Failed
    status   
        accountId   
        errorCode    3078583984
        folderId   
        messageId   
        text    <not accessible>
    this   
Watchers

Do you know what does this error code mean?

BTW, I am not sure if the IMAP plugin in SDK 1.2 preview is debug builds or not, how can I make it log what it is doing?



2011/3/7 Eric Springer <eric.s...@nokia.com>

Apollo Xue

unread,
Mar 8, 2011, 3:06:35 AM3/8/11
to Eric Springer, qt-...@qt.nokia.com
sorry, the error is:
Locals   
    status   
        accountId   
        errorCode    QMailServiceAction::Status::ErrNoConnection
        folderId   
        messageId   
        text    "Unable to retrieve folder list for unconfigured account"
    this   
Watchers

I do not understand why message server say the account was not configured, I have configured the account for IMAP4 and SMTP.


2011/3/8 Apollo Xue <apol...@gmail.com>

Eric Springer

unread,
Mar 8, 2011, 3:10:27 AM3/8/11
to ext Apollo Xue, qt-...@qt.nokia.com
On 03/08/2011 06:06 PM, ext Apollo Xue wrote:
I do not understand why message server say the account was not configured, I have configured the account for IMAP4 and SMTP.


The error is originating from servicehandler.cpp (line 1198) when it can not find a configured source (IMAP in this case) for your account. You could put a debug in there, and inspect what the value of "accountID" is.

Also, BTW: I highly recommend for development using QMF from our gitorious repo and building it from source. And you can use "QtMail" example to try our these things and make sure it's working etc.

Apollo Xue

unread,
Mar 8, 2011, 4:51:23 AM3/8/11
to Eric Springer, qt-...@qt.nokia.com
thanks for your reply, Eric, I had ever tried, but it is really pain to build from QMF source.
I checked my code, the code for creating and configuring account is same with the code of meego handset email app of meego sdk. And I also test a case, I created a mail account using my app, and trigger a folder list sync, but message server said my account was not configured, then I open meego native handset email app, it loaded my account, then I trigger a sync operation, from the server observer, I can see that message server was handing the request, I can not understand this strange thing, the code was almost same.



2011/3/8 Eric Springer <eric.s...@nokia.com>
Reply all
Reply to author
Forward
0 new messages