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

Win XP
D7 Prof
BeitragVerfasst: Sa 24.01.04 17:37 
Hi,

ich habe eine smtp-indy-Komponente eingefügt und möchte alle Mails, die gesendet werden auch gespeichert werde. Das ist weiter nicht das Problem. NUr wie schaffe ich, daß diese Mail gespeichert wird, einen eindeutigen und nur einmal vorkommende Namen hat, damit ältere Mails nicht überschrieben werden.

Vielen Dank

Steffen
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Sa 24.01.04 17:43 
Oh, ich habe was vergessen. Wenn idese Dateien dann gespeichert sind, wie kann ich diese dann in ein listview anzeigen lassen, und zwar nicht die Datei selber, sondern den darin befindlichen Header der Mail. Zum Beispiel (an wen geschickt, wann usw.)

Nochmals vielen dank

Steffen
meolus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78

Gentoo, Debian, Win7 64-bit, WinXP
Delphi 2006 Prof., Delphi 2005 PE
BeitragVerfasst: Sa 24.01.04 18:24 
@erster Beitrag:
Speicher die doch mit Datum/Uhrzeit, Absender und Betreff! Das sollte so ziemlich eindeutig sein, ansonsten gibt es da noch sowas wie ne "MessageID", die hab ich bisher auch noch nicht doppelt vorkommen sehen, ist aber dennnoch in jeder Mail drin!

@zweiter Beitrag:
Ich hab auch nen E-Mail Prog geschrieben, da wird werden beim Automatischen speichern der E-Mails immer ein neuer Ordner (Bezeichnung wie vorhin beschrieben) und darin sind dann ne TXT für Body, Header und all die Anhänge...

Gruß Meolus

_________________
Real programmers don't comment their code;
if it was hard to write, it should be hard to read.
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Sa 24.01.04 18:41 
mit dem messageid habe ich schon probiert. sagt aber immer, daß es ihn nicht gibt. mache ich da was falsch
meolus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 78

Gentoo, Debian, Win7 64-bit, WinXP
Delphi 2006 Prof., Delphi 2005 PE
BeitragVerfasst: Sa 24.01.04 19:00 
Als erstes muss du die betreffende Mail herunterladen (oder auch nur den Header):
ausblenden Delphi-Quelltext
1:
    IdPOP3.RetrieveHeader(1, IdMessage);					


Dann kannste hast die MessageID als Eigenschaft von IdMessage vorliegen:
ausblenden Delphi-Quelltext
1:
   ShowMessage('Die Message-ID ist: '+IdMessage.MsgId');					


Gruß Meolus

_________________
Real programmers don't comment their code;
if it was hard to write, it should be hard to read.
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: Sa 24.01.04 19:01 
:D äheemmm, ich meinte eigentlich, wenn ich eine Mail SENDE.
tomtom62
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 278

WIN 2000, XP prof
D5 prof.
BeitragVerfasst: So 25.01.04 08:28 
Vergib doch einfach eine eigene ID z.B. GUID und speichere die mit ab..
Das S Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 101

Win XP
D7 Prof
BeitragVerfasst: So 25.01.04 08:31 
vielen dank, werde ich machen.