Einzelnen Beitrag anzeigen

Benutzerbild von Sir Rufo
Sir Rufo

Registriert seit: 5. Jan 2005
Ort: Stadthagen
9.454 Beiträge
 
Delphi 10 Seattle Enterprise
 
#5

Re: D2009+Indy10: Mail-Abfrage mit IdPOP3 verhunzt Umlaute

  Alt 10. Nov 2008, 20:22
Zitat von mkinzler:
was steht den IdMessage.Codepage ?
Die Property Codepage finde ich bei IdMessage nicht.
Es gibt wohl die CharSet, und die wird ja durch die empfangene Mail selber gefüllt (da hätte ich ja keinen Einfluß drauf), oder?

Gibt es da noch eine andere Stelle für die Codepage? Und wenn ja, welche?

Zum Anfassen hier mal die empfangenen Mails aus 2 unterschiedlichen Systemen (aber mit fast dem gleichen Inhalt)

1. Mail via GMX-WebMailsystem
a) IdMessage.NoDecode = true; IdMessage.NoEncode = true;
Code:
X-Envelope-From: <xxx@gmx.de>
X-Envelope-To: <xxx@xxx.de>
X-Delivery-Time: 1226342834
X-UID: 12436
Return-Path: <xxx@gmx.de>
X-RZG-CLASS-ID: mi
Received: from mail.gmx.net ([213.165.64.20])
   by mailin.webmailer.de (christine mi34) (RZmta 17.18)
   with SMTP id y06c22kAAIjfeX for <xxx@xxx.de>;
   Mon, 10 Nov 2008 19:47:13 +0100 (MET)
Received: (qmail 30877 invoked by uid 0); 10 Nov 2008 18:47:10 -0000
Received: from 88.70.71.5 by www068.gmx.net with HTTP;
 Mon, 10 Nov 2008 19:47:09 +0100 (CET)
Content-Type: text/plain; charset="iso-8859-1"
Date: Mon, 10 Nov 2008 19:47:09 +0100
From: "xxx" <xxx@gmx.de>
Message-ID: <20081110184709.97620@gmx.net>
MIME-Version: 1.0
Subject: Test
To: [email]xxx@xxx.de[/email]
X-Authenticated: #xxxxxx
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Priority: 3
X-Provags-ID: V01U2FsdGVkX18Llgl8MOMLJhXGTVi+V+U/nkfAq9fGq1oPACl6VJ
 ApP/glD/0nR9BB/lFrqe0ksi1+012Tiv/aaA==
Content-Transfer-Encoding: 8bit
X-GMX-UID: nLM+YQuBLi50aR2GYmtpvP5rZml1ZJhd
X-FuHaFi:
X-Antivirus: avast! (VPS 081110-1, 10.11.2008), Inbound message
X-Antivirus-Status: Clean

Mit freundlichen Gr|_en
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: [url]http://www.gmx.net/de/go/promail[/url]
.
b) IdMessage.NoDecode = false; IdMessage.NoEncode = false;
Code:
X-Envelope-From: <xxx@gmx.de>
X-Envelope-To: <xxx@xxx.de>
X-Delivery-Time: 1226342834
X-UID: 12436
Return-Path: <xxx@gmx.de>
X-RZG-CLASS-ID: mi
Received: from mail.gmx.net ([213.165.64.20])
   by mailin.webmailer.de (christine mi34) (RZmta 17.18)
   with SMTP id y06c22kAAIjfeX for <xxx@xxx.de>;
   Mon, 10 Nov 2008 19:47:13 +0100 (MET)
Received: (qmail 30877 invoked by uid 0); 10 Nov 2008 18:47:10 -0000
Received: from 88.70.71.5 by www068.gmx.net with HTTP;
 Mon, 10 Nov 2008 19:47:09 +0100 (CET)
Content-Type: text/plain;
   charset="iso-8859-1"
Date: Mon, 10 Nov 2008 19:47:09 +0100
From: "xxx" <xxx@gmx.de>
Message-ID: <20081110184709.97620@gmx.net>
MIME-Version: 1.0
Subject: Test
To: [email]xxx@xxx.de[/email]
X-Authenticated: #xxxxxx
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Provags-ID: V01U2FsdGVkX18Llgl8MOMLJhXGTVi+V+U/nkfAq9fGq1oPACl6VJ
 ApP/glD/0nR9BB/lFrqe0ksi1+012Tiv/aaA==
Content-Transfer-Encoding: 8bit
X-GMX-UID: nLM+YQuBLi50aR2GYmtpvP5rZml1ZJhd
X-FuHaFi:
X-Antivirus: avast! (VPS 081110-1, 10.11.2008), Inbound message
X-Antivirus-Status: Clean
In-Reply-To: <20081110184709.97620@gmx.net>

Mit freundlichen Gr|_en
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: [url]http://www.gmx.net/de/go/promail[/url]

.
c) Empfang via Delphi 2007
Code:
X-Envelope-From: <xxx@gmx.de>
X-Envelope-To: <xxx@xxx.de>
X-Delivery-Time: 1226342834
X-UID: 12436
Return-Path: <xxx@gmx.de>
X-RZG-CLASS-ID: mi
Received: from mail.gmx.net ([213.165.64.20])
   by mailin.webmailer.de (christine mi34) (RZmta 17.18)
   with SMTP id y06c22kAAIjfeX for <xxx@xxx.de>;
   Mon, 10 Nov 2008 19:47:13 +0100 (MET)
Received: (qmail 30877 invoked by uid 0); 10 Nov 2008 18:47:10 -0000
Received: from 88.70.71.5 by www068.gmx.net with HTTP;
 Mon, 10 Nov 2008 19:47:09 +0100 (CET)
Content-Type: text/plain;
   charset="iso-8859-1"
Date: Mon, 10 Nov 2008 19:47:09 +0100
From: "xxx" <xxx@gmx.de>
Message-ID: <20081110184709.97620@gmx.net>
MIME-Version: 1.0
Subject: Test
To: [email]xxx@xxx.de[/email]
X-Authenticated: #xxxxxx
X-Flags: 0001
X-Mailer: WWW-Mail 6100 (Global Message Exchange)
X-Provags-ID: V01U2FsdGVkX18Llgl8MOMLJhXGTVi+V+U/nkfAq9fGq1oPACl6VJ
 ApP/glD/0nR9BB/lFrqe0ksi1+012Tiv/aaA==
Content-Transfer-Encoding: 8bit
X-GMX-UID: nLM+YQuBLi50aR2GYmtpvP5rZml1ZJhd
X-FuHaFi:
In-Reply-To: <20081110184709.97620@gmx.net>

Mit freundlichen Grüßen
-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: [url]http://www.gmx.net/de/go/promail[/url]
2. Mail aus einem Tobit-System
a) IdMessage.NoDecode = true; IdMessage.NoEncode = true;
Code:
X-Envelope-From: <xxx@xxx.de>
X-Envelope-To: <xxx@xxx.de>
X-Delivery-Time: 1226342574
X-UID: 12435
Return-Path: <xxx@xxx.de>
X-RZG-CLASS-ID: mi
Received: from mailout.xxx.eu (webmail.xxx.de [xxx.xxx.xxx.xxx])
   by mailin.webmailer.de (blert mi49) (RZmta 17.18)
   with ESMTP id J038edkAAIeTDA for <xxx@xxx.de>;
   Mon, 10 Nov 2008 19:42:54 +0100 (MET)
Received: from 192.168.100.50 (bocom.xxx.local [192.168.100.50])
   by mailout.xxx.eu (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id mAAJMSw8010945
   for <xxx@xxx.de>; Mon, 10 Nov 2008 20:22:29 +0100
From: =?iso-8859-1?Q?xxxx_x=FCxxxx?= <xxx@xxx.de>
Subject: Test
To: [email]xxx@xxx.de[/email]
Date: Mon, 10 Nov 2008 18:42:53 +0000
Priority: normal
X-Priority: 3 (Normal)
Importance: normal
X-Mailer: DvISE by Tobit Software, Germany (0250.45424B4A4D464C50494F), Mime Converter 101.20
X-David-Sym: 0
X-David-Flags: 33554432
Disposition-Notification-To: [email]xxx@xxx.de[/email]
Return-Receipt-To: [email]xxx@xxx.de[/email]
Message-ID: <DIIE.00000AD4001456C3@192.168.100.50>
MIME-Version: 1.0
Content-Type: multipart/alternative;
 boundary="----_=_NextPart_000_001456C3.49188EBD"
X-Antivirus: avast! (VPS 081110-1, 10.11.2008), Inbound message
X-Antivirus-Status: Clean

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_000_001456C3.49188EBD
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Mit freundlichen Gr=FC=DFen

------_=_NextPart_000_001456C3.49188EBD
Content-Type: text/html;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR></HEAD>
<BODY style=3D"FONT: 10pt Courier New; COLOR: #000000" leftMargin=3D5 =
topMargin=3D5>
<DIV style=3D"FONT: 10pt Courier New">
<DIV style=3D"FONT: 10pt Courier New"><FONT face=3DTahoma>Mit freundlichen =

Gr=FC=DFen</FONT></DIV></DIV></BODY></HTML>

------_=_NextPart_000_001456C3.49188EBD--

.
b) IdMessage.NoDecode = false; IdMessage.NoEncode = false;
Code:
X-Envelope-From: <xxx@xxx.de>
X-Envelope-To: <xxx@xxx.de>
X-Delivery-Time: 1226342574
X-UID: 12435
Return-Path: <xxx@xxx.de>
X-RZG-CLASS-ID: mi
Received: from mailout.xxx.eu (webmail.xxx.de [xxx.xxx.xxx.xxx])
   by mailin.webmailer.de (blert mi49) (RZmta 17.18)
   with ESMTP id J038edkAAIeTDA for <xxx@xxx.de>;
   Mon, 10 Nov 2008 19:42:54 +0100 (MET)
Received: from 192.168.100.50 (bocom.xxx.local [192.168.100.50])
   by mailout.xxx.eu (8.13.8/8.13.8/SuSE Linux 0.8) with ESMTP id mAAJMSw8010945
   for <xxx@xxx.de>; Mon, 10 Nov 2008 20:22:29 +0100
From: xxxx xuxxxx <xxx@xxx.de>
Subject: Test
To: [email]xxx@xxx.de[/email]
Date: Mon, 10 Nov 2008 19:42:53 +0100
Priority: normal
Importance: normal
X-Mailer: DvISE by Tobit Software, Germany (0250.45424B4A4D464C50494F), Mime Converter 101.20
X-David-Sym: 0
X-David-Flags: 33554432
Disposition-Notification-To: [email]xxx@xxx.de[/email]
Return-Receipt-To: [email]xxx@xxx.de[/email]
Message-ID: <DIIE.00000AD4001456C3@192.168.100.50>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="pyZ=_1jG6TUmj3CqPCIZ1nHpJhojtcpXBU"
X-Antivirus: avast! (VPS 081110-1, 10.11.2008), Inbound message
X-Antivirus-Status: Clean
In-Reply-To: <DIIE.00000AD4001456C3@192.168.100.50>

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--pyZ=_1jG6TUmj3CqPCIZ1nHpJhojtcpXBU
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


Mit freundlichen Gru?en

--pyZ=_1jG6TUmj3CqPCIZ1nHpJhojtcpXBU
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Diso-88=
59-1">
<META content=3D"MSHTML 6.00.6000.16608" name=3DGENERATOR></HEAD>
<BODY style=3D"FONT: 10pt Courier New; COLOR: #000000" leftMargin=3D5 =
topMargin=3D5>
<DIV style=3D"FONT: 10pt Courier New">
<DIV style=3D"FONT: 10pt Courier New"><FONT face=3DTahoma>Mit freundli=
chen=20
Gru?en</FONT></DIV></DIV></BODY></HTML>

--pyZ=_1jG6TUmj3CqPCIZ1nHpJhojtcpXBU--

.

Wie man sieht ist die Mail
2a eigentlich genau richtig. (so auch unter Delphi 2007)
2b kann man gar nicht gebrauchen.
1a und 1b unterscheiden sich irgendwie gar nicht sind aber nicht wie
1c

Wat kann man denn jetzt daran machen?

Ich habe auf jeden Fall schon mal gelesen, dass an den Indys noch kräftig geschraubt wird CodeGear Discussion: Indy10 und Delphi 2009 allerdings hat mich der Tip mit dem IOHandler.DefStringEncoding := en8Bit; nicht weitergebracht (keine Auswirkung).

Who knows?

cu

Oliver
Kaum macht man's richtig - schon funktioniert's
Zertifikat: Sir Rufo (Fingerprint: ‎ea 0a 4c 14 0d b6 3a a4 c1 c5 b9 dc 90 9d f0 e9 de 13 da 60)
  Mit Zitat antworten Zitat