* src/folder-events.cpp: Search via searchMailsByUUID and use first
mail found if getMailByUUID fails
--
For mails that don't have a GPGOL_UID property get_unique_id returns
the Message-ID and no longer null. Calling getMailByUUID will fail. In
thats case we fallback to calling the slower searchMailsByUUID as that
will call get_unique_id for each mail, so it finds those mails via the
Message-ID and moving works again.
GnuPG-Bug-Id: 7712
}
Mail *mail = Mail::getMailForUUID (uid);
+ if (!mail)
+ {
+ auto retV = Mail::searchMailsByUUID(uid);
+ if (!retV.empty())
+ {
+ mail = retV.front();
+ }
+ else
+ {
+ log_debug ("%s:%s: Failed to find mail %p in map.",
+ SRCNAME, __func__, mailitem);
+ }
+ TRACEPOINT;
+ }
+ TRACEPOINT;
xfree (uid);
+
if (!mail)
{
log_error ("%s:%s: Failed to find mail for uuid",