Patch #5027 » mailhandlerhook.diff
| app/models/mail_handler.rb (working copy) | ||
|---|---|---|
|
end
|
||
|
|
||
|
issue = Issue.new(:author => user, :project => project, :tracker => tracker, :category => category, :priority => priority)
|
||
|
Redmine::Hook.call_hook(:model_mail_handler_before_save, { :issue => issue, :mailhandler => self })
|
||
|
# check workflow
|
||
|
if status && issue.new_statuses_allowed_to(user).include?(status)
|
||
|
issue.status = status
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
|
||
|
public
|
||
|
def get_keyword(attr, options={})
|
||
|
@keywords ||= {}
|
||
|
if @keywords.has_key?(attr)
|
||
| ... | ... | |
|
end
|
||
|
end
|
||
|
|
||
|
private
|
||
|
# Returns the text/plain part of the email
|
||
|
# If not found (eg. HTML-only email), returns the body with tags removed
|
||
|
def plain_text_body
|
||