]> Sergey Matveev's repositories - public-inbox.git/commitdiff
precheck: reject messages with no subject
authorEric Wong <e@80x24.org>
Tue, 8 Apr 2014 23:58:36 +0000 (23:58 +0000)
committerEric Wong <e@80x24.org>
Tue, 8 Apr 2014 23:58:36 +0000 (23:58 +0000)
Composers may screw up and leave the subject out, so
reject those messages.

lib/PublicInbox.pm

index a4aba34692852263c9d5abe8e927673f958a1444..b05fd8c5607853af1050054162818b6ecbdd4706 100644 (file)
@@ -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);
 }