Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
TIdMessage.LoadFromStream: Missing fields
#6
(03-16-2023, 06:54 PM)BartKindt Wrote: - I load a IdMessage via the IMAP system, and all data is complete (headers, body, etc.).

The TIdIMAP4.UIDRetrieveNoDecode...() methods don't actually parse an email's body, they just store the raw body text as-is. The non-NoDecode TIdIMAP4.UIDRetrieve...() methods actually parse an email body.

(03-16-2023, 06:54 PM)BartKindt Wrote: Somehow the IdMessageClient.ProcessMessage is not processing anything.

If that were true, the decoding TIdIMAP4.UIDRetrieve...() methods would be suffering from the same issue. But based on your description, they are not. So something else is going on.

(03-16-2023, 06:54 PM)BartKindt Wrote: In the latest compiler, I cannot edit the Indy files at all;

Why are you trying to edit them? What are you editing, exactly?

(03-16-2023, 06:54 PM)BartKindt Wrote: When I copy the various units into my own directory, and try to compile I get errors about some other units 'not compiled with the save version'.

Then your project must be using other things that are linked to the version of Indy that shipped with the IDE.

(03-16-2023, 06:54 PM)BartKindt Wrote: I attach the raw file as a TXT file.

The file looks fine to me. TIdMessage.LoadFromFile() should not be having any issues loading it. So, how exactly are you validating that it does have issue?

Even if TIdMessage.LoadFromFile() can't parse the email body, it should be parsing the email headers at least, but you claim that all of the TIdMessage properties are blank, and I find that very hard to believe. For instance, that would imply that the very 1st call to IOHandler.ReadLnRFC() inside of TIdMessageClient.ReceiveHeader() is either returning a blank line or setting LMsgEnd=True, either way breaking the reading loop. The TXT file you have shown clearly does not begin with a blank line or a message terminator.

Reply


Messages In This Thread
RE: TIdMessage.LoadFromStream: Missing fields - by rlebeau - 03-17-2023, 08:31 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)