Improve mail logging.

* Add additional log messages listing all cached messages before
  and after applying the condition.