cleanup
functional style
prepare for mail notification support ... really needed? for system
without "mail" command ...