Why not adopt me?
This distribution is up for adoption!
If you're interested then please contact the PAUSE module admins via
email.
NAME
Email::FolderType - determine the type of a mail folder
SYNOPSIS
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'
DESCRIPTION
Provides a utility subroutine for detecting the type of a given mail folder.
SUBROUTINES
folder_type <path>
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
.
AUTHOR
Simon Wistow <simon@thegestalt.org>
COPYING
(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.