procmail
[Top] [All Lists]

Re: html bouncer

2001-03-21 18:07:16
David, Tim and all,

Neither one of the recipees work. I am pasting a test message for you to try
them on "dry" below. Any help highly appreciated.

-- TEST MESSAGE --

Received: from bogart.geeworld.com 
(IDENT:root(_at_)bogart(_dot_)geeworld(_dot_)com
[205.244.243.18])
        by atlantis.bus.ucf.edu (8.9.3/8.9.3) with ESMTP id TAA14537
        for <cba(_at_)bus(_dot_)ucf(_dot_)edu>; Wed, 21 Mar 2001 19:36:29 -0500
Received: from crypto (ubr-33.11.20.curryford.cfl.rr.com [65.33.11.20])
        by bogart.geeworld.com (8.9.3/8.9.3) with SMTP id TAA08712
        for <cba(_at_)bus(_dot_)ucf(_dot_)edu>; Wed, 21 Mar 2001 19:37:07 -0500
Message-ID: <00ad01c0b268$2d6599b0$01000001(_at_)crypto>
From: "David Collantes" <david(_at_)netbros(_dot_)com>
To: <cba(_at_)bus(_dot_)ucf(_dot_)edu>
Subject: The same...
Date: Wed, 21 Mar 2001 19:36:16 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_00AA_01C0B23E.324A23D0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400

This is a multi-part message in MIME format.

------=_NextPart_000_00AA_01C0B23E.324A23D0
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Disregard

------=_NextPart_000_00AA_01C0B23E.324A23D0
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<DEFANGED_META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<DEFANGED_META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
 <!-- <DEFANGED_STYLE> --> </DEFANGED_STYLE>
</HEAD>
<BODY>
<DIV><FONT color=3D#800080=20
size=3D2><STRONG><EM><U>Disregard</U></EM></STRONG></FONT></DIV></BODY></=
HTML>

------=_NextPart_000_00AA_01C0B23E.324A23D0--

-- END OF TEST MESSAGE --


----- Original Message -----
From: "David W. Tamkin" <dattier(_at_)ripco(_dot_)com>
To: "Timothy J. Luoma" <tjlists(_at_)bigfoot(_dot_)com>
Cc: "David Collantes" <david(_at_)netbros(_dot_)com>; "Procmail Mailing List"
<procmail-users(_at_)procmail(_dot_)org>
Sent: Wednesday, March 21, 2001 4:15 PM
Subject: Re: html bouncer


Timothy Luoma advised David Collantes,

| :0
| * ! ^FROM_DAEMON
| {
|          :0 H
|          * cba(stf|fac)?@(atlantis\.)?bus\.ucf\.edu
|          {
|          :0 B
|          * ()<HTML>
|          * ()</HTML>
|          {
|                  :0 c
|                  /tmp/$file_name.txt
|
|                  :0
|                  | /usr/local/bin/html_bouncer.pl $file_name.txt
|          }
|
| }
| }

| # I should know better than to forget to indent properly to make sure I
don't
| leave a stray { or } hanging

You don't need to count the braces by any means at all, since that code
doesn't need any braces:

 :0c # are you positive $file_name will be unique and you don't need a lock?
 * ! ^FROM_DAEMON
 * cba(stf|fac)?@(atlantis\.)?bus\.ucf\.edu
 * B ?? ()<HTML>
 * B ?? ()</HTML>
 /tmp/$file_name.txt

 :0A
 | /usr/local/bin/html_bouncer.pl $file_name.txt

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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