On Wednesday 06 June 2007 09:21, Joost van Baal wrote:
> It would be nice if
> /usr/share/doc/arpalert/examples/scripts/contribs/send_alert.pl got
> installed as /usr/share/arpalert/send_alert.pl, and if using it would
> not require manually editing the script to fix the sender and receiver's
> email adress. I don't like to have to maintain extra code when I'm
> using packaged software.
>
> Anyway, this code does fix it:
>
> open(MAILNAME, "</etc/mailname") or die "can't open /etc/mailname";
> $mailname = <MAILNAME>;
> chomp $mailname;
> $mail{From} = 'ARP Alert <arpalert@' . "$mailname>";
> $mail{To} = 'root <root@' . "$mailname>";Hi Joost, I did forward your modifications to upstream. If a new upstream version is available I'll change the location of the script with next upload. With kind regards, Jan. -- Never write mail to <[EMAIL PROTECTED]>, you have been warned! -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GIT d-- s+: a- C+++ UL++++ P+ L+++ E- W+++ N+++ o++ K++ w--- O M V- PS PE Y++ PGP++ t-- 5 X R tv- b+ DI- D++ G++ e++ h-- r+++ y+++ ------END GEEK CODE BLOCK------
pgpsN0FFUopnx.pgp
Description: PGP signature

