[Akonadi] [Bug 357179] Email remains in inbox after moving it to a folder

Sandro Knauß via KDE Bugzilla bugzilla_noreply at kde.org
Fri Jan 22 19:25:22 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=357179

--- Comment #4 from Sandro Knauß <sknauss at kde.org> ---
I had now a gdb session with Daniel and we could found the base problem, that
gentBasePrivate::itemMoved is not triggerd in that specific case. The reason,
why it is not triggerd is that the if in ResourceBasePrivate::itemMoved l294:

  void itemMoved(const Akonadi::Item &item, const Akonadi::Collection &source,
const Akonadi::Collection &destination) Q_DECL_OVERRIDE {
        if (item.remoteId().isEmpty() || destination.remoteId().isEmpty() ||
destination == source)
        {
            changeProcessed();
            return;
        }
        AgentBasePrivate::itemMoved(item, source, destination);
  }
in our case:
item.remoteId().isEmpty() = false
destination.remoteId().isEmpty() = true
(destination == source) = false

so we exit the job directy and do not forward the itemMoved to AgentBase so the
resource itself can't move the files at all.

As daniel discribe above, the dest collection do not have a local folder
representation and is only a "virtual" folder in akonadi. And because the
(maildir) resource don't get the notification at all, so it can't fix the
problem.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Kdepim-bugs mailing list