renamed sender_details to extract_sender_details for clarity