procmail
[Top] [All Lists]

problem w/ keeping only one out of many copies via procmail

2001-10-12 20:14:49
problem is that i can't seem to get only one copy of mail 
instead of all the ones that i can potentially get. here is
the receipe from procmail faq/man page/etc...

:0 Whc: .msgid-lock
| formail -D 32768 .msgid-cache

#:0 a:
#.extra-copy


...intially, i was giddy whenever i would see messages only in the
.extra-copy but only one copy w/ same message-id in any/all other
folder (mbox type).  but that doesn't seem to take care of all the 
duplicates all the time.

i use fetchmail to retrieve mail from two accounts:  A & B.  i am 
susbcried to various mailing lists w/ both the addresses.  futher, i 
use address A to send messgaes to mailing lists; most of the time, i 
also get replies on address A if somebody replied both to a list and 
to me. above reciepe sometimes works, other times not :(.

below are the relevant sections of the procmail receipe & log,
and an example dulpicate message w/ headers as i couldn't make sense
(of the logs myself) to debug the problem. 

thanks much.

- parv


==========
receipe:
==========
:0 Whc: .msgid-lock
| formail -D 32768 .msgid-cache

...

:0:
* ^(TO|From).*(gnats-submit|gnats-admin|bugs)@freebsd\.org
* ^Subject:.*ports/
IN.f-ports

...

:0:
* ^TO(_dot_)*ports(_at_)freebsd\(_dot_)org
IN.f-ports

...

==============
procmail log
==============
...
procmail: Assigning "INCLUDERC=/home/parv/cf/procmail.receipe"
procmail: Locking ".msgid-lock"
procmail: Executing "formail,-D,32768,.msgid-cache"
procmail: Non-zero exitcode (1) from "formail"
procmail: Assigning "LASTFOLDER=formail -D 32768 .msgid-cache"
procmail: Unlocking ".msgid-lock"
procmail: No match on 
"^From.*(roh(_at_)dreamscape\(_dot_)co\(_dot_)kr|firstsourc|sucho|suncho|andrey\.lykhi|alykh|anderylykh)"
procmail: Match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?).*freebsd"
procmail: No match on 
"^Subject:.*cvs.commit.*(book|/man|alpha|sparc64|ia64|sgml|pc98)"
procmail: No match on "^Subject:.*(port.*kde|kde2|kde 
2|kdebase|stable.*not.*stable|dead athlon|fs:|for.*sale|linux.*vs.*bsd|bsd.*li
nux|pornography|amd factor in freebsd)"
procmail: No match on 
"^Subject:.*(freebsd.*need.*awake|benchmark.*sysadmin|justif.*freebsd|a.ronet.*ssid|gigabit.*woe|microsoft.*fr
 eebsd|os x.*not.*freebsd)"
procmail: No match on "^Subject:.*(picobsd|should.*ipfilter.*(pull|remove)|ms 
vs freebsd|rpc\.statd|disk i/o problem in 4\.3|soft.*should.*default)"
procmail: No match on "^Subject:.*(ahc |fxp(\(|0| 
)|soundblaster|smbfs|geforce|gravis|pc98|mtree|scsi|ftpd|ntpd|qpopper|nfs|snmp|smp|samba|smbd|nvidia|ipfw|winmodem|aic)"
procmail: No match on 
"^Subject:.*(linux.*freebsd|freebsd.*linux|windows.*freebsd|freebsd.*windows|no 
subject|your mail)"
procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?).*(gnats-submit|gnats-admin|bugs)@freebsd\.org"
procmail: No match on "^(TO|From).*(gnats-submit|gnats-admin|bugs)@freebsd\.org"
procmail: No match on "^(TO|From).*(gnats-submit|gnats-admin|bugs)@freebsd\.org"
procmail: Match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)freebsd"
procmail: No match on "^Subject:.*cvs commit:"
procmail: Match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)(_dot_)*ports(_at_)freebsd\(_dot_)org"
procmail: Locking "IN.f-ports.lock"
procmail: Assigning "LASTFOLDER=IN.f-ports"
procmail: Opening "IN.f-ports"
procmail: Acquiring kernel-lock
procmail: Unlocking "IN.f-ports.lock"
procmail: Notified comsat: "parv(_at_)619486:/home/parv/mail/IN.f-ports"
From owner-freebsd-ports(_at_)FreeBSD(_dot_)ORG  Fri Oct 12 21:35:41 2001
 Subject: Re: portupgrade problem: 'update_db': instance of IO needed: Cannot u
   Folder: IN.f-ports                                                       5107
...

oil: Assigning "INCLUDERC=/home/parv/cf/procmail.receipe"
procmail: Locking ".msgid-lock"
procmail: Executing "formail,-D,32768,.msgid-cache"
procmail: Assigning "LASTFOLDER=formail -D 32768 .msgid-cache"
From knu(_at_)iDaemons(_dot_)org  Fri Oct 12 21:36:56 2001
 Subject: Re: portupgrade problem: 'update_db': instance of IO needed: Cannot u
   Folder: formail -D 32768 .msgid-cache                                    1558
   procmail: Unlocking ".msgid-lock"
   procmail: No match on 
"^From.*(roh(_at_)dreamscape\(_dot_)co\(_dot_)kr|firstsourc|sucho|suncho|andrey\.lykhi|alykh|anderylykh)"
   procmail: Match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?).*freebsd"
   procmail: No match on 
"^Subject:.*cvs.commit.*(book|/man|alpha|sparc64|ia64|sgml|pc98)"
   procmail: No match on "^Subject:.*(port.*kde|kde2|kde 
2|kdebase|stable.*not.*stable|dead 
athlon|fs:|for.*sale|linux.*vs.*bsd|bsd.*linux|pornography|amd factor in 
freebsd)"
   procmail: No match on 
"^Subject:.*(freebsd.*need.*awake|benchmark.*sysadmin|justif.*freebsd|a.ronet.*ssid|gigabit.*woe|microsoft.*freebsd|os
 x.*not.*freebsd)"
   procmail: No match on 
"^Subject:.*(picobsd|should.*ipfilter.*(pull|remove)|ms vs 
freebsd|rpc\.statd|disk i/o problem in 4\.3|soft.*should.*default)"
   procmail: No match on "^Subject:.*(ahc |fxp(\(|0| 
)|soundblaster|smbfs|geforce|gravis|pc98|mtree|scsi|ftpd|ntpd|qpopper|nfs|snmp|smp|samba|smbd|nvidia|ipfw|winmodem|aic)"
   procmail: No match on 
"^Subject:.*(linux.*freebsd|freebsd.*linux|windows.*freebsd|freebsd.*windows|no 
subject|your mail)"
   procmail: No match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?).*(gnats-submit|gnats-admin|bugs)@freebsd\.org"
   procmail: No match on 
"^(TO|From).*(gnats-submit|gnats-admin|bugs)@freebsd\.org"
   procmail: No match on 
"^(TO|From).*(gnats-submit|gnats-admin|bugs)@freebsd\.org"
   procmail: Match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)freebsd"
   procmail: No match on "^Subject:.*cvs commit:"
   procmail: Match on 
"(^((Original-)?(Resent-)?(To|Cc|Bcc)|(X-Envelope|Apparently(-Resent)?)-To):(.*[^a-zA-Z])?)(_dot_)*ports(_at_)freebsd\(_dot_)org"
   procmail: Locking "IN.f-ports.lock"
   procmail: Assigning "LASTFOLDER=IN.f-ports"
   procmail: Opening "IN.f-ports"
   procmail: Acquiring kernel-lock
   procmail: Unlocking "IN.f-ports.lock"
   procmail: Notified comsat: "parv(_at_)679824:/home/parv/mail/IN.f-ports"
   From knu(_at_)iDaemons(_dot_)org  Fri Oct 12 21:36:56 2001
    Subject: Re: portupgrade problem: 'update_db': instance of IO needed: 
Cannot u
      Folder: IN.f-ports                                                       
3530
...

===============
message headers
================

( in the first set of headers, <another(_at_)ddress> is the munged version 
  of real one which is different than parv_(_at_)yahoo(_dot_)com on another
  domain; removed some of the non-essential headers from the two
  sets below.
)

From owner-freebsd-ports(_at_)FreeBSD(_dot_)ORG  Fri Oct 12 21:35:41 2001
Return-Path: <owner-freebsd-ports(_at_)FreeBSD(_dot_)ORG>
Delivered-To: parv(_at_)localhost(_dot_)holy(_dot_)cow
Received: from localhost (localhost [127.0.0.1])
        by moo.holy.cow (Postfix) with ESMTP id A798150CF5
        for <parv(_at_)localhost>; Fri, 12 Oct 2001 21:35:41 -0400 (EDT)
Delivered-To: <another(_at_)ddress>
X-Envelope-To: <another(_at_)ddress>
Received: (qmail 60705 invoked from network); 12 Oct 2001 21:58:22 -0000
Received: from <mx.another.account>
  by tenshian.pair.com with SMTP; 12 Oct 2001 21:58:22 -0000
Received: (qmail 7719 invoked by alias); 12 Oct 2001 21:58:21 -0000
Delivered-To: <another(_at_)ddress>
Received: (qmail 7714 invoked from network); 12 Oct 2001 21:58:21 -0000
Received: from mx2.freebsd.org (216.136.204.119)
  by mx2.pair.com with SMTP; 12 Oct 2001 21:58:21 -0000
Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18])
        by mx2.freebsd.org (Postfix) with ESMTP
        id 99B3555A1A; Fri, 12 Oct 2001 14:58:16 -0700 (PDT)
        (envelope-from owner-freebsd-ports(_at_)FreeBSD(_dot_)ORG)
Received: by hub.freebsd.org (Postfix, from userid 538)
        id B84F837B405; Fri, 12 Oct 2001 14:58:16 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1])
        by hub.freebsd.org (Postfix) with SMTP
        id A72B12E8150; Fri, 12 Oct 2001 14:58:16 -0700 (PDT)
Received: by hub.freebsd.org (bulk_mailer v1.12); Fri, 12 Oct 2001 14:58:16 
-0700
Delivered-To: freebsd-ports(_at_)freebsd(_dot_)org
Received: from mail.musha.org (daemon.musha.org [61.122.44.178])
        by hub.freebsd.org (Postfix) with ESMTP id B6A3E37B403
        for <freebsd-ports(_at_)freebsd(_dot_)org>; Fri, 12 Oct 2001 14:58:12 
-0700 (PDT)
Received: from archon.local.idaemons.org (archon.local.idaemons.org 
[192.168.1.32])
        by mail.musha.org (Postfix) with ESMTP
        id 093CD4D808; Sat, 13 Oct 2001 06:58:12 +0900 (JST)
Date: Sat, 13 Oct 2001 06:58:12 +0900
Message-ID: 
<86669ko70r(_dot_)wl(_at_)archon(_dot_)local(_dot_)idaemons(_dot_)org>
From: "Akinori MUSHA" <knu(_at_)iDaemons(_dot_)org>
To: parv <parv_(_at_)yahoo(_dot_)com>
Cc: f-ports <freebsd-ports(_at_)freebsd(_dot_)org>
Subject: Re: portupgrade problem: 'update_db': instance of IO needed: Cannot 
update the packages database!
In-Reply-To: <20011006202146(_dot_)A17678(_at_)moo(_dot_)holy(_dot_)cow>
References: <20011006202146(_dot_)A17678(_at_)moo(_dot_)holy(_dot_)cow>
Sender: owner-freebsd-ports(_at_)FreeBSD(_dot_)ORG


From knu(_at_)iDaemons(_dot_)org  Fri Oct 12 21:36:56 2001
Return-Path: <knu(_at_)iDaemons(_dot_)org>
Delivered-To: parv(_at_)localhost(_dot_)holy(_dot_)cow
Received: from pop.vip.sc5.yahoo.com (localhost [127.0.0.1])
        by moo.holy.cow (Postfix) with ESMTP id 0DF2350D71
        for <parv(_at_)localhost>; Fri, 12 Oct 2001 21:36:55 -0400 (EDT)
Received: from daemon.musha.org  (EHLO mail.musha.org) (61.122.44.178)
  by mta414.mail.yahoo.com with SMTP; 12 Oct 2001 14:58:13 -0700 (PDT)
Received: from archon.local.idaemons.org (archon.local.idaemons.org 
[192.168.1.32])
        by mail.musha.org (Postfix) with ESMTP
        id 093CD4D808; Sat, 13 Oct 2001 06:58:12 +0900 (JST)
Date: Sat, 13 Oct 2001 06:58:12 +0900
Message-ID: 
<86669ko70r(_dot_)wl(_at_)archon(_dot_)local(_dot_)idaemons(_dot_)org>  
From: "Akinori MUSHA" <knu(_at_)iDaemons(_dot_)org>
To: parv <parv_(_at_)yahoo(_dot_)com>
Cc: f-ports <freebsd-ports(_at_)freebsd(_dot_)org>
Subject: Re: portupgrade problem: 'update_db': instance of IO needed: Cannot 
update the packages database!
In-Reply-To: <20011006202146(_dot_)A17678(_at_)moo(_dot_)holy(_dot_)cow>
References: <20011006202146(_dot_)A17678(_at_)moo(_dot_)holy(_dot_)cow>

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