Send an RFC5161 enable string to the server. (typ, [data]) = .enable(capability)
(self, capability)
| 590 | return self._simple_command('DELETEACL', mailbox, who) |
| 591 | |
| 592 | def enable(self, capability): |
| 593 | """Send an RFC5161 enable string to the server. |
| 594 | |
| 595 | (typ, [data]) = <instance>.enable(capability) |
| 596 | """ |
| 597 | if 'ENABLE' not in self.capabilities: |
| 598 | raise IMAP4.error("Server does not support ENABLE") |
| 599 | typ, data = self._simple_command('ENABLE', capability) |
| 600 | if typ == 'OK' and 'UTF8=ACCEPT' in capability.upper(): |
| 601 | self._mode_utf8() |
| 602 | return typ, data |
| 603 | |
| 604 | def expunge(self): |
| 605 | """Permanently remove deleted items from selected mailbox. |