Displaying 1 result from an estimated 1 matches for "the_mail".
Did you mean:
othermail
2006 Aug 12
1
Problem with cron and a rails script
...t''
@lists = List.find(:all)
#loop through each list
@count = 0
while @count < @lists.length
@user = User.find(@lists[@count].user_id)
Net::POP3.start(@lists[@count].popserver, nil, @lists[@count].popuser,
@lists[@count].poppassword) do |pop|
pop.mails.each do |email|
@the_mail = Processing.receive(email.pop)
# processing of the mail
Processing.deliver(@new_mail)
email.delete
end
end
@count = @count + 1
end
The program itself was thrown together and willo be cleaned up after the
functionality is all in place.
Anyone have any ideas why I...