diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-08 22:57:41 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-08 23:00:00 +0200 |
commit | 5162328cd8edba85017185ef5864b2b65f6f18ed (patch) | |
tree | 371256e6bf76e1603e2fe08e1c04bff33ecd604c /examples/maildirresource/libmaildir/maildir.cpp | |
parent | 7744e638441fe93ee28bab80c2339e12a8f318d4 (diff) | |
download | sink-5162328cd8edba85017185ef5864b2b65f6f18ed.tar.gz sink-5162328cd8edba85017185ef5864b2b65f6f18ed.zip |
Move mimeMessage in preprocessor, and directly move to cur.
We use the maildir as our internal storage, so the message needs to be
moved immediately and not only with changereplay.
Diffstat (limited to 'examples/maildirresource/libmaildir/maildir.cpp')
-rw-r--r-- | examples/maildirresource/libmaildir/maildir.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/maildirresource/libmaildir/maildir.cpp b/examples/maildirresource/libmaildir/maildir.cpp index 670d4ca..1018b4a 100644 --- a/examples/maildirresource/libmaildir/maildir.cpp +++ b/examples/maildirresource/libmaildir/maildir.cpp | |||
@@ -729,8 +729,8 @@ QString Maildir::addEntryFromPath(const QString& path) | |||
729 | return QString(); | 729 | return QString(); |
730 | } | 730 | } |
731 | 731 | ||
732 | if (!f.rename(finalKey)) { | 732 | if (!f.rename(curKey)) { |
733 | qWarning() << "Maildir: Failed to add entry: " << finalKey << "! Error: " << f.errorString(); | 733 | qWarning() << "Maildir: Failed to add entry: " << curKey << "! Error: " << f.errorString(); |
734 | // d->lastError = i18n("Failed to create mail file %1. The error was: %2" , finalKey, f.errorString()); | 734 | // d->lastError = i18n("Failed to create mail file %1. The error was: %2" , finalKey, f.errorString()); |
735 | return QString(); | 735 | return QString(); |
736 | } | 736 | } |