when removing a connection, use the same rules as expire: don't remove items that are starred, filed, or that you replied to. (cherry picked from commit 5d834696)