Project

General

Profile

Feature #8760 ยป 0001-Allow-to-set-issue-assignee-to-yourself-using-specia.patch

Alex Shulgin, 2011-07-07 11:56

View differences:

app/models/mail_handler.rb
356 356
  end
357 357

  
358 358
  def find_user_from_keyword(keyword)
359
    user = User.current if keyword.match(/^(<+\s*me\s*>+|\/me)$/i)
359 360
    user ||= User.find_by_mail(keyword)
360 361
    user ||= User.find_by_login(keyword)
361 362
    if user.nil? && keyword.match(/ /)
    (1-1/1)