suppressed_addresses_for (templatetags/suppression.py)

speedpy · speedpycom/templatetags/suppression.py · python · MIT
email

Template tag that returns suppression status for a user's email addresses, used in account pages.

# Source: https://github.com/speedpy/speedpy | License: MIT | Copyright 2026 kostja.me
# Provided via justclaw.it.com; keep this notice with the code.
"""Tell a person that we stopped emailing one of their addresses .

The gap this closes: when an address hard-bounces we stop sending to it, and the
only way we would normally tell somebody is by email — to the address we just
stopped using. So a real customer whose mailbox filled up, whose domain expired,
or whose provider started rejecting us goes silent and never finds out why. From
their side the product simply stopped working: no password resets, no
invitations, no notifications, and no error anywhere.

A template tag rather than a view override, because the page is allauth's own
(``account/email.html``, a ``vendor`` file). One query, o

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key