I am running a ruby script ( 1.9.2, w Rails3 gems)
this script reads 2 different pop3 mailboxes then send back emails to
senders with a specific link in the email body...
for testing I send one email in each mailboxes
firstname.lastname@example.org and email@example.com
running the script in the server console is fine .... the 2 mailboxes
are read, and each sender receives back the corresponding responses
then I created a cron task to run THIS same script every 5 min
/5 * * * * bash -c "source /usr/local/rvm/scripts/rvm && rvm
gemset use rails3 && /usr/bin/env ruby /var/www/../current/jmy_app/
the script is launched correctly, my info log shows the notifier being
processed for each email as above , BUT only the first email response
as the script runs well in the console, I don't know where to start
looking for some weird coding ...
I have the following setup :
- joinus_email folder
- notifier folder
I defined the ActionMailer::Base.smtp_settings in the script
joinus_email.rb... from which I am building the emails and delivering
mail = Notifier.joinus_email(..)
any clue welcome ..