Skip to content

Commit

Permalink
Merge pull request #60 from moorereason/iss58
Browse files Browse the repository at this point in the history
Add warning about unsupported inline MIME headers
  • Loading branch information
tierpod committed May 5, 2024
2 parents abf80ca + 81dfc48 commit 7b44ed5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/dmarc-report-converter/imap.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,13 @@ func extractAttachment(r io.Reader, inputDir string) (bool, error) {
if err == io.EOF {
break
} else if err != nil {
log.Printf("[ERROR] imap: can't read next part: %v, skip", err)
log.Printf("[ERROR] extractAttachment: can't read next part: %v, skip", err)
break
}

switch h := p.Header.(type) {
case *mail.InlineHeader:
log.Printf("[WARN] extractAttachment: inline MIME headers are not currently supported, skip")
case *mail.AttachmentHeader:
// this is an attachment
filename, err := h.Filename()
Expand Down

0 comments on commit 7b44ed5

Please sign in to comment.