procmail
[Top] [All Lists]

unprocessed message leaking through filter perl script

1999-01-29 23:14:14

I subscribe to about ten "daily tip" mailing lists.  I send the tip
message through a perl script to extract the tip from the fluff
and append the tip to a file.  This works just fine.  Randomly,
one or two complete tip messages each day are also delivered
directly to my mailbox.  This I don't understand.  I guess it must
be some locking problem, but adding :'s didn't have any effect.

Here is a typical recipe in my .procmailrc

:0:
* Sender: owner-netscapetips(_at_)tipworld(_dot_)com
| tipworldtip >>/home/buck/mail/win95/netscape.tips


Here is the perl script "tipworldtip":

=====================
#!/usr/local/bin/perl
#####################################################################
#
# Program Name: tipworldtip
#
# Function:     filters out TipWorld tip text
#
#####################################################################
#
$body = 0;
while (<STDIN>) {
    if (/^And now for today/) {
        $body = 1;
        next;
    }
    if ($body == 1) {
        if (/^-------------------------/) {
            exit;
        } else {
            print $_;
        }
    }
}
=====================

A tip which made its way to my mailbox looked like this

===================
Return-Path: owner-netscapetips(_at_)tipworld(_dot_)com 
Return-Path: owner-netscapetips(_at_)tipworld(_dot_)com
Received: (from uucp(_at_)localhost) by siswat.compact.com (8.8.7/8.7.3) with 
UUCP id RAA28179 for buck(_at_)compact(_dot_)com; Fri, 29 Jan 1999 17:02:50 
-0600
X-Envelope-To: buck(_at_)compact(_dot_)com
Received: from listproc3.pcworld.com (listproc3.pcworld.com [209.1.23.114])
        by academ.com (8.9.1/8.9.0) with ESMTP id QAA12782
        for <buck(_at_)compact(_dot_)com>; Fri, 29 Jan 1999 16:53:39 -0600 (CST)
Received: from listproc.pcworld.com (listproc.pcworld.com [209.1.23.15])
        by listproc3.pcworld.com (8.8.5/8.8.5) with SMTP id OAA26670;
        Fri, 29 Jan 1999 14:53:53 -0800 (PST)
Message-Id: <199901292253(_dot_)OAA26670(_at_)listproc3(_dot_)pcworld(_dot_)com>
Date: Fri, 29 Jan 1999 14:49:38 PST
Reply-To: tips(_at_)tipworld(_dot_)com
Sender: owner-netscapetips(_at_)tipworld(_dot_)com
Precedence: bulk
From: TipWorld <tips(_at_)tipworld(_dot_)com>
To: netscapetips(_at_)listproc(_dot_)pcworld(_dot_)com
Subject: Netscape Navigator 3.x Tip of the Day [Open a new page without closing 
the old one - 01/29/99]
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Listprocessor-Version: 8.1 beta -- ListProcessor(tm) by CREN


TipWorld - http://www.tipworld.com           
The Internet's #1 Source for Computer Tips, News, and Gossip           
           
Proudly presents:           
Netscape Navigator Tip of the Day        
 
----------------------------------------------           
 
Made possible today by           
uBID.COM 
 
Win a '99 Porsche Boxster at uBid by joining now for FREE! Current 
members 
can simply register on the site!  Visit and do it now! 
http://www.pcworld.com/r/tw/1%2C2061%2Ctw-ubid0119%2C00.html  
           
 
----------------------------------------------           
 
And now for today's tip ...           
           
SOMETHING OLD, SOMETHING NEW           
 
You can click a linked URL to go to it, but then the page you're 
looking at disappears. To open the new page without closing the old 
one, just right-click the URL and choose Open Link in New Browser 
Window. Now, if you like, you can return to the old page and continue 
reading it while the new page loads, and you can easily switch between 
the two.           
           
----------------------------------------------        
 
TOP NEWS FROM PC WORLD           
RELATED BROWSER STORIES ON PC WORLD ONLINE      
      
TEACH YOUR OLD BROWSER NEW NAVIGATION TRICKS  
Tap your browser's hidden power.  
http://www.pcworld.com/r/tw/1%2C2061%2Ctw-brsr01191%2C00.html  
  
INTERNET EXPLORER SON OF CURTANGO PATCH  
Microsoft's updated "Untrusted Scripted Paste" patch for Internet 
Explorer.  
http://www.pcworld.com/r/tw/1%2C2061%2Ctw-brsr01192%2C00.html  

<snip>
======================


Procmail details:

Linux 2.0.31 

procmail v3.11pre7

Locking strategies:     dotlocking, fcntl(), lockf()
Default rcfile:         $HOME/.procmailrc
Your system mailbox:    /var/spool/mail/buck


Can anyone explain why this is happening and what I might do to
stop it?

Thanks alot!


Lester

--
A. Lester Buck          buck(_at_)compact(_dot_)com

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