Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Apr 2007 13:29:36 +0700 (ICT)
From:      Olivier Nicole <on@cs.ait.ac.th>
To:        peter@pean.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?
Message-ID:  <200704260629.l3Q6TaM8089863@banyan.cs.ait.ac.th>
In-Reply-To: <46304373.6060907@pean.org> (message from =?ISO-8859-1?Q?Peter_Ankerst=E5l?= on Thu, 26 Apr 2007 08:15:15 %2B0200)
References:  <23ed14b80704250211l16756f5dkab26503c0f66e2a2@mail.gmail.com> <46304373.6060907@pean.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> 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



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