Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/mail-storage.h @ 1642:72c6e848f583 HEAD
API changes: Don't keep variables in mailbox class.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sat, 26 Jul 2003 19:55:11 +0300 |
parents | db14aa8e2b5c |
children | bc76e08a9c9d |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.h Sat Jul 26 19:54:29 2003 +0300 +++ b/src/lib-storage/mail-storage.h Sat Jul 26 19:55:11 2003 +0300 @@ -229,6 +229,12 @@ struct mail_storage *storage; + /* Returns TRUE if mailbox is read-only. */ + int (*is_readonly)(struct mailbox *box); + + /* Returns TRUE if mailbox supports adding custom flags. */ + int (*allow_new_custom_flags)(struct mailbox *box); + /* Close the box. Returns FALSE if some cleanup errors occured, but the mailbox was closed anyway. */ int (*close)(struct mailbox *box); @@ -342,12 +348,6 @@ connection this would mean a forced disconnection since we can't do forced CLOSE. */ int (*is_inconsistency_error)(struct mailbox *box); - -/* public: */ - unsigned int readonly:1; - unsigned int allow_custom_flags:1; -/* private: */ - unsigned int inconsistent:1; }; struct mail { @@ -508,6 +508,5 @@ const char *mail_storage_get_last_error(struct mail_storage *storage, int *syntax); -int mail_storage_is_inconsistency_error(struct mailbox *box); #endif