Renamed offset to g_maildir_offset.  Added concept of modes.