lib/bouncefetch/bbmail.rb
# try to find client candidates, not really sophisticated :)
try to find client candidates, not really sophisticated :)
try to find client candidates not really sophisticated : )
def candidate
      result = nil
      if header = app.cfg("identification_header").presence
        result = raw.body.to_s.match(/#{header}: (.*)/i)[1].strip rescue nil
      end
      result ||= raw.header["X-Failed-Recipients"].try(:value)
      result
    end
def candidate result = nil if header = app . cfg ( "identification_header" ) . presence result = raw . body . to_s . match ( / #{ header } : (.*) /i ) [ 1 ] . strip rescue nil end result ||= raw . header [ "X-Failed-Recipients" ] . try ( :value ) result end
try to find client candidates, not really sophisticated :)
try to find client candidates not really sophisticated : )