The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Email::FolderType - return 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'       

SUBROUTINES

folder_type <file path>

Automatically detects what type of mail archive the file path is and returns the name.

DESCRIPTION

Provides a utility module for detecting the type of a given mail box.

BUGS

Currently only handles mbox and maildir

AUTHOR

Simon Wistow <simon@thegestalt.org>

COPYING

(C)opyright 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

SEE ALSO

Email::LocalDelivery, Email::Folder