Major rewrite of the contents portion of Horde_Mime_Part.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 30 Jun 2009 22:00:57 +0000 (16:00 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 1 Jul 2009 06:20:33 +0000 (00:20 -0600)
commitfb3452e3d6132d52c1fa5e6e37bd38b136e02017
tree0d090090cfa3a5238a3fb6143ee7371fde4b464e
parentb0309fd21bf904a0f7f024b4322e71509be38c42
Major rewrite of the contents portion of Horde_Mime_Part.

Always store data inside part in binary format. Reduces overhead (no
need to store in larger base64 format) and allows us to do the
decompression at the same time we have to write the data to the new
internal stream object anyway.

Reworked parameters for setContents(), appendContents(), getContents(),
setTransferEncoding(), addMimeHeaders(), toString().

Removed getContentsAsStream(), getCanonicalContents() -> these can be
accessed via options to getContents().

Removed transferDecode(), transferEncode(), transferEncodeContents(),
transferDecodeContents(), strict7bit(), getTransferEncoding(), and
getCurrentEncoding() -> this is all handled internally on a call to
toString().

Removed toCanonicalString() -> this can be accessed via options to
toString().

Also:
Fix rtrim() call (don't trim non-EOL whitespace chars).
phpdoc
framework/Crypt/lib/Horde/Crypt/Pgp.php
framework/Crypt/lib/Horde/Crypt/Smime.php
framework/Mime/lib/Horde/Mime/Mail.php
framework/Mime/lib/Horde/Mime/Part.php
framework/Mime/lib/Horde/Mime/Viewer/Rfc822.php