I've had a look on CPAN but can't find anything...
Have a look at the Mail::Box package, it has what you need and more, and it is fairly easy to use as well.
| [reply] |
Thanks Roger - that looks to be what I'm after
elbow
| [reply] |
You mean, a program that uses a mail retrieval protocol on
one end, and a mail delivery protocol at the other end?
There are such programs, fetchmail for instance,
but what does that have to do with Perl?
Abigail | [reply] |
I didn't think POP3 supported copying from one mailbox to another. Your will probably want to use IMAP instead, and I don't know if even that will allow you to copy from one user to another. Take a look at any of the Net::IMAP* modules. | [reply] |
If the mailboxes are on the same machine is there any reason why you can't simply concatenate the mailbox files without troubling any network servers. You should probably take out a lock on both files while you are doing it, but aprt from that there should eb no problem.
/J\
| [reply] |
If the mailboxes are on the same machine is there any reason why you can't simply concatenate the mailbox files without troubling any network servers.
MTUs go to great lengths to ensure integrity of mail, minimizing the risk mail gets lost, or mailboxes corrupted.
You may not want to just "concatenate files". What if a disk
or system fails halfway your concatenation? Is it an acceptable risk that you don't know what you copied succesfully, when the
system beneath you fails?
Abigail
| [reply] |