
Originally Posted by
andrewm The only problem I'm seeing now is when you do an Empty Trash operation, or a direct delete operation, the message list is not updated. So currently you'd have to do a manual resync. Any idea what the fix for this would be?
The fix for the delete operation is in deleteMessageOnMailServer
Code:
$GLOBALS['log']->debug("INBOUNDEMAIL: MoveEmail to Deleted Items FAILED - trying hard delete.");
// JJW Added as delete; in-case the Trash Folder doesn't exist, we can just delete it.
// Uncomment if you preferr hard deletes
if(!imap_delete($this->conn, $uid, FT_UID)) {
$return = true;
// RAM update cache on fromFolder
$newOverviews = $this->getOverviewsFromCacheFile($uid, $this->mailbox, true);
$this->deleteCachedMessages($uid, $this->mailbox);
// RAM update cache on fromFolder
}
// JJW - End I can't as yet get the display to update on 'Empty Trash'
Bookmarks