remove debug noise
git-svn-id: https://svn.perl.org/qpsmtpd/branches/v010@54 958fd67b-6ff1-0310-b445-bb7760255be9
This commit is contained in:
parent
3fae01ee4f
commit
48e3d9de39
@ -6,7 +6,7 @@ sub register {
|
||||
sub check_klez {
|
||||
my ($self, $transaction) = @_;
|
||||
|
||||
# klez files are always around 140K, no?
|
||||
# klez files are always around 140K
|
||||
return (DECLINED)
|
||||
if $transaction->body_size < 60_000
|
||||
or $transaction->body_size > 220_000;
|
||||
@ -21,8 +21,8 @@ sub check_klez {
|
||||
my $seen_klez_signature = 0;
|
||||
|
||||
while ($_ = $transaction->body_getline) {
|
||||
$line_number++;
|
||||
warn "$_";
|
||||
last if $line_number++ > 40;
|
||||
|
||||
m/^Content-type:.*(?:audio|application)/i
|
||||
and ++$seen_klez_signature and next;
|
||||
|
||||
@ -30,9 +30,7 @@ sub check_klez {
|
||||
if $seen_klez_signature
|
||||
and m!^TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQA!;
|
||||
|
||||
last if $line_number > 40;
|
||||
}
|
||||
|
||||
warn "DECLINED is ", DECLINED;
|
||||
return (DECLINED);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user