我有一个如下的列表:
[ 1 (UID 3234 FLAGS (seen \Seen)) , 2 (UID 3235 FLAGS (\Seen)) ,
3 (UID 3236 FLAGS (\Deleted)) , 4 (UID 3237 FLAGS (-FLAGS \Seen +FLAGS)) ,
5 (UID 3241 FLAGS (-FLAGS \Seen +FLAGS)) , 6 (UID 3242 FLAGS (\Seen)) ,
7 (UID 3243 FLAGS (\Seen)) , 8 (UID 3244 FLAGS (\Seen)) ,
9 (UID 3245 FLAGS (\Seen)) , 10 (UID 3247 FLAGS (\Seen)) ,
11 (UID 3252 FLAGS (\Seen)) , 12 (UID 3253 FLAGS (\Deleted)) ,
13 (UID 3254 FLAGS ()) , 14 (UID 3256 FLAGS (\Seen)) , 15 (UID 3304 FLAGS ()) ,
16 (UID 3318 FLAGS (\Seen)) , 17 (UID 3430 FLAGS (\Seen)) ,
18 (UID 3431 FLAGS ()) , 19 (UID 3434 FLAGS (\Seen)) ,
20 (UID 3447 FLAGS (-FLAGS \Seen +FLAGS)) , 21 (UID 3478 FLAGS ()) ,
22 (UID 3479 FLAGS ()) , 23 (UID 3480 FLAGS ()) , 24 (UID 3481 FLAGS ()) ]
从这个列表中,我想要三个不同的列表作为结果。我想要列表上使用单个迭代的结果。
- list of all uids i.e [3234,3235,3236,3237,3241 .....]
- list of Seen uids i.e [3234,3235 ...] <-- uid of item which has Seen Flag
- list of deleted uids i.e [3236,3253] <-- uid of item which has Deleted Flag