On 10 Jan 2006, at 05:44, Robin Bowes wrote:

    # cdb file containing valid local email addresses
    my $validrcptto_file = 'config/validrcptto.cdb';

    # don't check if file not readable
    return (DECLINED) if ( ! -f $validrcptto_file );

    # Open the cdb file and tie to hash
    tie my %rcpt, 'CDB_File', $validrcptto_file or
        return (DECLINED);

As Ask suggested, use:

my $rcpt = $self->config('validrcptto', 'map') || return DECLINED;

Saves you a bit of code :-)

Reply via email to