Skip to content

Commit

Permalink
Merge pull request gen-smtp#27 from inaka/master
Browse files Browse the repository at this point in the history
RFC allows up to 254 character from addresses
  • Loading branch information
Vagabond committed Aug 21, 2012
2 parents 3b5f416 + c44d96c commit f5eed6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gen_smtp_server_session.erl
Expand Up @@ -635,7 +635,7 @@ parse_encoded_address(<<>>, Acc, {_Quotes, false}) ->
{list_to_binary(lists:reverse(Acc)), <<>>};
parse_encoded_address(<<>>, _Acc, {_Quotes, true}) ->
error; % began with angle brackets but didn't end with them
parse_encoded_address(_, Acc, _) when length(Acc) > 129 ->
parse_encoded_address(_, Acc, _) when length(Acc) > 320 ->
error; % too long
parse_encoded_address(<<"\\", Tail/binary>>, Acc, Flags) ->
<<H, NewTail/binary>> = Tail,
Expand Down

0 comments on commit f5eed6a

Please sign in to comment.