RFC 2795 implementation in Erlang