![]() |
D2009+Indy10: Mail-Abfrage mit IdPOP3 verhunzt Umlaute
Hi,
bei einer Mail-Abfrage mit Delphi 2009 und IdPOP3 (Indy10) dann kommt z.B. folgendes heraus
Code:
Original wurde aber
Mit freundlichen Gru?en
Code:
gesendet.
Mit freundlichen Grüßen
Da das mit Delphi 2007 wunderbar funktioniert, vermute ich ja mal Unicode ... Weiß jemand eine Lösung? cu Oliver |
Re: D2009+Indy10: Mail-Abfrage mit IdPOP3 verhunzt Umlaute
Stimmt den die Codepage?
|
Re: D2009+Indy10: Mail-Abfrage mit IdPOP3 verhunzt Umlaute
Zitat:
|
Re: D2009+Indy10: Mail-Abfrage mit IdPOP3 verhunzt Umlaute
was steht den IdMessage.Codepage ?
|
Re: D2009+Indy10: Mail-Abfrage mit IdPOP3 verhunzt Umlaute
Zitat:
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? :gruebel: 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:
b) IdMessage.NoDecode = false; IdMessage.NoEncode = false;
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] .
Code:
c) Empfang via Delphi 2007
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] .
Code:
2. Mail aus einem Tobit-System
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] a) IdMessage.NoDecode = true; IdMessage.NoEncode = true;
Code:
b) IdMessage.NoDecode = false; IdMessage.NoEncode = false;
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-- .
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 ![]()
Delphi-Quellcode:
nicht weitergebracht (keine Auswirkung).
IOHandler.DefStringEncoding := en8Bit;
Who knows? cu Oliver |
Re: D2009+Indy10: Mail-Abfrage mit IdPOP3 verhunzt Umlaute
Hast Du inzwischen eine Antwort gefunden?
Liebe Grüße, Sam |
Alle Zeitangaben in WEZ +1. Es ist jetzt 17:41 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz