Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
rubygem-mail-2_4
fix_bsc_959129_mail_2.4.4.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File fix_bsc_959129_mail_2.4.4.patch of Package rubygem-mail-2_4
diff --git a/lib/mail/field.rb.orig b/lib/mail/field.rb index 0c539d0..c9a653c 100644 --- a/lib/mail/field.rb.orig +++ b/lib/mail/field.rb @@ -150,8 +150,13 @@ module Mail rescue STDERR.puts "WARNING: Could not parse (and so ignorning) '#{raw_field}'" end - + + def unfold(string) + string.gsub(/[\r\n \t]+/m, ' ') + end + def create_field(name, value, charset) + value = unfold(value) if value.is_a?(String) begin self.field = new_field(name, value, charset) rescue Mail::Field::ParseError => e
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor