Feature #2852 » redmine-0.8.3-strip_quoted.patch
| redmine-0.8.3/app/models/mail_handler.rb 2009-04-18 19:27:44.000000000 -0400 | ||
|---|---|---|
|
raise UnauthorizedAction unless user.allowed_to?(:add_issue_notes, issue.project) || user.allowed_to?(:edit_issues, issue.project)
|
||
|
raise UnauthorizedAction unless status.nil? || user.allowed_to?(:edit_issues, issue.project)
|
||
|
# strip quoted text
|
||
|
note_details = plain_text_body
|
||
|
if /^(\>|:|\|)*\s*----- REPLY ABOVE THIS LINE/ =~ note_details
|
||
|
note_details = $`
|
||
|
end
|
||
|
# add the note
|
||
|
journal = issue.init_journal(user, plain_text_body)
|
||
|
journal = issue.init_journal(user, note_details)
|
||
|
add_attachments(issue)
|
||
|
# check workflow
|
||
|
if status && issue.new_statuses_allowed_to(user).include?(status)
|
||
| redmine-0.8.3/app/views/mailer/issue_add.text.html.rhtml 2009-04-19 11:06:21.000000000 -0400 | ||
|---|---|---|
|
----- REPLY ABOVE THIS LINE<br />
|
||
|
<%= l(:text_issue_added, "##{@issue.id}", @issue.author) %>
|
||
|
<hr />
|
||
|
<%= render :partial => "issue_text_html", :locals => { :issue => @issue, :issue_url => @issue_url } %>
|
||
| redmine-0.8.3/app/views/mailer/issue_add.text.plain.rhtml 2009-04-19 11:06:32.000000000 -0400 | ||
|---|---|---|
|
----- REPLY ABOVE THIS LINE
|
||
|
<%= l(:text_issue_added, "##{@issue.id}", @issue.author) %>
|
||
|
----------------------------------------
|
||
| redmine-0.8.3/app/views/mailer/issue_edit.text.html.rhtml 2009-04-19 11:07:00.000000000 -0400 | ||
|---|---|---|
|
----- REPLY ABOVE THIS LINE<br />
|
||
|
<%= l(:text_issue_updated, "##{@issue.id}", @journal.user) %>
|
||
|
<ul>
|
||
| redmine-0.8.3/app/views/mailer/issue_edit.text.plain.rhtml 2009-04-19 11:07:06.000000000 -0400 | ||
|---|---|---|
|
----- REPLY ABOVE THIS LINE
|
||
|
<%= l(:text_issue_updated, "##{@issue.id}", @journal.user) %>
|
||
|
<% for detail in @journal.details -%>
|
||