Send an RFC5161 enable string to the server. (typ, [data]) = .enable(capability)
(self, capability)
| 509 | return self._simple_command('DELETEACL', mailbox, who) |
| 510 | |
| 511 | def enable(self, capability): |
| 512 | """Send an RFC5161 enable string to the server. |
| 513 | |
| 514 | (typ, [data]) = <instance>.enable(capability) |
| 515 | """ |
| 516 | if 'ENABLE' not in self.capabilities: |
| 517 | raise IMAP4.error("Server does not support ENABLE") |
| 518 | typ, data = self._simple_command('ENABLE', capability) |
| 519 | if typ == 'OK' and 'UTF8=ACCEPT' in capability.upper(): |
| 520 | self._mode_utf8() |
| 521 | return typ, data |
| 522 | |
| 523 | def expunge(self): |
| 524 | """Permanently remove deleted items from selected mailbox. |