Currently, TIdMessageClient.SendBody() writes out the individual components of the "Content-Type" and "Content-Disposition" MIME headers using hard-coded folding for some of the attributes. Normally, this is OK, but one Indy user has encountered an email receiver GUI that does not work correctly unless the email headers are sent completely unfolded. That is not standard, but the Indy user wants to be able to turn off folding when sending emails. So SendBody() should be updated to write out the TIdMessagePart.Headers property as-is instead, so its FoldLines and FoldLength properties can be respected. However, some of the sub-properties, like Charset, Name, FileName, etc, are not currently stored in the Headers, so that will have to be corrected first, using the TIdMessagePart.Headers.Params[] property.
Currently,
TIdMessageClient.SendBody()writes out the individual components of the "Content-Type" and "Content-Disposition" MIME headers using hard-coded folding for some of the attributes. Normally, this is OK, but one Indy user has encountered an email receiver GUI that does not work correctly unless the email headers are sent completely unfolded. That is not standard, but the Indy user wants to be able to turn off folding when sending emails. SoSendBody()should be updated to write out theTIdMessagePart.Headersproperty as-is instead, so itsFoldLinesandFoldLengthproperties can be respected. However, some of the sub-properties, likeCharset,Name,FileName, etc, are not currently stored in theHeaders, so that will have to be corrected first, using theTIdMessagePart.Headers.Params[]property.