update to get mail content before set delete flag