API Reference¶
API reference for flufl.bounce:
Top-level functions¶
Detector interfaces¶
Interfaces.
- class flufl.bounce.interfaces.BounceDetector(*args, **kwargs)¶
Detect a bounce in an email message.
- __init__(*args, **kwargs)¶
- process(msg: Message) tuple[frozenset[bytes], frozenset[bytes]]¶
Scan an email message looking for bounce addresses.
- Parameters:
msg (Message) – An email message.
- Returns:
A 2-tuple of the detected temporary and permanent bouncing addresses. Both elements of the tuple are frozensets of byte email addresses. Not all detectors can tell the difference between temporary and permanent failures, in which case, the addresses will be considered to be permanently bouncing.