Email::FolderType - determine the type of a mail folder
use Email::FolderType qw(folder_type); print folder_type "~/mymbox"; # prints 'Mbox' print folder_type "~/a_maildir/"; # prints 'Maildir' print folder_type "some_mh/."; # prints 'MH' print folder_type "an_archive//"; # prints 'Ezmlm'
Provides a utility subroutine for detecting the type of a given mail folder.
Automatically detects what type of mail folder the path refers to and returns the name of that type.
It primarily bases the type on the suffix of the path given.
Suffix | Type --------+--------- / | Maildir /. | MH // | Ezmlm
In case of no known suffix it checks for a known file structure. If that doesn't work out it defaults to Mbox.
Mbox
Simon Wistow <simon@thegestalt.org>
(C) Copyright 2003, Simon Wistow
Distributed under the same terms as Perl itself.
This software is under no warranty and will probably ruin your life, kill your friends, burn your house and bring about the apocalypse.
Email::LocalDelivery, Email::Folder
To install Email::FolderType, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Email::FolderType
CPAN shell
perl -MCPAN -e shell install Email::FolderType
For more information on module installation, please visit the detailed CPAN module installation guide.