×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Number of message IDs

    Hi!

    Can somebody tell me how many message IDs are produced in
    the Inbox of my Symbian 3rd ed. phone??? I think that those IDs are unique but they are used again when I delete a message from my inbox. Is this correct???

    The number of ID has to be connected to the available space in
    the phone is that right?? Does somebody know some concrete data?

    Kind regards!

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Number of message IDs

    Hello,

    As far as I know there is no limit to the number of IDs that can be produced in the inbox, other than the obvious one: the maximum number of messages that fit in the device's memory.
    As for the IDs, yes they are unique. I had 5 messages in my inbox and the function sms_messages() returned 5 different IDs. Then I deleted message 3, and got the IDs accordingly (1, 2, 4 and 5). Then I saved another message to my inbox and got a different (as in not used before) ID, but that may depend on which device is being used. I'm not sure.

    Hope I understood your questions
    Last edited by bogdan.galiceanu; 2008-03-28 at 19:15. Reason: Typo

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: Number of message IDs

    hi freaky_911
    bogdan is absolutely correct that there is no limit to generate the ID for the message.
    and its also correct that one the message is deleted the ID is used again.
    hope you are satisfied.
    thanx

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Re: Number of message IDs

    Hmmm ok thank you very much!
    I think you mean "is not used again" =) in the following sentence. Do you?

    and its also correct that one the message is deleted the ID is used again.
    But no problem - thanks a lot for your answers!!!




    Quote Originally Posted by gaba88 View Post
    hi freaky_911
    bogdan is absolutely correct that there is no limit to generate the ID for the message.
    and its also correct that one the message is deleted the ID is used again.
    hope you are satisfied.
    thanx

  5. #5
    Registered User
    Join Date
    Mar 2008
    Posts
    28

    Re: Number of message IDs

    Hmmm sorry for asking again but I think that the IDs
    have to be repeated when the maximum is reached.

    If the phones memory is full and I delete one message
    so that a new one can arrive what messageID does it
    get?? It cannot get an ID of an other existing message
    in the Inbox but if the ID is always increasing it has
    to reach the absolute maximum after a time and that causes
    an error or the ID will start with zero again..... does it???

    Sorry for asking but I would like to rebuild my programm
    based on the IDs of messages...

    Kind regards!

  6. #6
    Super Contributor
    Join Date
    Mar 2003
    Location
    Espoo, Finland
    Posts
    976

    Re: Number of message IDs

    From memory, not verified:

    ID keeps growing with increments of "1" until max in reached. Then it wraps back to start. Next new message gets next highest free ID number. Old freed numbers are not reused ever, ID just keeps growing. Zero is special and not used for normal messages.

    Btw the max number is so high, you switch to new phone before reaching it.

  7. #7
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Re: Number of message IDs

    hey guys can u tell me how to get the unique message IDs?

    CMsvEntry* folderInboxContext = CMsvEntry::NewL(*iSession, KMsvGlobalInBoxIndexEntryId, sort);
    CleanupStack::PushL(folderInboxContext);

    CMsvEntrySelection* InboxEntries = folderInboxContext->ChildrenL();
    CleanupStack::PushL( InboxEntries );
    CMsvEntry* entry = iSession->GetEntryL( (*InboxEntries)[i] );
    CleanupStack::PushL(entry);

    TMsvEntry entry1 = entry->Entry();



    i've tried using entry1.Id();
    as well as entry->EntryId();

    am i using it correctly?

    they seem to be unique numbers but somehow when i recv a new message all IDs are automatically changed and now the ID for my previous latest message bcome the ID for my latest message,

    e.G:
    SMS2 ID=1048584 latest
    SMS1 ID=1048585

    let say i get a new message SMS3, now all the IDs changed,

    SMS3 ID=1048584
    SMS2 ID=1048585
    SMS1 ID=1048598

    please help

  8. #8
    Super Contributor
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Number of message IDs

    Hi raysky,

    This is the Python forum. You should ask your question in the Symbian C++ forum if you can't find the answer by searching that forum first.

  9. #9
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    131

    Re: Number of message IDs

    Quote Originally Posted by bogdan.galiceanu View Post
    Hi raysky,

    This is the Python forum. You should ask your question in the Symbian C++ forum if you can't find the answer by searching that forum first.
    oh, i see sorry didn't notice where i was posting hahaha found this thread through the "search forum" feat.

Similar Threads

  1. how to get default message center number
    By sulakshana in forum Symbian
    Replies: 3
    Last Post: 2007-08-06, 10:02
  2. WML & WMLSCript problem ????
    By gemini_shooter in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2006-01-14, 06:02
  3. "Send item to" message without phone number in 6220
    By geiduks in forum Mobile Java General
    Replies: 0
    Last Post: 2004-02-13, 10:33
  4. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52
  5. Internet Access Config via Smart Message
    By ajbrindley in forum Smart Messaging
    Replies: 1
    Last Post: 2002-08-14, 07:56

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×