Extract the sender, recipient, and subject from a raw email header string.
Constraints
Example
>>> parse_email_header('From: alice@example.com\nTo: bob@example.com\nSubject: Hello')
{'from': 'alice@example.com', 'to': 'bob@example.com', 'subject': 'Hello'}
>>> parse_email_header('SUBJECT: Meeting\nFROM: jane@x.io\nTO: team@x.io\nDate: today')
{'from': 'jane@x.io', 'to': 'team@x.io', 'subject': 'Meeting'}
Recent Submissions
No submissions yet — hit Run Tests to try!
Hints