From owner-freebsd-questions Fri Oct 12 20: 6:45 2001 Delivered-To: freebsd-questions@freebsd.org Received: from falcon.mail.pas.earthlink.net (falcon.mail.pas.earthlink.net [207.217.120.74]) by hub.freebsd.org (Postfix) with ESMTP id F3A9837B408 for ; Fri, 12 Oct 2001 20:06:36 -0700 (PDT) Received: from moo.holy.cow (sdn-ar-004dcwashP074.dialsprint.net [206.133.21.162]) by falcon.mail.pas.earthlink.net (8.11.5/8.9.3) with ESMTP id f9D36O426801; Fri, 12 Oct 2001 20:06:29 -0700 (PDT) Received: by moo.holy.cow (Postfix, from userid 1001) id 4A00050CF1; Fri, 12 Oct 2001 23:07:26 -0400 (EDT) Date: Fri, 12 Oct 2001 23:07:26 -0400 From: parv To: f-q Cc: procmail-users@procmail.org Subject: problem w/ keeping only one out of many copies via procmail Message-ID: <20011012230726.A27777@moo.holy.cow> Mail-Followup-To: f-q , procmail-users@procmail.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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.*ports@freebsd\.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@dreamscape\.co\.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])?).*ports@freebsd\.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@619486:/home/parv/mail/IN.f-ports" From owner-freebsd-ports@FreeBSD.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@iDaemons.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@dreamscape\.co\.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])?).*ports@freebsd\.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@679824:/home/parv/mail/IN.f-ports" From knu@iDaemons.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, is the munged version of real one which is different than parv_@yahoo.com on another domain; removed some of the non-essential headers from the two sets below. )