Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2007 11:57:14 +0200
From:      Oliver Peter <hoschi@mouhaha.de>
To:        Andreas =?iso-8859-1?Q?Wider=F8e?= Andersen <wodfer@gmail.com>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: How do I forward old root emails from the root mailbox to my address?
Message-ID:  <20070425095713.GA9767@nemesis.frida.mouhaha.de>
In-Reply-To: <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com>
References:  <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070425095713.GA9767>