View Source Pop3mail.Body (pop3mail v1.5.0)

Decode and store mail body

Summary

Functions

Decode multipart content, base64, quoted-printables

Store all found body parts on filesystem

Store one part on filesystem

Functions

Link to this function

decode_body(body_text, content_type, encoding, disposition)

View Source
@spec decode_body(String.t(), String.t(), String.t(), String.t()) :: [
  Pop3mail.Part.t()
]

Decode multipart content, base64, quoted-printables

Link to this function

store_multiparts(multipart_part_list, dirname)

View Source
@spec store_multiparts([Pop3mail.Part.t()], String.t()) :: [
  {:ok, String.t()} | {:error, atom(), String.t()}
]

Store all found body parts on filesystem

Link to this function

store_part(multipart_part, base_dir)

View Source
@spec store_part(Pop3mail.Part.t(), String.t()) ::
  {:ok, String.t()} | {:error, atom(), String.t()}

Store one part on filesystem