MCPcopy Index your code
hub / github.com/python/cpython / expunge

Method expunge

Lib/imaplib.py:604–615  ·  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

602 return typ, data
603
604 def expunge(self):
605 """Permanently remove deleted items from selected mailbox.
606
607 Generates 'EXPUNGE' response for each deleted message.
608
609 (typ, [data]) = <instance>.expunge()
610
611 'data' is list of 'EXPUNGE'd message numbers in order received.
612 """
613 name = 'EXPUNGE'
614 typ, dat = self._simple_command(name)
615 return self._untagged_response(typ, dat, name)
616
617
618 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