From owner-freebsd-hackers Wed Jul 8 12:05:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA12871 for freebsd-hackers-outgoing; Wed, 8 Jul 1998 12:05:46 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from superior.mooseriver.com (dynamic28.pm05.sf3d.best.com [209.24.235.28]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA12866 for ; Wed, 8 Jul 1998 12:05:42 -0700 (PDT) (envelope-from jgrosch@superior.mooseriver.com) Received: (from jgrosch@localhost) by superior.mooseriver.com (8.8.8/8.8.8) id MAA15378; Wed, 8 Jul 1998 12:05:40 -0700 (PDT) (envelope-from jgrosch) Message-ID: <19980708120539.A15241@mooseriver.com> Date: Wed, 8 Jul 1998 12:05:39 -0700 From: Josef Grosch To: obrien@NUXI.com, hackers@FreeBSD.ORG Subject: Re: manually using procmail Reply-To: jgrosch@superior.mooseriver.com References: <19980708113034.B8731@nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.91.1i In-Reply-To: <19980708113034.B8731@nuxi.com>; from David O'Brien on Wed, Jul 08, 1998 at 11:30:34AM -0700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Jul 08, 1998 at 11:30:34AM -0700, David O'Brien wrote: > Does anybody know if a way to take a Berkeley mailbox-formated file and > "pipe" it thru procmail so that it would be processed as if you received > the mail the usual way? > > As long as Hub isn't allowing POPing, getting FreeBSD mail is painful; > but would be if I could just copy hub:/var/mail/obrien to my local > machine and have it procmail processed. > > I've tried ``cat obrien | procmail -Yf-'', but it treats the mbox as a > single giant message. > Yes, this is how I get my mail from Best. The magic incantation is formail -s procmail < mail_file If interested I can provide the Perl script I use to grab my mail. Josef -- Josef Grosch | Another day closer to a | FreeBSD 2.2.7 jgrosch@MooseRiver.com | Micro$oft free world | UNIX for the masses To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message