Updated base processor to include subject_function

Changed email_function to attribute_function as a more generic alternative.