dovecot-2.0: mailbox_copy() now sets mail_save_context.copying=T...

dovecot at dovecot.org dovecot at dovecot.org
Sat Aug 29 00:01:46 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/9f5bbc4780a1
changeset: 9825:9f5bbc4780a1
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Aug 28 17:01:26 2009 -0400
description:
mailbox_copy() now sets mail_save_context.copying=TRUE.

diffstat:

2 files changed, 5 insertions(+)
src/lib-storage/mail-copy.c            |    2 ++
src/lib-storage/mail-storage-private.h |    3 +++

diffs (25 lines):

diff -r 7f05f59d4205 -r 9f5bbc4780a1 src/lib-storage/mail-copy.c
--- a/src/lib-storage/mail-copy.c	Fri Aug 28 16:50:39 2009 -0400
+++ b/src/lib-storage/mail-copy.c	Fri Aug 28 17:01:26 2009 -0400
@@ -11,6 +11,8 @@ int mail_storage_copy(struct mail_save_c
 	struct istream *input;
 	const char *from_envelope, *guid;
 	time_t received_date;
+
+	ctx->copying = TRUE;
 
 	/* we need to open the file in any case. caching metadata is unlikely
 	   to help anything. */
diff -r 7f05f59d4205 -r 9f5bbc4780a1 src/lib-storage/mail-storage-private.h
--- a/src/lib-storage/mail-storage-private.h	Fri Aug 28 16:50:39 2009 -0400
+++ b/src/lib-storage/mail-storage-private.h	Fri Aug 28 17:01:26 2009 -0400
@@ -396,6 +396,9 @@ struct mail_save_context {
 	uint32_t uid;
 	char *guid, *pop3_uidl, *from_envelope;
 	struct ostream *output;
+
+	/* we came here from mailbox_copy() */
+	unsigned int copying:1;
 };
 
 struct mailbox_sync_context {


More information about the dovecot-cvs mailing list