MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / expunge

Method expunge

tools/python-3.11.9-amd64/Lib/imaplib.py:523–534  ·  view source on GitHub ↗

Permanently remove deleted items from selected mailbox. Generates 'EXPUNGE' response for each deleted message. (typ, [data]) = .expunge() 'data' is list of 'EXPUNGE'd message numbers in order received.

(self)

Source from the content-addressed store, hash-verified

521 return typ, data
522
523 def expunge(self):
524 """Permanently remove deleted items from selected mailbox.
525
526 Generates 'EXPUNGE' response for each deleted message.
527
528 (typ, [data]) = <instance>.expunge()
529
530 'data' is list of 'EXPUNGE'd message numbers in order received.
531 """
532 name = 'EXPUNGE'
533 typ, dat = self._simple_command(name)
534 return self._untagged_response(typ, dat, name)
535
536
537 def fetch(self, message_set, message_parts):

Callers

nothing calls this directly

Calls 2

_simple_commandMethod · 0.95
_untagged_responseMethod · 0.95

Tested by

no test coverage detected