Skip to content

Instantly share code, notes, and snippets.

@tpanum
Created August 15, 2013 16:48
Show Gist options
  • Save tpanum/6242419 to your computer and use it in GitHub Desktop.
Save tpanum/6242419 to your computer and use it in GitHub Desktop.
Erlang R15B03 (erts-5.9.3.1) [source] [64-bit] [smp:2:2] [async-threads:0] [hipe] [kernel-poll:false] [dtrace]
Eshell V5.9.3.1 (abort with ^G)
1> {ok, Bin}=file:read_file("test2.eml").
{ok,<<"Return-Path: <[email protected]>\nX-Original-To: [email protected]\nDelivered-To: [email protected]\nReceiv"...>>}
2> mimemail:decode(Bin).
{<<"text">>,<<"plain">>,[],
[{<<"content-type-params">>,
[{<<"charset">>,<<"us-ascii">>}]},
{<<"disposition">>,<<"inline">>},
{<<"disposition-params">>,[]}],
<<"Return-Path: <[email protected]>\nX-Original-To: [email protected]\nDelivered-To: thomas@bact"...>>}
3>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment