Convert IMAP4 flags response to python tuple.
(resp)
| 1491 | |
| 1492 | |
| 1493 | def ParseFlags(resp): |
| 1494 | |
| 1495 | """Convert IMAP4 flags response to python tuple.""" |
| 1496 | |
| 1497 | mo = Flags.match(resp) |
| 1498 | if not mo: |
| 1499 | return () |
| 1500 | |
| 1501 | return tuple(mo.group('flags').split()) |
| 1502 | |
| 1503 | |
| 1504 | def Time2Internaldate(date_time): |