From owner-freebsd-questions@FreeBSD.ORG Wed Apr 25 09:57:16 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 3C4FD16A402 for ; Wed, 25 Apr 2007 09:57:16 +0000 (UTC) (envelope-from hoschi@nemesis.frida.mouhaha.de) Received: from nemesis.frida.mouhaha.de (nemesis.frida.mouhaha.de [85.236.48.53]) by mx1.freebsd.org (Postfix) with ESMTP id 002A713C455 for ; Wed, 25 Apr 2007 09:57:15 +0000 (UTC) (envelope-from hoschi@nemesis.frida.mouhaha.de) Received: by nemesis.frida.mouhaha.de (Postfix, from userid 1001) id 8423E4B2370; Wed, 25 Apr 2007 11:57:14 +0200 (CEST) Date: Wed, 25 Apr 2007 11:57:14 +0200 From: Oliver Peter To: Andreas =?iso-8859-1?Q?Wider=F8e?= Andersen Message-ID: <20070425095713.GA9767@nemesis.frida.mouhaha.de> References: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0F1p//8PRICkK4MW" Content-Disposition: inline In-Reply-To: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> X-Operating-System: FreeBSD 6.2-RELEASE-p2 i386 User-Agent: Mutt/1.5.14 (2007-02-12) Cc: freebsd-questions 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: Wed, 25 Apr 2007 09:57:16 -0000 --0F1p//8PRICkK4MW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 25, 2007 at 11:11:07AM +0200, Andreas Widere Andersen wrote: > Hi, > On one of my FreeBSD servers all system emails to root is stored in the r= oot > mailbox under /var/mail/root. I have updated my alias file so new mail is > forwarded to one of my email adresses, 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? >=20 > A command line trick would be perfect. mutt is your friend. Open the mbox file with=20 # mutt -R -f /var/mail/root Then Tag all mails (press 'T' then enter '.') and bounce the tagged messages (press ';' and thenn 'b') to your personal email address. That's the easiest way I know. (Of course you need a running MTA, too) --=20 Oliver PETER, email: hoschi@mouhaha.de, ICQ# 113969174 "Worker bees can leave. Even drones can fly away. The Queen is their slave." --0F1p//8PRICkK4MW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.3 (FreeBSD) iEYEARECAAYFAkYvJfkACgkQ6LH/IUVtaI/lQACfSVZ4kdZvtlGXMGBkBVDnfDq2 ELEAn34xuQeGzPOO5ewGp9vdway/RqZW =vO+Y -----END PGP SIGNATURE----- --0F1p//8PRICkK4MW--