Help with fax filter

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Pete Ashdown
Fecha:  
A: Exim Mailing List
Asunto: Help with fax filter
I'm trying to install a system-wide filter, which will take addresses of
the form:
    notify@???


and redirect them to a FAX script.

The following two attempts were mildly successful:

## Uses header_To: (fails for local mails without it)
## Doesn't expand the regex into $1 and $2 for some reason
if $header_To: matches "([^@]+)@([^.]+)\.fax"
then
pipe "/usr/local/lib/fax/mailfax $1 $2 $sender_address"
endif

## Uses $domain, which doesn't work very well at all
if $domain matches "[^.]+\.fax"
pipe "/usr/local/lib/fax/mailfax $original_local_part $domain $sender_address"
endif

What filter variables expand to show the recipient address, before the
pipe, without fail?