Handle Folders with Mail::Folder
Once you’ve begun downloading and reading your mail from a POP server, you might want to save or categorize your messages into folders, which allow you to add, delete, save, and move messages easily. You can do this with Mail::Folder, which was written by Kevin Johnson as an object-oriented, folder-independent interface to mail folders. Mail::Folder supports a number of mailbox formats with the following interfaces:
- Mail::Folder::Emaul
A folder interface somewhat similar to MH.
- Mail::Folder::Maildir
An interface to maildir folders.
- Mail::Folder::Mbox
Standard Unix mailbox format.
- Mail::Folder::NNTP
The beginnings of an interface to NNTP. Not all the methods are implemented yet.
If you are interested in writing a folder interface, see the documentation for the module. The documentation explains the concepts and issues involved and describes some of the methods you may need to override.
The following methods are defined for Mail::Folder.
Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.