Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unfolding header lines in TIdAttachment[File]
#3
Thanks for you prompt reply, Remy.

(06-08-2018, 02:13 AM)rlebeau Wrote: ... FoldLines is used when sending.

then it just does not do what it should.

(06-08-2018, 02:13 AM)rlebeau Wrote:
(06-08-2018, 01:42 AM)Boba TC Wrote: the receiving server wants the attachment header lines to be unfolded

Why?  That is not standard practice for SMTP.

I am not sure about "standard practice for SMTP"; the RFC does allow it.

(06-08-2018, 02:13 AM)rlebeau Wrote:
(06-08-2018, 01:42 AM)Boba TC Wrote: and header fields to be separated by "; " (semicolon followed by a space).

It is not possible to have multiple *headers* in a single line, that is not even legal to do, per RFCs.  By *fields*, are you thinking of *per-header attributes*, and not multiple *headers*?  Individual *attributes* can be on a single line, separated by "; ".  Indy already handles exactly that, if you use the TIdHeaderList.Params[] property to assign the attribute values.

I mean each header (single parameter) on a single line, like:

Code:
Content-Type: text/plain; charset="US-ASCII"; name="filename.txt"

instead of

Code:
Content-Type: text/plain;
       charset="US-ASCII";
       name="filename.txt"

I think they are called Values; so how do I ask Indy to put all values of every Name on a single line?
Also, compiler complains: " E3216 'Params' is not a member of TIdHeaderList"; do I need to update the Indy package? header files say "rev. 20.00" - 10 years old; is it too old?

One more thing... Will I be able to build the latest version of Indy Sockets/Protocols with BDS 12.0?
Reply


Messages In This Thread
RE: unfolding header lines in TIdAttachment[File] - by Boba TC - 06-08-2018, 12:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)