Refactoring to support eml viewer.

The function used here no longer writes
data into passed in variable and instead
returns the data via a data-only type.

Change-Id: I114114748c68632fb6d1dd8f1e48e60369e80785
1 file changed