Project

General

Profile

Feature #474

Updated by liaham over 1 year ago

By default emails for tasks are sent with the full description of the task, changes of attributes and the latest comment.  

 These information might be to sensible in order to send them without encryption via email. Replacing the default content of a task by a link to that task should reduce the risk to violate the confidentiality. 

 Idea - override mailer templates (view/mailer/_issue.*): 


 ```html ```ruby 
 <h1> 
   <%= link_to("#{issue.tracker.name} ##{issue.id}: #{issue.subject}", issue_url) %> 
   <%= issue_status_type_badge(issue.status) %> 
 </h1> 
 <% if (Setting allows to disable email content) %> <-- NEW 
   <%= render_email_issue_attributes(issue, user, true) %> 

   <%= textilizable(issue, :description, :only_path => false) %> 

   <% if issue.attachments.any? %> 
     <fieldset class="attachments"><legend><%= l(:label_attachment_plural) %></legend> 
     <% issue.attachments.each do |attachment| %> 
       <%= link_to_attachment attachment, :download => true, :only_path => false %> 
       (<%= number_to_human_size(attachment.filesize) %>)<br /> 
     <% end %> 
     </fieldset> 
   <% end %> 
 <% end %> <-- NEW 
 ``` 

 Provide also a setting for this feature!

Back