Skip to content

Commit

Permalink
lib-storage: Remove mailbox_transaction_context.nontransactional_changes
Browse files Browse the repository at this point in the history
Nothing cares about them. It was only set for POP3 UIDL change with
Maildir. In theory dsync replication would want to replicate such a change,
but it doesn't actually support changing UIDLs for existing mails. Other
mailbox formats don't support it anyway.
  • Loading branch information
sirainen authored and cmouse committed Feb 13, 2018
1 parent 6a0855a commit 0849509
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/lib-storage/index/index-transaction.c
Expand Up @@ -32,8 +32,6 @@ index_transaction_index_commit(struct mail_index_transaction *index_trans,
int ret = 0;

index_pop3_uidl_update_exists_finish(t);
if (t->nontransactional_changes)
t->changes->changed = TRUE;

if (t->attr_pvt_trans != NULL) {
if (dict_transaction_commit(&t->attr_pvt_trans, &error) < 0) {
Expand Down
1 change: 0 additions & 1 deletion src/lib-storage/index/maildir/maildir-mail.c
Expand Up @@ -629,7 +629,6 @@ static void maildir_update_pop3_uidl(struct mail *_mail, const char *uidl)
uidl = "";
}

_mail->transaction->nontransactional_changes = TRUE;
maildir_uidlist_set_ext(mbox->uidlist, _mail->uid,
MAILDIR_UIDLIST_REC_EXT_POP3_UIDL, uidl);
}
Expand Down
2 changes: 0 additions & 2 deletions src/lib-storage/mail-storage-private.h
Expand Up @@ -623,8 +623,6 @@ struct mailbox_transaction_context {
struct mailbox_transaction_stats stats;
/* Set to TRUE to update stats_* fields */
bool stats_track:1;
/* We've done some non-transactional (e.g. dovecot-uidlist updates) */
bool nontransactional_changes:1;
};

union mail_search_module_context {
Expand Down

0 comments on commit 0849509

Please sign in to comment.