more mail processing functions