]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/backend/messages.py
messages: Fall back to no-reply@ipfire.org when there was no From: address
[ipfire.org.git] / src / backend / messages.py
index ceb5ffc22f451507dd109abad6c56b63cf19ef29..a0af29fc636e3c1a2048b9c879315829901dd153 100644 (file)
@@ -189,7 +189,7 @@ class Queue(misc.Object):
                                "-oi",
 
                                # Envelope Sender
-                               "-f", msg.get("From"),
+                               "-f", msg.get("From") or "no-reply@ipfire.org",
                        ]
 
                        # Envelope Recipients