L
luke
Hi,
I'm trying to write a Ruby script that will connect to my mail server
using IMAP, check for new email, and if an email has an attachment then
it will save the attachment into a certain local directory. And that's
it! I don't actually care about the contents of the email. This will be
simply a way of collecting files that are sent as attachments to a
certain email address.
I've been looking around for 2 nights and so far haven't been able to
find something myself that demonstrates how to retrieve attachments
using the Net::IMAP library, or using something that works into that
library.
I have my code to the point where it connects successfully to my mail
server, and then prints some subject lines just to say email is being
detected. I've tried googling, checking script libraries and reading
through the API docs for the standard library to no avail. Can someone
give me some pointers?
Thanks
Luke
I'm trying to write a Ruby script that will connect to my mail server
using IMAP, check for new email, and if an email has an attachment then
it will save the attachment into a certain local directory. And that's
it! I don't actually care about the contents of the email. This will be
simply a way of collecting files that are sent as attachments to a
certain email address.
I've been looking around for 2 nights and so far haven't been able to
find something myself that demonstrates how to retrieve attachments
using the Net::IMAP library, or using something that works into that
library.
I have my code to the point where it connects successfully to my mail
server, and then prints some subject lines just to say email is being
detected. I've tried googling, checking script libraries and reading
through the API docs for the standard library to no avail. Can someone
give me some pointers?
Thanks
Luke