Thanks for that. I was missing the !@ at the beginning of the line. Now have it working roughly, just need to fine tune it.*grins* now a very happy man
Ok, I temporarily put it here:
http://a-more-common-hades.blogspot.com/2011/02/temp-post.html
I actually thought the other guys were better suited to answer it. I
just made it more user friendly.
> can you add another command in order to get the *_id* ?*
I see what you need now. In some tables, the _id is something useless,
but I see that it is useful in others. I don't know how to do it at
the moment but I did just realize something, unread messages have the
label id of -505,4,-506 (but 4 seems kinda useless) in the
conversations table, in addition to other label ids. Once you read the
message, the -505,4,-506 changes to -65533 and all read messages have
the -65533 tag.
I don't even fully understand BossMan's command yet, but the two
labels "tasker" and "android" would be something like 28 and 31 on my
phone, so it should be possible to get the messageId of anything
matching 28/31 and 505 or 506 (or not 65533) from conversations and
use that to grab the sender info from messages.
Can anyone with an unread email check the conversations table to see
if the tags contain -505/-506, then read the message and see if those
disappear and -65533 appears?
You can run this command with an unread message, then again after
reading it:
sqlite3 /data/data/com.google.android.gm/databases/
mailstore.YOURMAIL.db "select labelIds from conversations"
Then, can anyone figure out the sqlite command to take advantage of
this? lol
Actually I wait for two seconds ;)
OK, I'll give another try later on :)
--
[OS] Android Gingerbread 2.3.7
[Phone] HTC Desire S
[ROM] CyanogenMod 7.1
[Kernel] Tiamat Saga 1.1.5+
[Recovery] 4EXTRecovery v2.1.0