When a thread is partially in trash folder(for
example, a thread has some messages stored in inbox,
some in trash), GmailThread.__getitem__ can actually
get all the messages(both in inbox and in trash),
which is not correct. Nevertheless,
GmailThread.__len__ will get the correct number since
it uses re.search on thread list. I found one way to
solve this is to check the [MI_FLAGS] of the message
info: if the MSD(8th) digit of the flag is 1 (or the
value of flag is greater than 127), the message is in
trash folder.
Logged In: YES
user_id=1250429
Thanks, we will look into this.
Stas