The Trunk: Network-pre.222.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Network-pre.222.mcz

commits-2
Patrick Rein uploaded a new version of Network to project The Trunk:
http://source.squeak.org/trunk/Network-pre.222.mcz

==================== Summary ====================

Name: Network-pre.222
Author: pre
Time: 30 April 2018, 3:44:19.058101 pm
UUID: 0160ce46-5d69-ff40-ae56-15d31d9b923e
Ancestors: Network-topa.221

Updates mail code to use the new q encoding converter

=============== Diff against Network-topa.221 ===============

Item was changed:
  ----- Method: MIMEHeaderValue>>asHeaderValue (in category 'printing') -----
  asHeaderValue
  | strm |
  strm := WriteStream on: (String new: 20).
  strm nextPutAll: mainValue.
  parameters associationsDo: [:e |
  strm
  nextPut: $; ;
  nextPutAll: e key;
  nextPutAll: '=';
  nextPutAll: e value].
+ ^ QEncodingMimeConverter mimeEncode: strm contents!
- ^ strm contents!

Item was changed:
  ----- Method: MailMessage>>canonicalFields (in category 'fields') -----
  canonicalFields
  "Break long header fields and escape those containing high-ascii characters according to RFC2047"
 
  self rewriteFields:
  [ :fName :fValue |
  (fName size + fValue size < 72 and: [fValue allSatisfy: [:c | c asciiValue <= 128]])
+ ifFalse: [QEncodingMimeConverter mimeEncode: fName, ': ', fValue]]
- ifFalse: [RFC2047MimeConverter mimeEncode: fName, ': ', fValue]]
  append: [].
 
  !