From owner-freebsd-questions Sat Mar 16 14:29: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from cmr0.ash.ops.us.uu.net (cmr0.ash.ops.us.uu.net [198.5.241.38]) by hub.freebsd.org (Postfix) with ESMTP id 472A437B404 for ; Sat, 16 Mar 2002 14:29:01 -0800 (PST) Received: from csserve0.corp.us.uu.net by cmr0.ash.ops.us.uu.net with ESMTP (peer crosschecked as: csserve0.corp.us.uu.net [153.39.88.140]) id QQmgmj20709; Sat, 16 Mar 2002 22:28:52 GMT Received: from haiti.corp.us.uu.net by csserve0.corp.us.uu.net with ESMTP (peer crosschecked as: localhost [127.0.0.1]) id QQmgmj28654; Sat, 16 Mar 2002 17:28:38 -0500 (EST) Received: from localhost (jamgill@localhost) by haiti.corp.us.uu.net (8.10.2+Sun/8.9.3) with ESMTP id g2GMSbc13650; Sat, 16 Mar 2002 17:28:37 -0500 (EST) X-Authentication-Warning: haiti.corp.us.uu.net: jamgill owned process doing -bs Date: Sat, 16 Mar 2002 17:28:37 -0500 (EST) From: "jamgill@uu.net" X-Sender: jamgill@haiti.corp.us.uu.net To: Brendan McAlpine Cc: questions@freebsd.org Subject: Re: Mail scanner script? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE 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 hmm.... grep ^From: | cut -f 2 -d : > addresses.list should dump the addresses into a file called addresses.list. Of course, running any kind of commands or code that you get from random folks on the internet (like myself, for example) is dangerous and if you don't know what every character in the line I've suggested above does you should look it up and ask questions. Not only will you reduce your risk but you will increase your knowledge. And if I get one piece of spam from you because of this script ... WTFOMF. --gill On Sat, 16 Mar 2002, Brendan McAlpine wrote: > Does anyone have a shell or perl script that can do the following.... >=20 > I want a script that can scan the headers of email files I=B9ve saved and= grab > the from addresses and put them into a separate text file. Seems simple, > but I don=B9t really know how to piece that together. >=20 > Any input or scripts would be appreciated. >=20 > Thanks >=20 > Brendan >=20 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --gill | Tatu Ylonen, SSH 1.2.12 README: "Beware that the most effective | way for someone to decrypt your data may be with a rubber hose." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message