procmail
[Top] [All Lists]

Re: Delivering mail to a wrong mailbox

1998-03-17 15:47:43
On Tue, Mar 17, 1998 at 09:26:54AM -0600, Arkady Altman wrote:
I am using procmail to filter my incoming mail that is delivered via 
fetchmail.
Occasionally my mail is delivered into wrong mailbox. The following is part of
my log file:

In your example the message is delivered into the right folder. The
matching condition is aya from the From line (without colon) and "weekly 
report" from the subject line. You should carefully read the procmailrc man
page and play around a while to get the right feeling.
 
  procmail: Match on "^From.(aya*|altman*|arkady*|qa0002*)"
  procmail: Match on "^Subject.*Weekly Report+"
  procmail: Locking "weekly.lock"
  procmail: Assigning "LASTFOLDER=weekly"
  procmail: Opening "weekly"
  procmail: Acquiring kernel-lock
  procmail: [3476] Tue Mar 17 09:16:43 1998
  procmail: Unlocking "weekly.lock"
  From aya  Tue Mar 17 09:16:42 1998
   Subject: New Packages on the HP-UX Software And Porting Archive (weekly
   report
     Folder: weekly
     8102

Rule from the "~/.procmailrc":

:0:
* ^From.(aya*|altman*|arkady*|qa0002*)
* ^Subject.*Weekly Report+
weekly

And finally all the headers from the incoming mail:

From aya  Tue Mar 17 09:16:42 1998
Return-Path: <Arkady_Altman-QA0002(_at_)email(_dot_)mot(_dot_)com>
Received: from sys13.cae.cig.mot.com ([136.182.231.239])
          by postal2.cae.cig.mot.com (Netscape Messaging Server 3.01)
           with ESMTP id AAA29674 for 
<qa0002(_at_)cae(_dot_)cig(_dot_)mot(_dot_)com>;
          Tue, 17 Mar 1998 09:20:27 -0600
Received: from ilbd.mot.com  by  sys13.cae.cig.mot.com  with ESMTP
      (8.6.9/HUB2.5_09-02-97) id JAA03310; Tue, 17 Mar 1998 09:16:27 -0600
Received: by ilbd.mot.com
      (1.37.109.24/16.2) id AA126427787; Tue, 17 Mar 1998 09:16:27 -0600
Received:  by MOT; Mon, 16 Mar 1998 12:37:03 +0000
Received:  by ilbi.mot.com; Tue, 17 Mar 1998 9:12:55 -0600
Received:  by sys14.cae.cig.mo; Tue, 17 Mar 1998 9:06:02 -0600
Received:  by csg07.cae.cig.mo; Tue, 17 Mar 1998 9:12:54 -0600
Received:  by postal2.cae.cig.; Mon, 16 Mar 1998 7:57:38 -0600
Received:  by sys13.cae.cig.mo; Mon, 16 Mar 1998 7:53:14 -0600
Received:  by ilbd.mot.com; Mon, 16 Mar 1998 7:53:15 -0600
Received:  by MOT; Mon, 16 Mar 1998 12:37:03 +0000
Received:  by ilbx.mot.com; Mon, 16 Mar 1998 7:52:11 -0600
Received:  by pobox.mot.com; Mon, 16 Mar 1998 7:52:07 -0600
Received:  by motgate.mot.com; Mon, 16 Mar 1998 7:51:38 -0600
Received:  by mailhub1.liv.ac.; Mon, 16 Mar 1998 13:30:18 +0000
Received:  by ribble.csc.liv.a; Mon, 16 Mar 1998 12:37:20 +0000
Received:  by ribble.csc.liv.a; Mon, 16 Mar 1998 12:37:17 +0000
Received:  by lune.csc.liv.ac.; Mon, 16 Mar 1998 12:37:03 +0000
Date: Mon, 16 Mar 1998 12:37:03 +0000
From: 
"hpux#064#csc(_dot_)liv(_dot_)ac(_dot_)uk(_at_)INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET"
 
<hpux#h#064#h#csc(_dot_)liv(_dot_)ac(_dot_)uk#064#INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET(_at_)email(_dot_)mot(_dot_)com>
Subject: New Packages on the HP-UX Software And Porting Archive (weekly 
report)
Sender: 
"owner-hpux#064#csc(_dot_)liv(_dot_)ac(_dot_)uk(_at_)INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET"
 
<owner-hpux#h#064#h#csc(_dot_)liv(_dot_)ac(_dot_)uk#064#INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET(_at_)email(_dot_)mot(_dot_)com>
To: 
"hpux-weekly#064#csc(_dot_)liv(_dot_)ac(_dot_)uk(_at_)INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET"
 
<hpux-weekly#h#064#h#csc(_dot_)liv(_dot_)ac(_dot_)uk#064#INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET(_at_)email(_dot_)mot(_dot_)com>
Reply-To: 
"owner-hpux#064#csc(_dot_)liv(_dot_)ac(_dot_)uk(_at_)INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET"
 
<owner-hpux#h#064#h#csc(_dot_)liv(_dot_)ac(_dot_)uk#064#INTERNET(_dot_)email(_dot_)mot(_dot_)com*RFC-822*%INTERNET(_at_)email(_dot_)mot(_dot_)com>
Message-Id: 
<199803161237(_dot_)MAA07970(_at_)lune(_dot_)csc(_dot_)liv(_dot_)ac(_dot_)uk>
X-Mailer: Worldtalk (4.1.1-p1)/MIME
Status: RO
Content-Length: 5751
Lines: 108

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