HomePhabricator

Stop over-eager splitting of message prefix

Description

Stop over-eager splitting of message prefix

RFC2812 allows usernames to contain ! and . characters, which means
parse_from used to split those up into multiple elements, thus failing
the pattern match which expected the username to be a single string.

Instead of prematurely splitting up the string, use a regexp that allows
the username to contain any character but @.

Details

Provenance
Nicolas Hake <nh@nosebud.de>Authored on Jun 30 2016, 9:31 AM
hrefPushed on Dec 15 2022, 8:05 AM
Parents
rEXIRC07e0c265d3e9: Add tests for prefix handling
Branches
Unknown
Tags
Unknown

Event Timeline