Skip to content
Browse files

commented out puts for daemon

  • Loading branch information...
1 parent 08fc6ee commit 3fa613c53ad609d6ea3544e3143298d2fb531689 @chap committed Aug 23, 2009
Showing with 5 additions and 5 deletions.
  1. +2 −2 app/models/notifier.rb
  2. +3 −3 vendor/plugins/fetcher/lib/fetcher/imap.rb
View
4 app/models/notifier.rb
@@ -5,15 +5,15 @@ def welcome(user)
subject '[PhotoBagel] Welcome to PhotoBagel'
recipients user.full_email
from 'chap@photobagel.com'
- bcc 'chap@photobagel.com'
+ bcc 'chap@photobagel.com'
body :user => user
end
def duplicate(user, photo)
subject '[PhotoBagel] You already sent us a photo for this day.'
recipients user.full_email
from 'chap@photobagel.com'
- bcc 'chap@photobagel.com'
+ bcc 'chap@photobagel.com'
body :user => user,
:photo => photo
end
View
6 vendor/plugins/fetcher/lib/fetcher/imap.rb
@@ -36,16 +36,16 @@ def establish_connection
# Retrieve messages from server
def get_messages
- puts 'getting messages'
+ # puts 'getting messages'
@connection.select('INBOX')
@connection.uid_search(['ALL']).each do |uid|
msg = @connection.uid_fetch(uid,'RFC822').first.attr['RFC822']
begin
- puts 'processing message...'
+ # puts 'processing message...'
process_message(msg)
add_to_processed_folder(uid) if @processed_folder
rescue => ex
- puts "error: #{ex}"
+ # puts "error: #{ex}"
handle_bogus_message(msg)
end
# Mark message as deleted

0 comments on commit 3fa613c

Please sign in to comment.
Something went wrong with that request. Please try again.