I have a problem passing email with the Net::IMAP library to the Mail object defined using mikel/mail gem.
I get mail with:
data = imap.uid_fetch(1, "BODY[]")
but how can I put it in the Mail.read agreement later?
mail = Mail.read(data.to_s)
seems to get Errno::ENAMETOOLONG: File name too long . He understands the mailbox as a file name.
Any ideas?
source share