From owner-freebsd-questions@FreeBSD.ORG Wed Oct 25 14:53:58 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9BC716A403 for ; Wed, 25 Oct 2006 14:53:58 +0000 (UTC) (envelope-from antennex@hotmail.com) Received: from bay0-omc2-s9.bay0.hotmail.com (bay0-omc2-s9.bay0.hotmail.com [65.54.246.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id B1DC943D73 for ; Wed, 25 Oct 2006 14:53:52 +0000 (GMT) (envelope-from antennex@hotmail.com) Received: from hotmail.com ([65.54.161.42]) by bay0-omc2-s9.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 25 Oct 2006 07:53:52 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 25 Oct 2006 07:53:52 -0700 Message-ID: Received: from 65.54.161.200 by by106fd.bay106.hotmail.msn.com with HTTP; Wed, 25 Oct 2006 14:53:47 GMT X-Originating-IP: [65.68.247.73] X-Originating-Email: [antennex@hotmail.com] X-Sender: antennex@hotmail.com From: "Jack Stone" To: freebsd-questions@freebsd.org Date: Wed, 25 Oct 2006 09:53:47 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 25 Oct 2006 14:53:52.0297 (UTC) FILETIME=[62F01190:01C6F845] Subject: Shell question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 14:53:59 -0000 Folks: I have managed to piece together a shell script that is able to retrieve the domains from the spams of the day and summarize those in a special file that can then be added to the sendmail's rejects in the access.db. But, first I have to eyeball the list and remove any obvious good-guy domains. I would like to create another list of those same good guys that can be added to each day as they show up, then compare it to the above main list and delete the good guy domains before adding to the access.db. What would be the best way of doing the above in a few lines added to my (sh) shell script? BTW: The "spam" list of domains are listed in a column one below the other in a flat file. Appreciate your usual fine advice on this. Hope I have been clear. Thanks! Jack _________________________________________________________________ Find a local pizza place, music store, museum and more…then map the best route! http://local.live.com?FORM=MGA001