# do not allow Bcc, only Cc and To if ORIGINAL_RECIPIENT (postfix) env is set
sub precheck {
my ($klass, $filter) = @_;
+ my $simple = $filter->simple;
+ return 0 unless $simple->header("Message-ID");
return 0 unless defined($filter->from);
- return 0 if length($filter->simple->as_string) > MAX_SIZE;
+ return 0 if length($simple->as_string) > MAX_SIZE;
recipient_specified($filter);
}
Cc => 'c@example.com',
'Content-Type' => 'text/plain',
Subject => 'this is a subject',
+ 'Message-ID' => '<MID>',
],
body => "hello world\n",
));
Cc => 'John Doe <c@example.com>',
'Content-Type' => 'text/plain',
Subject => 'this is a subject',
+ 'Message-ID' => '<MID>',
],
body => "hello world\n",
));
Cc => 'c@example.com',
'Content-Type' => 'text/plain',
Subject => 'this is a subject',
+ 'Message-ID' => '<MID>',
],
body => "hello world\n",
);