"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "config/initializers/10-patches.rb" between
redmine-4.0.3.tar.gz and redmine-4.0.4.tar.gz

About: Redmine is a flexible project management and bug-tracking web application (using the Ruby on Rails framework). It supports also project wikis and forums, documents management, and multiple version control systems.

10-patches.rb  (redmine-4.0.3):10-patches.rb  (redmine-4.0.4)
skipping to change at line 108 skipping to change at line 108
container = container.map {|element| element.blank? ? [" ".html_s afe, ""] : element} container = container.map {|element| element.blank? ? [" ".html_s afe, ""] : element}
end end
options_for_select_without_non_empty_blank_option(container, selected) options_for_select_without_non_empty_blank_option(container, selected)
end end
end end
end end
end end
require 'mail' require 'mail'
module Mail
class SubjectField
# Fixed that the issue subject may be broken if the subject field in the
# receiving email is split into multiple lines
def initialize(value = nil, charset = 'utf-8')
if mime_encode = /^(=\?\S+\?\S\?)/.match(value).to_a[1]
value.gsub!(/\?=\s+#{Regexp.escape(mime_encode)}/, '')
self.charset = charset
super(CAPITALIZED_FIELD, value, charset)
module DeliveryMethods module DeliveryMethods
class TmpFile class TmpFile
def initialize(*args); end def initialize(*args); end
def deliver!(mail) def deliver!(mail)
dest_dir = File.join(Rails.root, 'tmp', 'emails') dest_dir = File.join(Rails.root, 'tmp', 'emails')
Dir.mkdir(dest_dir) unless File.directory?(dest_dir) Dir.mkdir(dest_dir) unless File.directory?(dest_dir)
filename = "#{Time.now.to_i}_#{mail.message_id.gsub(/[<>]/, '')}.eml" filename = "#{Time.now.to_i}_#{mail.message_id.gsub(/[<>]/, '')}.eml"
File.open(File.join(dest_dir, filename), 'wb') {|f| f.write(mail.encoded) } File.open(File.join(dest_dir, filename), 'wb') {|f| f.write(mail.encoded) }
end end
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)