What is means next message
"System message: MIME-Version: 1.0
Content-Type: text/x-msmsgsinitialmdatanotification; charset=UTF-8".
If this message come before when i am start get contacts when all fine, but if they come during getContacts i have problem (Not all contacts returned).
Can anybody help me?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
If I get it right, the contacts are all fetched after this message is received, and some internal contact list is populated. The question is how do I know all contacts are already fetched so requesting the API would not return partial contact list?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hrm. Well first off, where are you seeing this:
"System message: MIME-Version: 1.0
Content-Type: text/x-msmsgsinitialmdatanotification; charset=UTF-8".
And at what point are you using getContacts?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
This a net.sf.jml.message.MsnMimeMessage of message that come when call getContacts(). If this message come before the contacts operate then all work fine. But if during than contacts operate, have problem. I am debug this and see next :
public void systemMessageReceived(MsnMessenger arg0, MsnSystemMessage arg1)
MsnMessenger - have all contacts and contact group.
MsnSystemMessage - have this incoming message. (And then this message come than program stop return contacts).
This problem have solution if write some code Thread.sleep(~1000). Than first come this message and after contacts.
I'm getting the same problem, e.g. I run getContacts just after I've logged in and It seems like not all contacts are read yet. The text/x-msmsgsinitialmdatanotification message seems to be always sent _after_ all contacts are in (though I still can't get the real purpose of the message), so I propose to make getContacts wait for that message received and then return
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you running getContacts after loginCompleted, or after contactListInitCompleted? Your contact list isn't properly populated until contactListInitCompleted. Note that I find this semi-unintuitive and am planning on trying to make something that's more clear. Perhaps a listener call that's something more like loginProcessCompleted to indicate that the -whole- login process is done.
It goes: loginCompleted->contactListSyncCompleted->contactListInitCompleted->ok now I can do stuff.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
What is means next message
"System message: MIME-Version: 1.0
Content-Type: text/x-msmsgsinitialmdatanotification; charset=UTF-8".
If this message come before when i am start get contacts when all fine, but if they come during getContacts i have problem (Not all contacts returned).
Can anybody help me?
Thanks.
If I get it right, the contacts are all fetched after this message is received, and some internal contact list is populated. The question is how do I know all contacts are already fetched so requesting the API would not return partial contact list?
Hrm. Well first off, where are you seeing this:
"System message: MIME-Version: 1.0
Content-Type: text/x-msmsgsinitialmdatanotification; charset=UTF-8".
And at what point are you using getContacts?
Hi.
This a net.sf.jml.message.MsnMimeMessage of message that come when call getContacts(). If this message come before the contacts operate then all work fine. But if during than contacts operate, have problem. I am debug this and see next :
public void systemMessageReceived(MsnMessenger arg0, MsnSystemMessage arg1)
MsnMessenger - have all contacts and contact group.
MsnSystemMessage - have this incoming message. (And then this message come than program stop return contacts).
This problem have solution if write some code Thread.sleep(~1000). Than first come this message and after contacts.
Content:
Mail-Data: <MD><E><I>6</I><IU>0</IU><O>65</O><OU>6</OU></E><Q><QTM>409600</QTM><QNM>204800</QNM></Q></MD>
Inbox-URL: /cgi-bin/HoTMaiL
Folders-URL: /cgi-bin/folders
Post-URL: http://www.hotmail.com
sorry for my english. Thanks.
Please note my other reply in this same thread. =)
Thak you very much. It realy help me.
>>It goes: loginCompleted->contactListSyncCompleted->contactListInitCompleted->ok now I can do stuff.
I'm getting the same problem, e.g. I run getContacts just after I've logged in and It seems like not all contacts are read yet. The text/x-msmsgsinitialmdatanotification message seems to be always sent _after_ all contacts are in (though I still can't get the real purpose of the message), so I propose to make getContacts wait for that message received and then return
Are you running getContacts after loginCompleted, or after contactListInitCompleted? Your contact list isn't properly populated until contactListInitCompleted. Note that I find this semi-unintuitive and am planning on trying to make something that's more clear. Perhaps a listener call that's something more like loginProcessCompleted to indicate that the -whole- login process is done.
It goes: loginCompleted->contactListSyncCompleted->contactListInitCompleted->ok now I can do stuff.