We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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.
1