        Cone©

MAIL::FOLDER::ISPARE(3x)

NAME
mail::folder::isParentOf - Check if another folder is this folder's subfolder

SYNOPSIS

#include <libmail/mail.H>
mail::folder *folder;
mail::folder *otherFolder;

bool flag=folder->isParentOf(otherFolder->getPath());

USAGE

This function returns an indication whether a folder's path (returned by mail::folder::getPath(3x)) refers to a subfolder of this folder.

RETURN CODES

The function returns true if the specified path refers to a subfolder of this folder.

    Note

    true is returned even if the path does not refer to a direct subfolder (a path referring to a subfolder of a subfolder will still result in a true return).

SEE ALSO

mail::folder::getPath(3x).

AUTHOR

Sam Varshavchik