[Mimedefang] Tie to aliases.db doesn't work
Matthew Schumacher
matt.s at aptalaska.net
Tue May 24 16:55:41 EDT 2005
Jan Pieter Cornet wrote:
> On Mon, May 23, 2005 at 06:37:05PM -0800, Matthew Schumacher wrote:
> newaliases stores the keys (and values) with a trailing \0 character. Try:
>
> print $aliases{"root\0"}, "\n";
>
> Also make sure to strip the \0 from the value if you're using it for
> anything other than just printing, so the code above could also be
> written as:
>
> my $alias = "root";
> my $dest = $aliases{"$alias\0"};
> $dest =~ s/\0$//;
> print $dest, "\n";
>
Thanks Jan, that helps a bunch.
schu
More information about the MIMEDefang
mailing list