From 0537a5eb8e10f094a9c3daacfb73dd6ded251ca4 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Sun, 21 Jun 2009 21:19:00 +0000 Subject: [PATCH] Include hostname in message id (ensure unicity when working on a network file system). --- src/net/maildir/maildirUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/net/maildir/maildirUtils.cpp b/src/net/maildir/maildirUtils.cpp index 67d52fe6..13311a5f 100644 --- a/src/net/maildir/maildirUtils.cpp +++ b/src/net/maildir/maildirUtils.cpp @@ -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())); }