Autor Beitrag
Das S
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: So 11.07.04 15:23 
Hi, ich habe ein kleines Problem.

Ich möchte in einem Listview alle Header der Mails anzeigen, die in meinem Postfach liegen.

Hier ersteinmal der Code:

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
procedure Tposteingang.anzeigenClick(Sender: TObject);
var i,counter:integer;
var itm:Tlistitem;
begin
i:=0;
counter:=0;
itm:=listview1.Items.Add;
pop3client.Connect;
counter:=pop3client.CheckMessages;
idmessage.Clear;
//Schleife für Header
for i := 1 to counter do
begin
pop3client.RetrieveHeader(i,idmessage);
itm.Caption := idmessage.From.Address;
end;
end;


Also, ich sehe dort kein Fehler, außerdem ist das praktisch eine Kopie der Indy-Originalhilfe. Trotzdem zeigt er mir nur die letzte Mail an. Sieht jemand einen Fehler ? Ich werde wahnsinnig :evil:

Vielen Dank für Eure Hilfe

Steffen
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Mo 12.07.04 09:33 
pack das itm:=listview1.Items.Add;
mal in die schleife ...

_________________
hans bist du das ?
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Mi 14.07.04 12:53 
Vielen Dank, aber jetzt baut er dreizigmal die selbe Mail auf, weil dreizig verschiedene Mails im Postfach liegen. Ich kappiere das absolut nicht. :(
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Do 15.07.04 08:40 
zeig mal deinen jetztigen code

_________________
hans bist du das ?