procmail
[Top] [All Lists]

Re: Sending entire mail folders to someone (yourself)

1999-09-23 18:33:56
"Colin J. Raven" <cjraven(_at_)quik(_dot_)com> writes:
Sometime ago, I seem to recall someone posting a solution that allows a
person to send an entire mail folder to another recipient, (or myself when
changing ISP's) so for example, send my in-procmail folder from
me(_at_)account1 to me(_at_)account2(_dot_)
Does anyone recall this post?

First, set up the forwarding so that you don't have to worry about
messages being delivered to me(_at_)account1's mailbox.  Then, assuming
me(_at_)account1's mailbox is in mbox format, you can just use formail to
split the mailbox and invoke sendmail on each one:

        formail -Y -s sendmail me(_at_)account2  < /path/to/mailbox


Philip Guenther