anchor.diff: +%% -*- coding: utf-8 -*-
   -module(eaws_util).
   -export([   calc_sign/2,
               formatted_params/1,
  
positive.code: 
  to_list(X) when is_list(X) -> X;
  to_list(X) when is_binary(X) -> binary_to_list(X).
  
negative.code:   "Content-Disposition: attachment; filename=\"", FileName/binary, "\"; size=", (to_binary(byte_size(Content)))/binary, "\r\n",
    "Content-Transfer-Encoding: base64\r\n\r\n",
    %% Set Content
    (b64encode(Encoded, Content))/binary,
    "\r\n"
    >>.
  
  b64encode(<<"base64">>, Content) -> Content;
  b64encode(_, Content) -> base64:encode(Content).
  
  gen_message_id() ->
    <<"<", (unique(8))/binary,
  