Autor Beitrag
Björn karpenstein
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

Windows XP, Linux
D7, K3
BeitragVerfasst: So 25.09.05 16:59 
Hallo!

Ich liste am Anfang die eMails auf einem POP-Account mit RetrieveHeader() (nicht Retrieve()!!) und möchte beim Iterieren durch die Mails anhänge erkennen. Wenn man sich den Header ansieht gibt es da einen MIME-Typen "Content-Type" der scheinbar angibt, um was für einen Mailtyp es sich handelt. MessageParts.AttachmentCount steht zu diesem Zeitpunkt noch nicht zur Verfügung!

Wenn ich mit Outlook Nachrichten ohne Anlage verschicke steht da immer "Multipart/Alternative" ansonsten "Multipart/Mixed".

Meine Frage:

Kann ich davon ausgehen wenn eines der Wörter application, audio, video, image, mixed in Content-Type vorkommt, dass die Mail einen Anhang hat??? Oder gibts da noch ein anderer Fall?

Bitte um Hilfe bin mal wieder zu doof ;)


Moderiert von user profile iconChristian S.: Topic aus VCL (Visual Component Library) verschoben am So 25.09.2005 um 17:03
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: So 25.09.05 18:40 
Du hast 2 Indikatoren:

1. Content-Type: Multipart/MIME

2. Content-Disposition: Attachment

Beide immer in Kombination; Nie einzeln!

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Björn karpenstein Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 96

Windows XP, Linux
D7, K3
BeitragVerfasst: Mo 26.09.05 11:07 
Hmm also ich habe in dieser Mail, wo man den Header im Screenshot sieht, eine Anlage angefügt und sie mit Outlook verschickt. Jetzt hol ich sie mit meinem Programm ab - in der Mail mit Anlage steht aber nix mit Content-Disposition (obwohl sie eine Anlage hat):

www.tabulaturen.de/markus/mailxp.jpg
Freiberger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 130

WIN XP
Delphi 7
BeitragVerfasst: Do 28.06.07 21:26 
Hallo,
ich habe genau das gleiche Problem.
Aber mit 1. Content-Type & Content-Disposition sehe ich auch keinen Unterschied.

Gibt es da noch was anderes ?
Man muß doch irgendwo sehen, ob die Mail Anhänge hat, oder nicht...