An approach to email categorization and response generation