San Francisco man gets five years in prison after assaulting postal worker