From 789f3d2e35034632da49d988e2e90f2e4c95604c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 8 Apr 2014 23:58:36 +0000 Subject: precheck: reject messages with no subject Composers may screw up and leave the subject out, so reject those messages. --- lib/PublicInbox.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/PublicInbox.pm b/lib/PublicInbox.pm index a4aba346..b05fd8c5 100644 --- a/lib/PublicInbox.pm +++ b/lib/PublicInbox.pm @@ -19,6 +19,7 @@ sub precheck { my $simple = $filter->simple; return 0 unless $simple->header("Message-ID"); return 0 unless defined($filter->from); + return 0 unless $simple->header("Subject"); return 0 if length($simple->as_string) > MAX_SIZE; recipient_specified($filter, $recipient); } -- cgit v1.2.3-24-ge0c7