my600080 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, This is what I've done.

I'm using Mail::POP3Client to fetch emails from an email server and save everything, and delete the message.

But before deletion, I would like to copy it to another folder to save for a few days. Is it possible with Mail::POP3Client? If not, maybe use Mail::Folder to save locally? Thanks!

Replies are listed 'Best First'.
Re: Copy email to anther folder using pop3
by Corion (Patriarch) on Jan 16, 2010 at 01:22 UTC

    POP3 does not have a concept of "folders". You will either need to save the mail locally or use another protocol, like IMAP, if your server supports that.

      Thanks for the information. When saving the email locally, what I can think of is that, creating a folder with the date and email subject as the folder name, and inside the folder, are the email body and attachments. Is this a common way to save emails?

      Thanks a lot!

        When I did an export of Lotus Notes to files, that was the approach I used. I'm not aware of a good, monolithic way to store emails and a corresponding folder structure which can be read from more than one email client, unless you use your own IMAP server.