Mercurial > dovecot > original-hg > dovecot-1.2
diff src/lib-storage/index/maildir/maildir-sync.c @ 3417:b0bdf32564b7 HEAD
Replaced ':' and ',' character usages with #defines, so they can be changed
easily if needed.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 09 Jun 2005 17:31:43 +0300 |
parents | 9c8220dfde7c |
children | 6f7ce690358e |
line wrap: on
line diff
--- a/src/lib-storage/index/maildir/maildir-sync.c Thu Jun 09 16:44:53 2005 +0300 +++ b/src/lib-storage/index/maildir/maildir-sync.c Thu Jun 09 17:31:43 2005 +0300 @@ -461,8 +461,9 @@ str_truncate(dest, 0); str_printfa(src, "%s/%s", ctx->new_dir, dp->d_name); str_printfa(dest, "%s/%s", ctx->cur_dir, dp->d_name); - if (strchr(dp->d_name, ':') == NULL) - str_append(dest, ":2,"); + if (strchr(dp->d_name, MAILDIR_INFO_SEP) == NULL) { + str_append(dest, MAILDIR_FLAGS_FULL_SEP); + } if (rename(str_c(src), str_c(dest)) == 0) { /* we moved it - it's \Recent for us */ ctx->mbox->dirty_cur_time = ioloop_time;