mirror of
https://github.com/djcb/mu.git
synced 2024-06-27 07:35:16 +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:
parent
dd71cf8003
commit
539bd9be19
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user