The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Mail::Maildir::Is::A - Checks if a directory is a mail directory or not.

VERSION

Version 0.0.0

METHODS

new

Initiates the object.

    my $foo=Mail::Maildir::Is::A->new;

isAmaildir

This returns true or false based on if specified directory is a maildir or not.

    my $returned=$foo->isAmaildir('/somedir');
    if($foo->error){
        warn('Error:'.$self->error.':'.$self->errorString);
    }
    if(! $returned){
        print "It is a maildir."\n";
    }

ERROR HANDLING METHODS

error

Returns the current error code and true if there is an error.

If there is no error, undef is returned.

    my $error=$foo->error;
    if($error){
        print 'error code: '.$error."\n";
    }

errorblank

This blanks the error storage and is only meant for internal usage.

It does the following.

    $zconf->{error}=undef;
    $zconf->{errorString}="";

ERROR CODES

1

The item does not exist.

2

The item is not a directory.

3

No directory specified.

AUTHOR

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

Please report any bugs or feature requests to bug-mail-maildir-is-a at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Mail-Maildir-Is-A. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Mail::Maildir::Is::A

You can also look for information at:

ACKNOWLEDGEMENTS

LICENSE AND COPYRIGHT

Copyright 2010 Zane C. Bowers.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.