Revert "Update to match the imap library's new-ish way of detecting non-existing messages."

This reverts commit bfa50e32fd49dd98d5144cdd73e3049b98de5928.
Revert "CHANGES"

This reverts commit daabdf5da8e4a8c7e6469b84941e84d57da548b8.