From owner-freebsd-questions Fri Mar 2 11:24:31 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wopr.caltech.edu (wopr.caltech.edu [131.215.102.114]) by hub.freebsd.org (Postfix) with ESMTP id 7B5AB37B718 for ; Fri, 2 Mar 2001 11:24:29 -0800 (PST) (envelope-from mph@wopr.caltech.edu) Received: (from mph@localhost) by wopr.caltech.edu (8.11.1/8.11.0) id f22JOPc21196; Fri, 2 Mar 2001 11:24:25 -0800 (PST) (envelope-from mph) Date: Fri, 2 Mar 2001 11:24:25 -0800 From: Matthew Hunt To: "Riley J. McIntire" Cc: James Housley , FreeBSD Questions Subject: Re: Forwarding a mail file Message-ID: <20010302112425.A20578@wopr.caltech.edu> References: <3A9FE718.8DF913C4@thehousleys.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rjmcintire@earthlink.net on Fri, Mar 02, 2001 at 10:55:45AM -0800 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, Mar 02, 2001 at 10:55:45AM -0800, Riley J. McIntire wrote: > I have a user with a large mail file, /var/mail/user, that does not use the > account. I need to send all this mail to her isp mail account before I > delete her. Doing each piece manually is tedious, as is walking her through > setting up a temporary pop3 account on her single _phone_ line. I'll try to offer a solution before you have to explain yourself a third time. (I feel your pain.) Install formail, which comes with procmail (/usr/ports/mail/procmail). It has to ability to split up a mail spool and pipe each message to a command: formail -s command < /var/spool/foo splits up foo into single messages, and pipes each to command. So I think you can do what you want with: formail -s sendmail -oi her@new.email.address < /var/mail/her_old_spool I tested essentially the same thing with my mail spool and another account of mine. -- Matthew Hunt * Stay close to the Vorlon. http://www.pobox.com/~mph/ * To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message