.. This file is part of PEPSI. Copyright (C) 2026 GNUnet e.V. PEPSI is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version. ================== pepsi-stage-defang ================== *Neutralise the remote references in HTML mail.* Role ==== ``pepsi-stage-defang`` removes everything that a message's HTML would load from the network by itself when it is displayed: tracking pixels, remote images, style sheets, fonts and frames. Opening a message then tells its sender nothing (:ref:`lit-remote-content-tracking`), and a decrypted HTML part cannot send its own plaintext to a server either (:ref:`lit-efail-direct-exfiltration`). It is off by default and turned on per address by the address's owner. Reference: :manpage:`pepsi-stage-defang(1)`. Features ======== * **Per address:** ``DEFANG = on|off`` (default ``off``) is read after per-address settings, so a user can turn it on for their own mail with a settings mail (:doc:`pepsi-stage-edit-settings`), and the operator can with ``pepsi-settings set ADDRESS defang DEFANG on``; recipients whose settings differ get their own copies. Where it is certainly off, the stage fuses through using only the message's metadata and does not load the body. * **What goes:** ``src``, ``srcset``, ``poster``, ``background`` and the other loading attributes; ``href`` everywhere but on ```` and ````; frames' and plug-ins' sources; ``ping``; ``url()``, ``@import`` and URL strings in style attributes, ``