0
pop = Net::POP3.new mailhost
pop.start mailuser, mailpass
if pop.mails.empty?
puts "Mailbox empty."
else
pop.mails.each do |mail|
if mail.pop.has_attachments?
mail.pop.attachments.each do |attachment|
puts attachment.original_filename
end
end
end
end
은 undefined method 'has_attachments?' for #<String:0xb7cc4f7c>
이됩니다.ruby net/pop을 사용하여 POP3 첨부 파일을 분리하는 방법은 무엇입니까?
this example은 더 이상 작동하지 않습니까?
안녕하세요,이 작업을 수행 할 수 있었습니까? 나는 뭔가 simlair에서 일하고 있는데 message.head, message.blah를 할 수 있고 첨부 파일을 로컬 디렉토리에 다운로드하려한다는 것을 알고있다. TIA. – zee