diff options
| author | Vincent Richard <[email protected]> | 2004-12-21 09:04:19 +0000 |
|---|---|---|
| committer | Vincent Richard <[email protected]> | 2004-12-21 09:04:19 +0000 |
| commit | 706c270073daeb2b303ab34b7c5c9862da62b1ae (patch) | |
| tree | cc081dd5ac849d27ea825b6ddc958c76818ab24a /src/messaging/maildirUtils.hpp | |
| parent | Added component::getChildComponents() function. (diff) | |
| download | vmime-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.hpp | 6 |
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; |
