From 6f4653aa87c6298c3b2699b5402a82c2a0c50164 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 22 Mar 2004 16:51:10 +0000 Subject: [PATCH] unscrew file naming scheme --- src/sync.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sync.c b/src/sync.c index 2ee00b2..8c9a3e4 100644 --- a/src/sync.c +++ b/src/sync.c @@ -34,7 +34,7 @@ #include #include -static unsigned int MaildirCount = 0; +static unsigned int MaildirCount; message_t * find_msg (message_t * list, unsigned int uid) @@ -330,8 +330,8 @@ sync_mailbox (mailbox_t * mbox, imap_t * imap, int flags, for (;;) { /* create new file */ - snprintf (path, sizeof (path), "%s/tmp/%ld_%d.%d.%s%s", - mbox->path, time (0), MaildirCount++, getpid (), + snprintf (path, sizeof (path), "%s/tmp/%ld.%d_%d.%s%s", + mbox->path, time (0), getpid (), MaildirCount++, Hostname, suffix); if ((fd = open (path, O_WRONLY | O_CREAT | O_EXCL, 0600)) > 0)