diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-10 15:28:06 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-10 15:28:06 +0100 |
commit | 8dfbfdddfec1bfe0e7db6c4752fcecf3293e292a (patch) | |
tree | f443da956d9fee8ef4288ed45246fcf81faf9467 /examples/dummyresource | |
parent | 5f0352dadc7660ddfef2add355276bcc94f76bc2 (diff) | |
download | sink-8dfbfdddfec1bfe0e7db6c4752fcecf3293e292a.tar.gz sink-8dfbfdddfec1bfe0e7db6c4752fcecf3293e292a.zip |
Add something random to subject, so the mails are easy to differentiate
Diffstat (limited to 'examples/dummyresource')
-rw-r--r-- | examples/dummyresource/dummystore.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/dummyresource/dummystore.cpp b/examples/dummyresource/dummystore.cpp index e948475..78d2aa6 100644 --- a/examples/dummyresource/dummystore.cpp +++ b/examples/dummyresource/dummystore.cpp | |||
@@ -20,6 +20,7 @@ | |||
20 | 20 | ||
21 | #include <QString> | 21 | #include <QString> |
22 | #include <QDateTime> | 22 | #include <QDateTime> |
23 | #include <QUuid> | ||
23 | 24 | ||
24 | static QMap<QString, QVariant> createEvent(int i) | 25 | static QMap<QString, QVariant> createEvent(int i) |
25 | { | 26 | { |
@@ -60,7 +61,7 @@ QMap<QString, QMap<QString, QVariant> > DummyStore::populateMails() | |||
60 | { | 61 | { |
61 | QMap<QString, QMap<QString, QVariant>> content; | 62 | QMap<QString, QMap<QString, QVariant>> content; |
62 | for (const auto &parentFolder : mFolders.keys()) { | 63 | for (const auto &parentFolder : mFolders.keys()) { |
63 | addMail(content, "Hello World!", QDateTime::currentDateTimeUtc(), "John Doe", "doe@example.com", true, false, parentFolder.toUtf8()); | 64 | addMail(content, "Hello World! " + QUuid::createUuid().toByteArray(), QDateTime::currentDateTimeUtc(), "John Doe", "doe@example.com", true, false, parentFolder.toUtf8()); |
64 | } | 65 | } |
65 | return content; | 66 | return content; |
66 | } | 67 | } |