Permalink
Browse files

Merge pull request #27 from inaka/master

RFC allows up to 254 character from addresses
  • Loading branch information...
2 parents 3b5f416 + c44d96c commit f5eed6a0823836b618135f6e84cbcd7deb563f34 @Vagabond committed Aug 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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) > 320 ->
error; % too long
parse_encoded_address(<<"\\", Tail/binary>>, Acc, Flags) ->
<<H, NewTail/binary>> = Tail,

0 comments on commit f5eed6a

Please sign in to comment.