added flags to only check mail (-m) or only check urls (-u)