auto_sendmail: simple repeated entry

Only send a email for the first time when it comes to a repeated entry.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>