0001-Fixed-setting-issue-attributes-by-mail-use-only-the-.patch

Alex Shulgin, 2011-07-07 07:50

Download (850 Bytes)

View differences:

app/models/mail_handler.rb
246 246
    keys.reject! {|k| k.blank?}
247 247
    keys.collect! {|k| Regexp.escape(k)}
248 248
    format ||= '.+'
249
    text.gsub!(/^(#{keys.join('|')})[ \t]*:[ \t]*(#{format})\s*$/i, '')
249
    text.sub!(/^(#{keys.join('|')})[ \t]*:[ \t]*(#{format})\s*$/i, '')
250 250
    $2 && $2.strip
251 251
  end
252 252

  
253
-