aboutsummaryrefslogtreecommitdiffstats
path: root/src/messaging/maildirUtils.hpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2004-12-21 09:04:19 +0000
committerVincent Richard <[email protected]>2004-12-21 09:04:19 +0000
commit706c270073daeb2b303ab34b7c5c9862da62b1ae (patch)
treecc081dd5ac849d27ea825b6ddc958c76818ab24a /src/messaging/maildirUtils.hpp
parentAdded component::getChildComponents() function. (diff)
downloadvmime-706c270073daeb2b303ab34b7c5c9862da62b1ae.tar.gz
vmime-706c270073daeb2b303ab34b7c5c9862da62b1ae.zip
Fixed ',2' in filename/flags + fixed file renaming when moving from 'new' to 'cur' + new functions random::getString() and maildirUtils::generateId().
Diffstat (limited to 'src/messaging/maildirUtils.hpp')
-rw-r--r--src/messaging/maildirUtils.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/messaging/maildirUtils.hpp b/src/messaging/maildirUtils.hpp
index d65e5d3e..6d5f0628 100644
--- a/src/messaging/maildirUtils.hpp
+++ b/src/messaging/maildirUtils.hpp
@@ -128,6 +128,12 @@ public:
*/
static const utility::file::path::component buildFilename(const utility::file::path::component& id, const int flags);
+ /** Generate a new unique message identifier.
+ *
+ * @return unique message id
+ */
+ static const utility::file::path::component generateId();
+
private:
static const vmime::word TMP_DIR;