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
177 177
      issue.subject = '(no subject)'
178 178
    end
179 179
    issue.description = cleaned_up_text_body
180
    # copy the sender email address to the ticket if option copy_sender_to_ticket is enabled
181
    unless @@handler_options[:copy_sender_to_ticket]
182
	sender_addr = email.from.to_a.first.to_s.strip
183
    	issue.description = "Reported by e-mail by [#{sender_addr}]:\n" + issue.description;
184
    end
180 185

  
181 186
    # add To and Cc as watchers before saving so the watchers can reply to Redmine
182 187
    add_watchers(issue)
    (1-1/1)