NAME

App::Zapzi::Folders - routines to access Zapzi folders

VERSION

version 0.012

DESCRIPTION

These routines allow access to Zapzi folders via the database.

METHODS

is_system_folder(name)

Returns true if the folder is used by the system eg Inbox.

get_folder(name)

Returns the database resultset for the folder called name.

add_folder(name)

Adds a new folder called name. Will return false if it exists already, otherwise the result of the DB add function.

delete_folder(name)

Deletes folder name if it exists. Returns the DB result status for the deletion.

folders_summary

Returns a ref to a hash where keys are the folder names and value is the article count.

AUTHOR

Rupert Lane <rupert@rupert-lane.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Rupert Lane.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.