lib/fat_free_crm/mail_processor/dropbox.rb
# Email processing pipeline: each steps gets executed if previous one returns false.
#--------------------------------------------------------------------------------------
Email processing pipeline: each steps gets executed if previous one returns false.
Email processing pipeline : each steps gets executed if previous one returns false .
def process(uid, email)
        with_explicit_keyword(email) do |keyword, name|
          data = {"Type" => keyword, "Name" => name}
          find_or_create_and_attach(email, data)
        end and return
        with_recipients(email) do |recipient|
          find_and_attach(email, recipient)
        end and return
        with_forwarded_recipient(email) do |recipient|
          find_and_attach(email, recipient)
        end and return
        with_recipients(email) do |recipient|
          create_and_attach(email, recipient)
        end and return
        with_forwarded_recipient(email) do |recipient|
          create_and_attach(email, recipient)
        end
      end
def process ( uid , email ) with_explicit_keyword ( email ) do | keyword , name | data = { "Type" => keyword , "Name" => name } find_or_create_and_attach ( email , data ) end and return with_recipients ( email ) do | recipient | find_and_attach ( email , recipient ) end and return with_forwarded_recipient ( email ) do | recipient | find_and_attach ( email , recipient ) end and return with_recipients ( email ) do | recipient | create_and_attach ( email , recipient ) end and return with_forwarded_recipient ( email ) do | recipient | create_and_attach ( email , recipient ) end end
Email processing pipeline: each steps gets executed if previous one returns false.
Email processing pipeline : each steps gets executed if previous one returns false .
uid
<not_specific>
email
<not_specific>