From owner-freebsd-questions Thu Feb 20 20:44: 3 2003 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 C78A837B401 for ; Thu, 20 Feb 2003 20:44:01 -0800 (PST) Received: from dragoncrest.jasnetworks.net (dragoncrest.jasnetworks.net [65.194.254.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA8D243F3F for ; Thu, 20 Feb 2003 20:44:00 -0800 (PST) (envelope-from dragoncrest@voyager.net) Received: from works (works.jasnetworks.net [192.168.0.2]) by dragoncrest.jasnetworks.net (8.12.3/8.12.3) with ESMTP id h1L0mQp8050367; Fri, 21 Feb 2003 00:48:27 GMT (envelope-from dragoncrest@voyager.net) Message-Id: <4.2.0.58.20030220235144.0096fe10@pop.voyager.net> X-Sender: dragoncrest@pop.voyager.net X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Thu, 20 Feb 2003 23:53:01 -0500 To: jacob rhoden From: Dragoncrest Subject: Re: Removing emails from an email file automatically. Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: References: <4.2.0.58.20030219224303.00971230@pop.voyager.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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. I'm trying to avoid using Procmail at all costs since we're currently on a Sendmail/Qpopper configuration that I can work with. But it may turn out that the only way around this IS to go with that. Thing is, I'd like to stick with what we have and make it work with that rather than totally ripping our our MTA and throwing in a whole brand new one we know nothing about. At 02:39 PM 2/20/03 +1100, jacob rhoden wrote: >Hi, > >On Wed, 19 Feb 2003, Dragoncrest wrote: > > Hi all. Is there a simple way to remove a single email from a > mail file > > using an automated script of some kind? Like combining grep with some > > other stuff like that? I'm looking for ideas to get rid of rogue > > emails. The other couple haven't exactly been a stellar success yet. Can > > I setup something that will search a mail file, find a given sender, and > > then just nuke the message without hurting the mail file? Thanks everyone. > >I am not sure if you want to work on an existing file, or future mail >files. If it is future mail files then you probably want to use a program >which can stop the mail getting in the file in the first place. If this is >the case look up 'procmail'. It allows you to read a mail and do an action >on it through your .forward file. > >Regards, >Jacob > >_______________________________________________________ >Jacob Rhoden Phone: +61 3 9844 6102 >ITS Division Email: jrhoden@unimelb.edu.au >Melbourne University Mobile: +61 403 788 386 > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message