]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Renamed mail_save_context.copying to copying_via_save.
authorTimo Sirainen <tss@iki.fi>
Fri, 6 Jan 2012 13:17:20 +0000 (15:17 +0200)
committerTimo Sirainen <tss@iki.fi>
Fri, 6 Jan 2012 13:17:20 +0000 (15:17 +0200)
src/lib-storage/mail-copy.c
src/lib-storage/mail-storage-private.h
src/plugins/notify/notify-storage.c
src/plugins/quota/quota-storage.c

index 57fa7daef21da33dd88d37815a59df5eded8857e..0f2155d5da3a91295012374d39774175bc2f7a9a 100644 (file)
@@ -29,7 +29,7 @@ mail_storage_try_copy(struct mail_save_context **_ctx, struct mail *mail)
        const char *from_envelope, *guid;
        time_t received_date;
 
-       ctx->copying = TRUE;
+       ctx->copying_via_save = TRUE;
 
        /* we need to open the file in any case. caching metadata is unlikely
           to help anything. */
index e0e2f833a6c4b292d1689e983f1a1f66b9d624d9..72152bcc834860303f9931e9fc318649c7eb01a3 100644 (file)
@@ -447,8 +447,8 @@ struct mail_save_context {
        bool (*part_is_attachment)(struct mail_save_context *ctx,
                                   const struct mail_attachment_part *part);
 
-       /* we came here from mailbox_copy() */
-       unsigned int copying:1;
+       /* mail was copied using saving */
+       unsigned int copying_via_save:1;
 };
 
 struct mailbox_sync_context {
index da1eade62d2bd07ec825a3336aa720dfa3482607..bd90303f5937a024a93d31138e905a9ce56833ff 100644 (file)
@@ -128,7 +128,7 @@ notify_save_finish(struct mail_save_context *ctx)
 {
        union mailbox_module_context *lbox =
                NOTIFY_CONTEXT(ctx->transaction->box);
-       struct mail *dest_mail = ctx->copying ? NULL : ctx->dest_mail;
+       struct mail *dest_mail = ctx->copying_via_save ? NULL : ctx->dest_mail;
 
        if (lbox->super.save_finish(ctx) < 0)
                return -1;
index fe7f8ebc3a4acebd862da8a4206a7b2a33a90069..aa8228d0a0684b88bbfdb5028d4db28d329a0f5c 100644 (file)
@@ -171,7 +171,7 @@ quota_copy(struct mail_save_context *ctx, struct mail *mail)
                return -1;
 
        /* if copying used saving internally, we already checked the quota */
-       return ctx->copying ? 0 : quota_check(t, ctx->dest_mail);
+       return ctx->copying_via_save ? 0 : quota_check(t, ctx->dest_mail);
 }
 
 static int