woda team mailing list archive
-
woda team
-
Mailing list archive
-
Message #00014
extended _from field
Hi Malcolm
I use an extended _from field for a while now, which contains $user and $group.
I've just removed the (quickly done) code from the branch, but may be I should
keep it. What do you think?
code below
sub recSetSystem {
# _from
local ($from);
$from = $RH; # $RH = $ENV{'REMOTE_HOST'};
$from = $RA if !$from; # $RA = $ENV{'REMOTE_ADDR'};
# $rec{'_from'} = $from;
my $user = "user: $User - " if ($User);
my $group = "group: $Group - " if ($Group);
my $adress = "adress: $from";
$rec{'_from'} = $user . $group . $adress;
If such feature is interesting, I would use a different syntax:
$rec{'_from'} = "user:$User,group:$Group,address:$from";
Xavier
xavier@xxxxxxxxxxxxxx - 09 54 06 16 26