if (i4msg != null && i4msg.isGhost())
if (i4msg != null && i4msg.msgId != item.getId())
    private boolean handleCreates(Map<Integer, MailItem> created, AddedItems newItems) {        boolean selected = mSelectedFolder != null;        for (MailItem item : created.values()) {            if (item instanceof Tag)                cacheTag((Tag) item);            else if (!selected || item == null || item.getId() <= 0)                continue;            else if (!(item instanceof Message || item instanceof Contact))                continue;            else if (item.getFolderId() == mSelectedFolder.getId()) {                int msgId = item.getId();                // make sure this message hasn't already been detected in the folder                if (mSelectedFolder.getById(msgId) != null)                    continue;                ImapMessage i4msg = mSelectedFolder.getByImapId(item.getImapUid());                if (i4msg != null && i4msg.isGhost())                    mSelectedFolder.unghost(i4msg, item.getId());                else                    newItems.add(item);                ZimbraLog.imap.debug("  ** created (ntfn): " + msgId);            }        }        return true;    }