You Are Here:

Community: Developer Discussion Boards

#1 Old Number of message IDs - 2008-03-28, 19:05

Join Date: Mar 2008
Posts: 28
freaky_911
Offline
Registered User
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!
Reply With Quote

#2 Old Re: Number of message IDs - 2008-03-28, 19:40

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Online
Forum Nokia Champion
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 20:15. Reason: Typo
Reply With Quote

#3 Old Re: Number of message IDs - 2008-03-28, 20:10

Join Date: Feb 2008
Posts: 2,542
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
gaba88
Online
Forum Nokia Champion
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


Gargi Das- http://gargidas.blogsot.com

Forum Nokia Python Wiki


Learn Python at http://mobapps.org/PyS60
Reply With Quote

#4 Old Re: Number of message IDs - 2008-03-28, 21:51

Join Date: Mar 2008
Posts: 28
freaky_911
Offline
Registered User
Hmmm ok thank you very much!
I think you mean "is not used again" =) in the following sentence. Do you?

Quote:
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
Reply With Quote

#5 Old Re: Number of message IDs - 2008-03-29, 09:11

Join Date: Mar 2008
Posts: 28
freaky_911
Offline
Registered User
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!
Reply With Quote

#6 Old Re: Number of message IDs - 2008-03-31, 01:02

Join Date: Mar 2003
Posts: 937
Location: Espoo, Finland
JOM's Avatar
JOM
Offline
Forum Nokia Champion
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.
Reply With Quote

#7 Old Re: Number of message IDs - 2008-07-11, 11:07

Join Date: Mar 2003
Posts: 131
raysky
Offline
Regular Contributor
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
Reply With Quote

#8 Old Re: Number of message IDs - 2008-07-11, 11:12

Join Date: Oct 2007
Posts: 2,841
Location: Deva, Romania
bogdan.galiceanu's Avatar
bogdan.galiceanu
Online
Forum Nokia Champion
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.
Reply With Quote

#9 Old Re: Number of message IDs - 2008-07-11, 11:18

Join Date: Mar 2003
Posts: 131
raysky
Offline
Regular Contributor
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get default message center number sulakshana General Symbian C++ 3 2007-08-06 11:02
WML & WMLSCript problem ???? gemini_shooter Browsing and Mark-ups 0 2006-01-14 07:02
"Send item to" message without phone number in 6220 geiduks Mobile Java General 0 2004-02-13 11:33
Personal JSmith77 PersonalJava 4 2003-07-30 13:52
Internet Access Config via Smart Message ajbrindley Smart Messaging 1 2002-08-14 08:56

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia