code: def receiveds_format(receiveds):
      
      log.debug("Receiveds for this email are parsed")
  
      output = []
      counter = Counter()
  
      for i in receiveds[::-1]:
          # Clean strings
          j = {k: v.strip() for k, v in i.items() if v}
  
          # Add hop
          j["hop"] = counter["hop"] + 1
  
          # Add UTC date
          if i.get("date"):
              # Modify date to manage strange header like:
              # "for <eboktor@romolo.com>; Tue, 7 Mar 2017 14:29:24 -0800",
              i["date"] = i["date"].split(";")[-1]
              try:
                  j["date_utc"], _ = convert_mail_date(i["date"])
              except TypeError:
                  j["date_utc"] = None
  
          # Add delay
          size = len(output)
          now = j.get("date_utc")
  
          if size and now:
              before = output[counter["hop"] - 1].get("date_utc")
              if before:
                  j["delay"] = (now - before).total_seconds()
              else:
                  j["delay"] = 0
          else:
              j["delay"] = 0
  
          # append result
          output.append(j)
  
          # new hop
          counter["hop"] += 1
      else:
          for i in output:
              if i.get("date_utc"):
                  i["date_utc"] = i["date_utc"].isoformat()
          else:
              return output
docs: Given a list of receiveds hop, adds metadata and reformat
      field values
  
      Args:
          receiveds (list): list of receiveds hops already formatted
  
      Returns:
          list of receiveds reformated and with new fields