From owner-freebsd-questions Fri May 11 20:53:32 2001 Delivered-To: freebsd-questions@freebsd.org Received: from ralf.artlogix.com (sense-mcglk-240.oz.net [216.39.168.240]) by hub.freebsd.org (Postfix) with ESMTP id 7EF1337B423 for ; Fri, 11 May 2001 20:53:28 -0700 (PDT) (envelope-from mcglk@artlogix.com) Received: by ralf.artlogix.com (Postfix, from userid 1000) id D3AEA1B9ECD; Fri, 11 May 2001 20:53:17 -0700 (PDT) To: "Christopher W. Aiken" Cc: FreeBSD Questions Subject: Re: [OT] procmail question References: <20010511222858.L36006-100000@bigdaddy.localdomain> From: Ken McGlothlen Date: 11 May 2001 20:53:17 -0700 In-Reply-To: "Christopher W. Aiken"'s message of "Fri, 11 May 2001 22:35:17 -0400 (EDT)" Message-ID: <874rurdxzm.fsf@ralf.artlogix.com> Lines: 48 X-Mailer: Gnus v5.7/Emacs 20.6 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Christopher W. Aiken" writes: | What I'm trying to do is if mail is sent to me, my wife, my daughter then | send to INBOX. If mail is from friend1, friend2, etc. also send to INBOX. | If from FreeBSD then send to freebsd. If from SuSE send to suse, ......... | If anything else send to /dev/null | | It would be a lot easier if I could explicitly send mail to the INBOX. | | Any suggestions? Well, you can append messages to any file in mbox format. Here's what I'd do in .procmailrc assuming that INBOX is in mbox format: ------------------------------------------------------------------------------- PATH=$HOME/bin:/usr/local/bin:/usr/X11R6/bin:/usr/bin:/bin PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin LOGFILE=$HOME/.procmaillog FROM="(^TO|^From[ ]+|^X-From-Line:[ ]+)" H="([a-z0-9---]+\.)" U="[a-z0-9---_\+\.\%=]" PASS=2147483647 :0 : *$ $PASS^0 ${FROM}${U}+@${H}*freebsd\.org $HOME/freebsd :0 : *$ $PASS^0 ${FROM}${U}+@${H}*suse\.org $HOME/suse :0 : *$ $PASS^0 ^TOcwaiken@users\.icubed\.com *$ $PASS^0 ^TOwife@users\.icubed\.com *$ $PASS^0 ^TOdaughter@users\.icubed\.com *$ $PASS^0 ${FROM}friend1@where\.ev\.er *$ $PASS^0 ${FROM}friend2@some\.where\.el\.se $HOME/INBOX :0 /dev/null ------------------------------------------------------------------------------- Does that help? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message