ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

extensible-mail-handler.patch

Yuki Sonoda, 2011-02-10 08:02 am

Download (913 Bytes)

 
b/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