Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

void PRFC822Channel::SetTransferEncoding ( const PString encoding,
BOOL  autoTranslate = TRUE 
)

Set the content transfer encoding. This must be called before any writes are done to the channel. It may be set again immediately after any call to NextPart() when multipart mime is being used.

If the encoding is "base64" (case insensitive) and , all writes will be treated as binary and translated into base64 encoding before output to the underlying channel.

Parameters:
encoding  Encoding type
autoTranslate  Automatically convert to encoding type

Definition at line 1559 of file inetmail.cxx.

References SetHeaderField().

{
  SetHeaderField(ContentTransferEncodingTag, encoding);
  if ((encoding *= "base64") && autoTranslate)
    base64 = new PBase64;
  else {
    delete base64;
    base64 = NULL;
  }
}


Generated by  Doxygen 1.6.0   Back to index