dovecot: cleanup: s/maildir_uidlist_update()/maildir_uidlist_ref...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 9 05:44:42 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/126b74419f52
changeset: 5918:126b74419f52
user: Timo Sirainen <tss at iki.fi>
date: Sun Jul 08 23:19:14 2007 +0300
description:
cleanup: s/maildir_uidlist_update()/maildir_uidlist_refresh()/
diffstat:
4 files changed, 7 insertions(+), 7 deletions(-)
src/lib-storage/index/maildir/maildir-copy.c | 2 +-
src/lib-storage/index/maildir/maildir-sync.c | 2 +-
src/lib-storage/index/maildir/maildir-uidlist.c | 8 ++++----
src/lib-storage/index/maildir/maildir-uidlist.h | 2 +-
diffs (75 lines):
diff -r 525b449313a7 -r 126b74419f52 src/lib-storage/index/maildir/maildir-copy.c
--- a/src/lib-storage/index/maildir/maildir-copy.c Sun Jul 08 23:15:45 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-copy.c Sun Jul 08 23:19:14 2007 +0300
@@ -132,7 +132,7 @@ maildir_copy_hardlink(struct maildir_tra
src_fname = maildir_uidlist_lookup(src_mbox->uidlist,
mail->uid, &src_flags);
if (src_fname != NULL &&
- maildir_uidlist_update(dest_mbox->uidlist) >= 0 &&
+ maildir_uidlist_refresh(dest_mbox->uidlist) >= 0 &&
maildir_uidlist_get_full_filename(dest_mbox->uidlist,
src_fname) == NULL)
filename = t_strcut(src_fname, ':');
diff -r 525b449313a7 -r 126b74419f52 src/lib-storage/index/maildir/maildir-sync.c
--- a/src/lib-storage/index/maildir/maildir-sync.c Sun Jul 08 23:15:45 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-sync.c Sun Jul 08 23:19:14 2007 +0300
@@ -1027,7 +1027,7 @@ int maildir_sync_index(struct maildir_in
if (hdr->uid_validity == 0) {
/* get the initial uidvalidity */
- if (maildir_uidlist_update(mbox->uidlist) < 0)
+ if (maildir_uidlist_refresh(mbox->uidlist) < 0)
ret = -1;
uid_validity = maildir_uidlist_get_uid_validity(mbox->uidlist);
if (uid_validity == 0) {
diff -r 525b449313a7 -r 126b74419f52 src/lib-storage/index/maildir/maildir-uidlist.c
--- a/src/lib-storage/index/maildir/maildir-uidlist.c Sun Jul 08 23:15:45 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.c Sun Jul 08 23:19:14 2007 +0300
@@ -120,7 +120,7 @@ static int maildir_uidlist_lock_timeout(
uidlist->lock_count++;
/* make sure we have the latest changes before changing anything */
- if (maildir_uidlist_update(uidlist) < 0) {
+ if (maildir_uidlist_refresh(uidlist) < 0) {
maildir_uidlist_unlock(uidlist);
return -1;
}
@@ -396,7 +396,7 @@ maildir_uidlist_update_read(struct maild
return ret;
}
-int maildir_uidlist_update(struct maildir_uidlist *uidlist)
+int maildir_uidlist_refresh(struct maildir_uidlist *uidlist)
{
struct mail_storage *storage = &uidlist->mbox->storage->storage;
struct stat st;
@@ -443,7 +443,7 @@ maildir_uidlist_lookup_rec(struct maildi
if (!uidlist->initial_read) {
/* first time we need to read uidlist */
- if (maildir_uidlist_update(uidlist) < 0)
+ if (maildir_uidlist_refresh(uidlist) < 0)
return NULL;
}
@@ -765,7 +765,7 @@ int maildir_uidlist_sync_next_pre(struct
(ctx->partial || hash_lookup(ctx->files, filename) == NULL)) {
if (!ctx->uidlist->initial_read) {
/* first time reading the uidlist */
- if (maildir_uidlist_update(ctx->uidlist) < 0) {
+ if (maildir_uidlist_refresh(ctx->uidlist) < 0) {
ctx->failed = TRUE;
return -1;
}
diff -r 525b449313a7 -r 126b74419f52 src/lib-storage/index/maildir/maildir-uidlist.h
--- a/src/lib-storage/index/maildir/maildir-uidlist.h Sun Jul 08 23:15:45 2007 +0300
+++ b/src/lib-storage/index/maildir/maildir-uidlist.h Sun Jul 08 23:19:14 2007 +0300
@@ -27,7 +27,7 @@ void maildir_uidlist_deinit(struct maild
void maildir_uidlist_deinit(struct maildir_uidlist *uidlist);
/* Returns -1 if error, 0 if file is broken or lost, 1 if ok. */
-int maildir_uidlist_update(struct maildir_uidlist *uidlist);
+int maildir_uidlist_refresh(struct maildir_uidlist *uidlist);
/* Returns uidlist record for given filename, or NULL if not found. */
const char *
More information about the dovecot-cvs
mailing list