check database state only in some cli functions
don't mail if a sync isn't running yet
skip resolving messages we don't have a record of