1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
use strict;
use warnings;
package Email::FolderType::Maildir;
{
$Email::FolderType::Maildir::VERSION = '0.814';
}
# ABSTRACT: class to help Email::FolderType recognise maildirs
sub match {
my $folder = shift;
return ($folder =~ m{[^/]/$} || -d "$folder/cur");
}
1;
__END__
=pod
=head1 NAME
Email::FolderType::Maildir - class to help Email::FolderType recognise maildirs
=head1 VERSION
version 0.814
=head1 AUTHOR
Simon Wistow <simon@thegestalt.org>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2005 by Simon Wistow.
This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
=cut
|