procmail
[Top] [All Lists]

Re: Detecting alpha address -- a regular expression question

1997-11-05 21:32:55
At 10:23 AM 11/5/97 -0700, cknox(_at_)us(_dot_)dhl(_dot_)com wrote:
We are implementing a (shudder) mail-to-fax gateway.  The syntax is 
<faxnum>@server.domain.com
         ^^^^^^^^^^^^^^^^^^

The rather head-injured fax beast gleefully passes alphabetic characters to 
the fax modem.  
I'm using the following recipe to attempt to filter out alpha characters.

:0
* ^To:(_dot_)*[a-zA-Z](_dot_)*(_at_)fax(_dot_)*
                   ^^^^^

Looks great, but the trouble is that stuff sails right through it.

Typo?  Try replacing "@fax" with "@server" (or even just "@").  Also,
there's no point to the trailing ".*".

Cheers,
Stan

<Prev in Thread] Current Thread [Next in Thread>