Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (20 sloc) 0.609 kb
<erl>
out(A) ->
case mail:check_session(A) of
{ok, Session} ->
L = yaws_api:parse_query(A),
Refresh =
case lists:keysearch("refresh",1,L) of
{value, _} -> true;
_ -> false
end,
Sort =
case lists:keysearch("sort",1,L) of
{value, {_,SortStr}} -> list_to_atom(SortStr);
_ -> undefined
end,
mail:list(Session, {Refresh, Sort});
Error ->
Error
end.
</erl>
Jump to Line
Something went wrong with that request. Please try again.