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.