Minor updates.

  Use PATH_MAX globally.

  Added functions to count new/cur messages in a mailbox.