1
0
mirror of https://github.com/djcb/mu.git synced 2024-06-21 06:56:48 +02:00

Fix message file creation

Make sure we 0-pad the numeric parts in message file names; this was
breaking some unit test.
This commit is contained in:
djcb 2015-11-18 09:50:36 +02:00
parent dd71cf8003
commit 539bd9be19

View File

@ -760,13 +760,13 @@ get_new_basename (void)
now = time(NULL);
return g_strdup_printf ("%u.%8x%8x.%s",
return g_strdup_printf ("%u.%08x%08x.%s",
(guint)now,
g_random_int(),
(gint32)g_get_monotonic_time (),
hostname);
}
g
char*
mu_maildir_get_new_path (const char *oldpath, const char *new_mdir,