Added static is_maildir function.
Added CFile primitives.

These are straight-copied from lumail.
Updated.