[dovecot-cvs] dovecot/src/lib-storage mail-error.h, 1.1, 1.2 mail-storage-private.h, 1.56, 1.57 mail.c, 1.6, 1.7
tss at dovecot.org
tss at dovecot.org
Sun May 13 20:22:40 EEST 2007
Update of /var/lib/cvs/dovecot/src/lib-storage
In directory talvi:/tmp/cvs-serv21368/lib-storage
Modified Files:
mail-error.h mail-storage-private.h mail.c
Log Message:
Added MAIL_ERROR_EXPUNGED. Set the error whenever expunged message is tried
to be accessed.
Index: mail-error.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-error.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- mail-error.h 13 May 2007 17:10:49 -0000 1.1
+++ mail-error.h 13 May 2007 17:22:38 -0000 1.2
@@ -27,7 +27,9 @@
/* Out of disk space or quota */
MAIL_ERROR_NOSPACE,
/* Item (eg. mailbox) doesn't exist or it's not visible to us */
- MAIL_ERROR_NOTFOUND
+ MAIL_ERROR_NOTFOUND,
+ /* Tried to access an expunged message */
+ MAIL_ERROR_EXPUNGED
};
/* Convert errno to mail_error and an error string. Returns TRUE if successful,
Index: mail-storage-private.h
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail-storage-private.h,v
retrieving revision 1.56
retrieving revision 1.57
diff -u -d -r1.56 -r1.57
--- mail-storage-private.h 13 May 2007 17:10:49 -0000 1.56
+++ mail-storage-private.h 13 May 2007 17:22:38 -0000 1.57
@@ -293,6 +293,8 @@
void mail_storage_set_internal_error(struct mail_storage *storage);
bool mail_storage_set_error_from_errno(struct mail_storage *storage);
+void mail_set_expunged(struct mail *mail);
+
enum mailbox_list_flags
mail_storage_get_list_flags(enum mail_storage_flags storage_flags);
Index: mail.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/lib-storage/mail.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- mail.c 29 Jun 2006 11:08:50 -0000 1.6
+++ mail.c 13 May 2007 17:22:38 -0000 1.7
@@ -150,3 +150,10 @@
return p->v.expunge(mail);
}
+
+void mail_set_expunged(struct mail *mail)
+{
+ mail_storage_set_error(mail->box->storage, MAIL_ERROR_EXPUNGED,
+ "Message was expunged");
+ mail->expunged = TRUE;
+}
More information about the dovecot-cvs
mailing list