[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [vps-mail] proctut4: Simple Regular Expressions, Part III
- Subject: Re: [vps-mail] proctut4: Simple Regular Expressions, Part III
- From: Abigail Marshall <webmaster@xxxxxxxxxxxx>
- Date: Wed, 17 Sep 2003 01:49:55 -0700
SW> This is the fifth in a series of procmail tutorials. An updated
SW> version of this document may be found at:
SW> <http://www.perlcode.org/tutorials/procmail/proctut/>
SW> Your feedback and comments are welcome!
SW> Scott
Scott, great work, as usual, but your explanation doesn't
seem to match the actual recipes in this segment:
SW> :0:
SW> * 1^0 H ?? ^Content-type:[ ]*text/html
SW> * 1^0 B ?? ^Content-type:[ ]*(text/html|application/ms-word)
SW> html_email
SW>
SW> In this recipe we introduce scoring, two new special procmail variables that we will cover more thoroughly later ("H" and "B"), as well as a new comparison operator ("??")[3]. The English translation reads:
SW>
SW> The header of the email message ("H ??") has a line that begins
SW> with (the caret anchor) "Content-type:" followed by zero or more
SW> spaces or tabs, followed by I<either> "multipart/mixed" or
SW> "text/html". The body of the email message ("B ??") has a line
SW> that begins with "Content-type:", followed by zero or more spaces,
SW> followed by "text/html". Either of these conditions is sufficient
SW> for the recipe to match.
-Abigail
======================================================================
Technical questions regarding this list may be sent to
<vps-mail-owner@xxxxxxxxxxxx>. You may request an automated help
response by sending an email with the word 'help' (w/o quotes) in the
BODY of the message (subject is ignored) to <vps-mail-request@xxxxxxxxxxxx>.
======================================================================
Main Index |
Thread Index