summaryrefslogtreecommitdiffstats
path: root/examples/maildirresource/maildirresource.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/maildirresource/maildirresource.cpp')
-rw-r--r--examples/maildirresource/maildirresource.cpp2
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.");