Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
unfolding header lines in TIdAttachment[File]
#4
(06-08-2018, 12:21 PM)Boba TC Wrote:
(06-08-2018, 02:13 AM)rlebeau Wrote: ... FoldLines is used when sending.

then it just does not do what it should.

Yes, it does.  If you set FoldLines=False, then headers are not folded, each header takes up only 1 line.  If you have an example that is not working, please show it.

(06-08-2018, 12:21 PM)Boba TC Wrote: I am not sure about "standard practice for SMTP"; the RFC does allow it.

The general email RFCs, yes.  But SMTP imposes limitations on line lengths, so long headers should be folded.

(06-08-2018, 12:21 PM)Boba TC Wrote: 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"

That is exactly what FoldLines controls.

(06-08-2018, 12:21 PM)Boba TC Wrote: I think they are called Values; so how do I ask Indy to put all values of every Name on a single line?

I already showed you how.

Also, TIdHeaderList has a FoldLength property, which you can set to MaxInt, for instance.

(06-08-2018, 12:21 PM)Boba TC Wrote: Also, compiler complains: " E3216 'Params' is not a member of TIdHeaderList"; do I need to update the Indy package?

Yes.  The Params property (amongst others) was added to TIdHeaderList way back in 2010.

(06-08-2018, 12:21 PM)Boba TC Wrote: header files say "rev. 20.00" - 10 years old; is it too old?

Very old.

(06-08-2018, 12:21 PM)Boba TC Wrote: One more thing... Will I be able to build the latest version of Indy Sockets/Protocols with BDS 12.0?

Yes (is that XE5?).  Indy still supports all the way back to Delphi 5 (though it requires some codegen patches for D5, but not D6+).

Reply


Messages In This Thread
RE: unfolding header lines in TIdAttachment[File] - by rlebeau - 06-08-2018, 07:40 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)