[Mimedefang] Why it is'n working

Tanel Kokk tanel.kokk at eyp.ee
Fri Oct 18 10:58:01 EDT 2002


Easy wrote:
> What's wrong with this filter:
> 
> sub filter ($$$$) {
>     my ($sender, $ip, $hostname, $helo) = @_;
>         if ($sender =~ /^<?mail at domain>?$/i) or ($sender =~
> /^<?mail2 at domain>?$/i)  {
>         action_add_header("Bcc", "backup at domain");
>     }
>     return action_accept();
> }
> 
> I receive the error:
> stderr: Possible unintended interpolation of @domain in string at
> /usr/local/defang/etc/mail/mimedefang-filter line 13.
> 


Perl interpreter thiks '@domain' could be some array.

Try  /^<?mail\@domain>?$/i


Tanel




More information about the MIMEDefang mailing list