put <hr> after entry so mail doesn't start with an <hr>
store last version in temp file, to avoid sending duplicate emails