From: Duane Attaway (dattaway@dattaway.org)
Date: 01/25/03


Date: Sat, 25 Jan 2003 17:23:37 -0600
From: Duane Attaway <dattaway@dattaway.org>
Subject: Re: Forwarding existing mail
Message-ID: <Pine.LNX.4.50L0.0301251710320.18264-100000@dattaway.org>

On Sat, 25 Jan 2003, Jonathan Hutchins wrote:

> A user on a system I manage doesn't have the ability to pick up their
> mail, which has accumulated for a while. The do have an address I can
> forward it to, and I've set that up for new messages, but how do I
> forward the mail that's already been received without having to go into
> each message and manually re-address it?

fetchmail should be able to do this, with something like:

fetchmail -a -i -v -f fetchmailrc

The fetchmailrc contains

poll <mail.source.com> proto pop3 smtphost <mail.targethost.com>
smtpaddress <targetuser@mail.targethost.com> user <myuser> password
<mypassword>

The smtphost, smtpaddress, smtpname in the man page may show you how to
get a working rc configuration. I haven't done this before, so I haven't
tested it.

--
Why drive a car when you can ride a bike?
http://attaway.net                 http://counter.li.org   user #142150