Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
adriankumpf committed May 18, 2022
1 parent 868f89d commit 3414ad3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/mail_parser.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ defmodule MailParser do
alias __MODULE__.Attachment

@doc """
Parses string containing a RFC5322 raw message and extracts all nested
Parses a string containing a RFC5322 raw message and extracts all nested
attachments.
A best-effort is made to parse the message and if no headers are found
`:error` is returned.
### Example
iex> MailParser.extract_nested_attachments(raw_message)
{:ok, [%MailParser.Attachment{name: "example.pdf", content_type: "application/pdf", content_bytes: "..."}]}
iex> MailParser.extract_nested_attachments(raw_message)
{:ok, [%MailParser.Attachment{name: "example.pdf", content_type: "application/pdf", content_bytes: "..."}]}
"""
@spec extract_nested_attachments(String.t()) :: {:ok, [Attachment.t()]} | :error
Expand Down

0 comments on commit 3414ad3

Please sign in to comment.