List of mail message to datatable

how to convert List of mail message to datatable

i.e

convert the output from imap and convert to datatable

can you be more clear means expected result.