changes in mail listeners related to $this error