about summary refs log tree commit homepage
path: root/public-inbox-mda
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2014-02-11 00:29:13 +0000
committerEric Wong <normalperson@yhbt.net>2014-02-11 00:29:13 +0000
commitb5b6e0f45c5ee171d71b549146432a68d6707531 (patch)
treef0df7c9f170cf7369556474b6baa80daf7e8511d /public-inbox-mda
parent419f8eb672754cd99d6ec12a1f7af0d85ae70795 (diff)
downloadpublic-inbox-b5b6e0f45c5ee171d71b549146432a68d6707531.tar.gz
Diffstat (limited to 'public-inbox-mda')
-rwxr-xr-xpublic-inbox-mda3
1 files changed, 2 insertions, 1 deletions
diff --git a/public-inbox-mda b/public-inbox-mda
index 72f1eac4..62d5b7fc 100755
--- a/public-inbox-mda
+++ b/public-inbox-mda
@@ -14,7 +14,8 @@ my $fail_repo = shift @ARGV or die "Usage: $usage\n";
 my $max = 1024 * 500; # same as spamc
 
 my $filtered;
-if (length($filter->simple->as_string) <= $max
+if ($filter->simple->header("From")
+    && length($filter->simple->as_string) <= $max
     && PublicInbox->recipient_specified($filter)
     && do_spamc($filter->simple, \$filtered)) {
         # update our message with SA headers (in case our filter rejects it)