Hello,
Am Mittwoch, 3. September 2008 schrieb Gin...@us...:
> + # the regexp used here could probably be improved somewhat, for
> now hope that people won't use # as a valid mailbox character.
> + my $tmp = $smtp_recipient;
> + $tmp =~ s/\@$vacation_domain//;
What about matching against the end-of-string to make the regex
failsafe?
$tmp =~ s/\@$vacation_domain$//;
Untested (and therefore not commited) - please give it a try and commit
it to SVN if it works ;-)
Regards,
Christian Boltz
--
Chance is irrelevant. We will succeed. -- Seven of Nine
|