I've tried all of the following to get email retrieval, parsing, and
saving to the DB working properly in rails:
. . .none of them worked 100%. For the most part, I've been able to
retrieve the files and save them in their entirety locally to disk.
However, if I even think of using ActionMailer to then parse and
handle the file, things go haywire. I receive "end of file" errors
and all kinds of other things depending on different 'tweaks'.
In my mind it should be as simple as the semi-demi-sorta-pseudo-code
class myclass << InheritsFrom
mail = popchecker(user,pass,server)
foreach mail do |m|
#process email and attachments for DB
#save a copy locally
So, my question is, has anyone here successfully incorporated POP3
email support into their Rails apps, and if so how?
FYI, I'd rather handle all mail internally; not use something like
'getmail' to pass it from outside.
Thanks in advance!