lib/fat_free_crm/mail_processor/dropbox.rb
# Checks the email to detect assets on to/bcc addresses
#--------------------------------------------------------------------------------------
Checks the email to detect assets on to/bcc addresses
Checks the email to detect assets on to / bcc addresses
def with_recipients(email, options = {})
        recipients = []
        recipients += email.to_addrs unless email.to.blank?
        recipients += email.cc_addrs unless email.cc.blank?
        ignored_addresses = [ @settings[:address] ]
        if @settings[:address_aliases].is_a?(Array)
          ignored_addresses += @settings[:address_aliases]
        end
        recipients -= ignored_addresses
        recipients.each do |recipient|
          return true if yield recipient
        end
        false
      end
def with_recipients ( email , options = { } ) recipients = [ ] recipients += email . to_addrs unless email . to . blank? recipients += email . cc_addrs unless email . cc . blank? ignored_addresses = [ @settings [ :address ] ] if @settings [ :address_aliases ] . is_a? ( Array ) ignored_addresses += @settings [ :address_aliases ] end recipients -= ignored_addresses recipients . each do | recipient | return true if yield recipient end false end
Checks the email to detect assets on to/bcc addresses
Checks the email to detect assets on to / bcc addresses
# Ignore the dropbox email address, and any address aliases # Process each recipient until email has been attached
email
<not_specific>
options
<not_specific>