Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

per rfc, addresses can be up to 254 characters

  • Loading branch information...
commit e9f273ac8fe6098c1016d6ec9f09166b952d7a7b 1 parent 3b5f416
@cbd cbd authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/gen_smtp_server_session.erl
View
2  src/gen_smtp_server_session.erl
@@ -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) > 254 ->
error; % too long
parse_encoded_address(<<"\\", Tail/binary>>, Acc, Flags) ->
<<H, NewTail/binary>> = Tail,
Please sign in to comment.
Something went wrong with that request. Please try again.