зеркало из https://github.com/mozilla/pjs.git
Removed stupid debugging printf's.
This commit is contained in:
Родитель
ed76096b74
Коммит
744b1e709a
|
@ -48,43 +48,26 @@ sub SendHookMail {
|
||||||
|
|
||||||
$pathname = DataDir() . "/$filename";
|
$pathname = DataDir() . "/$filename";
|
||||||
|
|
||||||
print 'a';
|
|
||||||
return unless $hooklist;
|
return unless $hooklist;
|
||||||
print 'b';
|
|
||||||
return unless -f $pathname;
|
return unless -f $pathname;
|
||||||
print 'c';
|
|
||||||
return unless open(MAIL, "< $pathname");
|
return unless open(MAIL, "< $pathname");
|
||||||
print 'd';
|
|
||||||
$mail = join("", <MAIL>);
|
$mail = join("", <MAIL>);
|
||||||
print 'e';
|
|
||||||
close (MAIL);
|
close (MAIL);
|
||||||
print 'f';
|
|
||||||
|
|
||||||
%substs = ();
|
%substs = ();
|
||||||
print 'g';
|
|
||||||
$substs{'hooklist'} = $hooklist;
|
$substs{'hooklist'} = $hooklist;
|
||||||
print 'h';
|
|
||||||
$mail = PerformSubsts($mail, \%substs);
|
$mail = PerformSubsts($mail, \%substs);
|
||||||
print 'i';
|
|
||||||
|
|
||||||
%headers = ParseMailHeaders($mail);
|
%headers = ParseMailHeaders($mail);
|
||||||
print 'j';
|
|
||||||
%headers = CleanMailHeaders(%headers);
|
%headers = CleanMailHeaders(%headers);
|
||||||
print 'k';
|
|
||||||
$body = FindMailBody($mail);
|
$body = FindMailBody($mail);
|
||||||
print 'l';
|
|
||||||
|
|
||||||
my $mail_relay = Param("mailrelay");
|
my $mail_relay = Param("mailrelay");
|
||||||
print 'm';
|
|
||||||
my $mailer = Mail::Mailer->new("smtp", Server => $mail_relay);
|
my $mailer = Mail::Mailer->new("smtp", Server => $mail_relay);
|
||||||
print 'n';
|
|
||||||
$mailer->open(\%headers)
|
$mailer->open(\%headers)
|
||||||
or warn "Can't send hook mail: $!\n";
|
or warn "Can't send hook mail: $!\n";
|
||||||
print 'o';
|
|
||||||
print $mailer "$body\n";
|
print $mailer "$body\n";
|
||||||
print 'p';
|
|
||||||
$mailer->close();
|
$mailer->close();
|
||||||
print 'q';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче