Include hostname in message id (ensure unicity when working on a network file system).

This commit is contained in:
Vincent Richard 2009-06-21 21:19:00 +00:00
parent 6e1acbf794
commit 0537a5eb8e

View File

@ -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()));
}