Convert IMAP4 flags response to python tuple.
(resp)
| 1808 | |
| 1809 | |
| 1810 | def ParseFlags(resp): |
| 1811 | |
| 1812 | """Convert IMAP4 flags response to python tuple.""" |
| 1813 | |
| 1814 | mo = Flags.match(resp) |
| 1815 | if not mo: |
| 1816 | return () |
| 1817 | |
| 1818 | return tuple(mo.group('flags').split()) |
| 1819 | |
| 1820 | |
| 1821 | def Time2Internaldate(date_time): |