On Sun, 29 Feb 2004, Greg Ennis wrote:
I sent this note a couple of days ago, but for some reason it did not post
so I'll try again.
[...]
*
^Content-Type:.*$name=\".*\.(hta|com|pif|vbs|vbe|js|jse|exe|bat|cmd|vxd|scr|shm|dll|zip|SCR)\"
I have also tried moving the "$" to the end of the line as the below without
success:
*
^Content-Type:.*name=\".*\.(hta|com|pif|vbs|vbe|js|jse|exe|bat|cmd|vxd|scr|shm|dll|zi
p|SCR)\"$
Would some of you comment on the use of "$" being used to denote matching
from the end of line and how it is supposed to be used"
The "." does not include the newline ("$") so, you must count it
in the regx:
EXTN="hta|com|pif|vbs|vbe|js|jse|exe|bat|cmd|vxd|scr ... and more ..."
(BTW you don't need "scr" and "SCR")
.
.
.
* $ ^Content-Type:(.|$)*=(.|$)*\".+\.($EXTN)\>
I didn't check it because I do more expensive but readable,
sed(1) makes the Content-x records to be one line:
| sed -e ':a' -e '$!N;s/^\(Content-.*\)\n[ ^I][ ^I]*/\1 /;ta' -e 'P;D'
I know it's extra, it's not good idea, but it makes the records
to be much easier to work.
Bye,
Udi
Thanks,
Greg Ennis
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
+++++++++++++++++++++++++++++++++++++++++++
This Mail Was Scanned By Mail-seCure System
at the Tel-Aviv University CC.
--
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail