diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-05 10:37:28 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-05 10:37:28 +0200 |
commit | ca354ec4e2b9bc35b7d97c41bec68cccf6a6c8c9 (patch) | |
tree | 416c7c3462cd0df4d8681fe0414cf543ef4c094e /examples/maildirresource/maildirresource.cpp | |
parent | c03743546aa97d697d99eaac854516b1aa1f072b (diff) | |
download | sink-ca354ec4e2b9bc35b7d97c41bec68cccf6a6c8c9.tar.gz sink-ca354ec4e2b9bc35b7d97c41bec68cccf6a6c8c9.zip |
Create actual messages in maildir
Diffstat (limited to 'examples/maildirresource/maildirresource.cpp')
-rw-r--r-- | examples/maildirresource/maildirresource.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/maildirresource/maildirresource.cpp b/examples/maildirresource/maildirresource.cpp index 839b427..2ad45cd 100644 --- a/examples/maildirresource/maildirresource.cpp +++ b/examples/maildirresource/maildirresource.cpp | |||
@@ -290,7 +290,7 @@ KAsync::Job<void> MaildirResource::replay(Sink::Storage &synchronizationStore, c | |||
290 | } | 290 | } |
291 | //FIXME move the mime message from the mimeMessage property to the proper place. | 291 | //FIXME move the mime message from the mimeMessage property to the proper place. |
292 | Trace() << "Creating a new mail."; | 292 | Trace() << "Creating a new mail."; |
293 | const auto remoteId = maildir.addEntry("foobar"); | 293 | const auto remoteId = maildir.addEntryFromPath(mail.getProperty("mimeMessage").toString()); |
294 | if (remoteId.isEmpty()) { | 294 | if (remoteId.isEmpty()) { |
295 | Warning() << "Failed to create mail: " << remoteId; | 295 | Warning() << "Failed to create mail: " << remoteId; |
296 | return KAsync::error<void>(1, "Failed to create mail."); | 296 | return KAsync::error<void>(1, "Failed to create mail."); |