From owner-freebsd-questions@FreeBSD.ORG Thu Apr 26 06:29:39 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BF9416A403 for ; Thu, 26 Apr 2007 06:29:39 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) by mx1.freebsd.org (Postfix) with ESMTP id F029E13C45A for ; Thu, 26 Apr 2007 06:29:38 +0000 (UTC) (envelope-from on@cs.ait.ac.th) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) by mail.cs.ait.ac.th (8.13.1/8.12.11) with ESMTP id l3Q6Tbd1064704 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 26 Apr 2007 13:29:37 +0700 (ICT) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.13.3/8.12.11) id l3Q6TaM8089863; Thu, 26 Apr 2007 13:29:36 +0700 (ICT) Date: Thu, 26 Apr 2007 13:29:36 +0700 (ICT) Message-Id: <200704260629.l3Q6TaM8089863@banyan.cs.ait.ac.th> From: Olivier Nicole To: peter@pean.org In-reply-to: <46304373.6060907@pean.org> (message from =?ISO-8859-1?Q?Peter_Ankerst=E5l?= on Thu, 26 Apr 2007 08:15:15 +0200) References: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <46304373.6060907@pean.org> X-Virus-Scanned: on CSIM by amavisd-milter (http://www.amavis.org/) Cc: freebsd-questions@freebsd.org, wodfer@gmail.com Subject: Re: How do I forward old root emails from the root mailbox to my address? 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: Thu, 26 Apr 2007 06:29:39 -0000 > but is there a simple way for me to send all these old mails in > root's mailbox to my email address without logging in through > pop3/imap? A combination of cat /var/mail/root | formail -s and something. cat /var/mail/root | formail -s will read /var/mail/root, separate each message and pipe it to the command that follow the -s. The command could be a sendmail new@email.address.com or something, you may have to investigate. cat /var/mail/root | formail -s /usr/sbin/sendmail new@email.address.com Olivier