From bem@news.cmc.net Mon Jan 27 18:26:41 1997 Path: fu-berlin.de!news.mathworks.com!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!howland.erols.net!vixen.cso.uiuc.edu!newsfeed.internetmci.com!news.cmc.net!not-for-mail From: bem@news.cmc.net (brian moore) Newsgroups: comp.mail.misc Subject: Re: Procmail help needed Date: 26 Jan 1997 23:56:37 GMT Organization: Chambers Multimedia Connection Lines: 87 Message-ID: <5cgqvl$m5q$1@news.cmc.net> References: <32E3E12A.5FCC@c2.net> Reply-To: bem@news.cmc.net NNTP-Posting-Host: thorin.cmc.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Newsreader: knews 0.9.8 To: ai@c2.net [Posted and mailed] In article <32E3E12A.5FCC@c2.net>, ai writes: > I used to be familiar with procmail. Now, after six months of intensive > chemo my brain is fried and I now know what it is like to be stupid. Nah, procmail, despite being the finest and most flexible local delivery agent around is sure to make your brain explode... chemo or no. :) > I subscribe to a listserv, for others who have the same health problem I > have. In conjunctin with the listowners I want to set up a email account > wherein procmail filters incoming mail from the listserv in the > following way: > > If mail is from owner1@dot.com or owner2@dots.com or owner3@dotsy.com it > is ignored. TRASH=/dev/null :0 * ^From:.*owner1@dot\.com $TRASH :0 * ^From:.*owner2@dots\.com $TRASH :0 * ^From:.*owner3@dotsy\.com $TRASH > If mail is from anyone else then > Check subject header, If subject header is INFO then ignore :0 * ^Subject: INFO $TRASH > If subject header is re: INFO or re:INFO > then send a canned autoreply named INFO.TXT :0 * ^Subject: re:.*INFO * !^FROM_DAEMON * !^X-Loop: something-to-flag-usually-your-address | ( formail -rA"Precedence: junk" \ -A"X-loop: something-to-flag-usually-your-address" \ cat /path/to/info.txt \ ) | $SENDMAIL -oi -t > Then send all incoming mail to /dev/null DEFAULT= /dev/null > Here is why the listserv would like to do this: We have over 1100 > members, most of whom are brain fogged patients. We have some members on > the list (medical professionals and people with small mailboxes) who can > choose to get only INFO topics. (INFO topics are supposed to be strictly > about scientific / medical INFO.) List members are supposed to remove > the word INFO from the subject header when replying to an INFO post. > > Usually what happens is whenever one INFO post is sent to the list there > are then ten posts that reply (re: INFO) with stupid one liners that are > not welcomed by the listmembers who are on INFO only. > > I don't know if this makes sense. If it doesn't and you can help me then > write me or post a message here. Thank you very much. The above is completely untested and seems designed to discard mail mostly. I guess if you had one member of the list set to get mail with this filter (say, 'nag@somewhere.com') it would do what you want. If you're running SmartList, it's probably possible to put it in smartlist as such. But looking at Stephen's recipes in SmartList make my brain hurt. It is a WONDERFUL mailing list manager, but it's also damned scary how he rattles off some really twisted expressions to nail the subscribe/unsubscribe stuff. :) Did I say I think Procmail is the greatest thing since Perl? :) -- Brian Moore The opinions expressed above are my own, not Sysadmin, C/Perl Hacker necesarily my employers'.