Project

General

Profile

Feature #11212 ยป add_copy_sender_to_ticket_option.diff

patch to add an option for this - Jan S, 2014-03-26 23:55

View differences:

app/models/mail_handler.rb 2014-03-26 23:13:53.366105100 +0100
issue.subject = '(no subject)'
end
issue.description = cleaned_up_text_body
# copy the sender email address to the ticket if option copy_sender_to_ticket is enabled
unless @@handler_options[:copy_sender_to_ticket]
sender_addr = email.from.to_a.first.to_s.strip
issue.description = "Reported by e-mail by [#{sender_addr}]:\n" + issue.description;
end
# add To and Cc as watchers before saving so the watchers can reply to Redmine
add_watchers(issue)
    (1-1/1)