diff src/lib-storage/mail-storage.h @ 13:bb294faf7379 HEAD

"Critical errors" aren't displayed to users anymore, ie. anything that is not a predefined human readable error message is written into log file and user gets only "Internal error [timestamp]".
author Timo Sirainen <tss@iki.fi>
date Thu, 22 Aug 2002 17:50:16 +0300
parents 82b7de533f98
children a946ce1f09b7
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.h	Thu Aug 22 17:26:17 2002 +0300
+++ b/src/lib-storage/mail-storage.h	Thu Aug 22 17:50:16 2002 +0300
@@ -229,12 +229,14 @@
 MailStorage *mail_storage_create_default(void);
 MailStorage *mail_storage_create_with_data(const char *data);
 
-/* Set error message in storage. Critical errors are logged with syslog() */
+/* Set error message in storage. Critical errors are logged with i_error(),
+   but user sees only "internal error" message. */
 void mail_storage_clear_error(MailStorage *storage);
 void mail_storage_set_error(MailStorage *storage, const char *fmt, ...)
 	__attr_format__(2, 3);
 void mail_storage_set_critical(MailStorage *storage, const char *fmt, ...)
 	__attr_format__(2, 3);
+void mail_storage_set_internal_error(MailStorage *storage);
 
 const char *mail_storage_get_last_error(MailStorage *storage);
 int mail_storage_is_inconsistency_error(Mailbox *box);