Date: 11 May 2001 20:53:17 -0700 From: Ken McGlothlen <mcglk@artlogix.com> To: "Christopher W. Aiken" <cwaiken@users.icubed.com> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: [OT] procmail question Message-ID: <874rurdxzm.fsf@ralf.artlogix.com> In-Reply-To: "Christopher W. Aiken"'s message of "Fri, 11 May 2001 22:35:17 -0400 (EDT)" References: <20010511222858.L36006-100000@bigdaddy.localdomain>
next in thread | previous in thread | raw e-mail | index | archive | help
"Christopher W. Aiken" <cwaiken@users.icubed.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?874rurdxzm.fsf>