Skip to content

Message#attachments should count up singlepart attachment file. #1143

Open
@kirikak2

Description

@kirikak2

In singlepart mail with attachment file, Mail library cannot count attachment file.

This is a sample case.

mail = Mail.new(File.read("spec/fixtures/emails/attachment_emails/attachment_only_email.eml"))
mail.attachments.count
=> 0

I expect mail.attachments.count retuns 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions