Skip to content

TIdMessageClient.SendBody() should respect header folding settings for message parts. #215

Description

@rlebeau

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Element: EmailIssues related to Email handlingElement: Message ClientIssues related to TIdMessageClient and descendantsStatus: AcceptedIssue has been accepted to be worked onType: EnhancementIssue is proposing a new feature/enhancement

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions