extensible-mail-handler.patch

Yuki Sonoda, 2011-02-10 08:20

Download (913 Bytes)

View differences:

app/models/mail_handler.rb
100 100
    elsif m = email.subject.match(MESSAGE_REPLY_SUBJECT_RE)
101 101
      receive_message_reply(m[1].to_i)
102 102
    else
103
      receive_issue
103
      dispatch_to_default
104 104
    end
105 105
  rescue ActiveRecord::RecordInvalid => e
106 106
    # TODO: send a email to the user
......
113 113
    logger.error "MailHandler: unauthorized attempt from #{user}" if logger
114 114
    false
115 115
  end
116

  
117
  def dispatch_to_default
118
    receive_issue
119
  end
116 120
  
117 121
  # Creates a new issue
118 122
  def receive_issue