| Server IP : 74.208.236.79 / Your IP : 216.73.216.40 Web Server : Apache System : Linux infongp-us50 4.4.400-icpu-108 #2 SMP Wed Feb 11 10:12:42 UTC 2026 x86_64 User : u93192080 ( 6162215) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /kunden/usr/share/doc/libmailtools-perl/examples/ |
Upload File : |
#!/usr/bin/perl -w
use Mail::Internet;
@mail = <>;
$mail = Mail::Internet->new(\@mail);
$mail->remove_sig;
$mail->tidy_body;
@reply = ();
if(open(HDR,"$ENV{HOME}/.mailhdr")) {
@reply = <HDR>;
close(HDR);
}
$rply = Mail::Internet->new(\@reply);
$subject = $mail->get('Subject');
$rply->replace('To', "");
$rply->replace('Cc', "");
$rply->replace('Subject',$subject);
$rply->body($body = $mail->body);
unshift @{$body},"---------- Begin Included Message ----------\n";
push @{$body},"----------- End Included Message -----------\n";
$file = "/tmp/reply.$$";
open(FILE,">$file") || die "Cannot open $file:$!\n";
$rply->print(\*FILE);
close(FILE);
$editor = $ENV{"EDITOR"} || "/usr/bin/nvi";
warn "$editor :$!\n" if (system("$editor $file"));
unlink($file,$file . '%');
exit 0;