qmail/qmail-inject-null-sender.patch

15 lines
504 B
Diff

diff -Nur qmail-1.03/qmail-inject.c qmail-1.03_bz9884/qmail-inject.c
--- qmail-1.03/qmail-inject.c 1998-06-15 12:53:16.000000000 +0200
+++ qmail-1.03_bz9884/qmail-inject.c 2016-12-05 16:47:13.607016769 +0100
@@ -269,6 +269,10 @@
token822_alloc *addr;
{
if (!addr->len) return; /* don't rewrite <> */
+ if (addr->len == 1 && str_equal(addr->t[0].s,"<>")) {
+ addr->len = 0;
+ return;
+ }
if (addr->len >= 2)
if (addr->t[1].type == TOKEN822_AT)
if (addr->t[0].type == TOKEN822_LITERAL)