Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdMessage.LoadFromStream: Missing fields
#7
I will have to find a way to copy the indy files accros, to that I can edit them and make changes to see where it goes wrong.
At the moment I have no idea where it goes wrong in the ProcessMessage, but it does look like it has something to do with the code here:
Code:
repeat
      Result := IOHandler.ReadLnRFC(LMsgEnd);
      // Exchange Bug: Exchange sometimes returns . when getting a message instead of
      // '' then a . - That is there is no seperation between the header and the message for an
      // empty message.
      if ((Length(AAltTerm) = 0) and LMsgEnd) or  {do not localize}
         ({APR: why? (Length(AAltTerm) > 0) and }(Result = AAltTerm)) then begin
        Break;
      end else if Result <> '' then begin
        AMsg.Headers.Append(Result);
      end;
    until False;
    AMsg.ProcessHeaders;

As said, even loading directly from the Stream I just saved, the new copy shows no headers and no body after loading it.

When copying Indy files accross, I get these errors:

[dcc32 Fatal Error] IdSMTPBase.pas(603): F2051 Unit IdSMTP was compiled with a different version of IdSMTPBase.TIdSMTPBase

This keeps on going, until I probably have all Indy files copied over...
Is there any way to circumvent this?
---
Bart Kindt
CEO and Developer
SARTrack Limited
New Zealand
www.sartrack.nz
Reply


Messages In This Thread
RE: TIdMessage.LoadFromStream: Missing fields - by BartKindt - 03-17-2023, 09:06 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)