Menu

Problem with getContacts.

Help
reset
2006-12-11
2013-04-29
  • reset

    reset - 2006-12-11

    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.

     
    • reset

      reset - 2006-12-11

      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?

       
      • Daniel Henninger

        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?

         
    • reset

      reset - 2006-12-18

      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.

       
      • Daniel Henninger

        Please note my other reply in this same thread.  =)

         
        • reset

          reset - 2006-12-21

          Thak you very much. It realy help me.
          >>It goes: loginCompleted->contactListSyncCompleted->contactListInitCompleted->ok now I can do stuff.

           
    • mirya

      mirya - 2006-12-18

      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

       
      • Daniel Henninger

        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.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.