lib/fat_free_crm/mail_processor/dropbox.rb
# Checks the email to detect keyword on the first line.
#--------------------------------------------------------------------------------------
Checks the email to detect keyword on the first line.
Checks the email to detect keyword on the first line .
def with_explicit_keyword(email)
        first_line = plain_text_body(email).split("\n").first
        if first_line =~ %r|(#{KEYWORDS.join('|')})[^a-zA-Z0-9]+(.+)$|i
          yield $1.capitalize, $2.strip
        end
      end
def with_explicit_keyword ( email ) first_line = plain_text_body ( email ) . split ( "\n" ) . first if first_line =~ %r| ( #{ KEYWORDS . join ( '|' ) } )[^a-zA-Z0-9]+(.+)$ |i yield $1 . capitalize , $2 . strip end end
Checks the email to detect keyword on the first line.
Checks the email to detect keyword on the first line .
email
<not_specific>