about summary refs log tree commit homepage
path: root/lib
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2014-04-08 23:58:36 +0000
committerEric Wong <e@80x24.org>2014-04-08 23:58:36 +0000
commit789f3d2e35034632da49d988e2e90f2e4c95604c (patch)
tree31bbae8b2f39a8e1563cd25bc23d3c8f523471dc /lib
parent399081a7c4424ede7155cebd8f5ac1bbb69bb436 (diff)
downloadpublic-inbox-789f3d2e35034632da49d988e2e90f2e4c95604c.tar.gz
Composers may screw up and leave the subject out, so
reject those messages.
Diffstat (limited to 'lib')
-rw-r--r--lib/PublicInbox.pm1
1 files changed, 1 insertions, 0 deletions
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);
 }