Re: ENCODING !!!

Giganews Newsgroups
Subject: Re: ENCODING !!!
Posted by:  Remy Lebeau (TeamB) (no.spam@no.spam.com)
Date: Thu, 12 Jan 2006

"Lukas" <luk…@gms.info> wrote in message
news:E4FF7B4D2CE9E240luk…@gms.info...

> There is no way to get a german message viewed
> correctly through idpop3server!

Yes, there is.  See below.

> Code in OnRetr-Event:
>  msg:=tidmessage.Create;

By using TIdMessage, you are subjecting your messages to Indy's parsing and
re-encoding of the data before it is then sent to your POP3 client
application.  I suggest you not use TIdMessage at all when forwarding
messages around.  Send the raw data as-is, for example.

    procedure TForm1.IdPOP3ServerRetrieve(ASender: TIdCommand; AMsgNo
:Integer);
    begin
        MyPop3.RetrieveRaw(AMsgNo, ASender.Response);
        ASender.Reply.Assign(MyPop3.LastCmdResult);
    end;

If you must use TIdMessage, then you should set its NoDecode and NoEncode
properties both to True.

Gambit

Replies

In response to

ENCODING !!! posted by Lukas on Thu, 12 Jan 2006