Include hostname in message id (ensure unicity when working on a network file system).
This commit is contained in:
parent
6e1acbf794
commit
0537a5eb8e
@ -25,6 +25,7 @@
|
||||
#include "vmime/net/maildir/maildirStore.hpp"
|
||||
|
||||
#include "vmime/utility/random.hpp"
|
||||
#include "vmime/platform.hpp"
|
||||
|
||||
#include "vmime/exception.hpp"
|
||||
|
||||
@ -153,6 +154,8 @@ const utility::file::path::component maildirUtils::generateId()
|
||||
oss << utility::random::getProcess();
|
||||
oss << ".";
|
||||
oss << utility::random::getString(6);
|
||||
oss << ".";
|
||||
oss << platform::getHandler()->getHostName();
|
||||
|
||||
return (utility::file::path::component(oss.str()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user