Получил при помощи протокола POP3 такое письмо: | Код | +OK +OK Password required for user xxx +OK [email protected] maildrop has 7 messages (280576 octets) +OK 7 6010 +OK 6010 octets
Return-path: <[email protected]> Received: from [195.170.0.93] (port=36070 helo=aiolos.otenet.gr) by mx23.mail.ru with esmtp id 1HVq7V-000FZJ-00 for [email protected]; Mon, 26 Mar 2007 18:24:25 +0400 Received-SPF: none (mx23.mail.ru: 195.170.0.93 is neither permitted nor denied b y domain of otenet.gr) client-ip=195.170.0.93; [email protected] r; helo=aiolos.otenet.gr; Received: from eurocenter (athedsl-179146.home.otenet.gr [85.74.19.104]) by aiolos.otenet.gr (8.13.4.20060308/8.13.4/Debian-9) with ESMTP id l2QE OGjf030417 for <[email protected]>; Mon, 26 Mar 2007 17:24:21 +0300 From: "yyy" <[email protected]> To: <[email protected]> Subject: questions Date: Mon, 26 Mar 2007 17:22:15 +0300 Message-ID: <00bf01c76fb2$2772df50$0100000a@eurocenter> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_00C0_01C76FCB.4CC01750" X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 Thread-Index: AcdvsicAuJ1lVOypQwmLSD0lq1j5eQ== X-Spam: Not detected
This is a multi-part message in MIME format.
------=_NextPart_000_00C0_01C76FCB.4CC01750 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: base64
5M/C0tnKIMTFztgNCg0KIA0KDQri1cTY1MUgxM/C0tksIM/U18XU2NTFIM7BIM3PySDXz9DSz9PZ ////////////////////////////////////////////////////// ///////////////////////////////////////////////////// и т.д.
------=_NextPart_000_00C0_01C76FCB.4CC01750 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; = charset=3Dkoi8-r"> <html xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns=3D"http://www.w3.org/TR/REC-html40">
<head>
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)"> <style> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman";} a:link, span.MsoHyperlink {color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-compose; font-family:Arial; color:windowtext;} @page Section1 {size:595.3pt 841.9pt; margin:72.0pt 90.0pt 72.0pt 90.0pt;} div.Section1 {page:Section1;} --> </style>
</head>
<body lang=3DEL link=3Dblue vlink=3Dpurple>
<div class=3DSection1>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'>=E4=CF=C2=D2=D9=CA =C4=C5=CE=D8<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'>=E2=D5=C4=D8=D4=C5 =C4=CF=C2=D2=D9, =CF=D4=D7=C5=D4=D8=D4=C5 =CE=C1 =CD=CF=C9 =D7=CF=D0=D2=CF=D3=D9.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'>=EB=C1=CB =D1 =CD=CF=C7=D5 =D0=CF=CC=D5=DE=C9=D4=D8 =DA=C1=DE=C5=D4=CE=D5=C0 =CB=CE=C9=D6=CB=D5 (=D3=CF=C8=D2=C1=CE=D1=C5=D4=D3=D1 =CC=C9 =CF=CE=C1 =D0=CF=D3=CC=C5 =CF=CB=CF=CE=DE=C1=CE=C9=D1 =D5=CE=C9=D7=C5=D2=D3=C9=D4=C5=D4=C1)? =ED=CE=C5 =CF=CE=C1 =CE=C5=CF=C2=C8=CF=C4=C9=CD=C1 =C4=CC=D1 =D0=D2=C9=DA=CE=C1=CE=C9=D1 =C4=C9=D0=CC=CF=CD=C1 =CF =D7=D9=D3=DB=C5=CD =CF=C2=D2=C1=DA=CF=D7=C1=CE=C9=C9 =DA=C1 =C7=D2=C1=CE=C9=C3=C5=CA. <o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'>=EB=D2=CF=CD=C5 =D4=CF=C7=CF, =CD=CE=C5 =CE=C5=CF=C2=C8=CF=C4=C9=CD=C1 =CF=C6=C9=C3=C9=C1=CC=D8=CE=C1=D1 =C9=CE=C6=CF=D2=CD=C1=C3=C9=D1 =CF=C2 =D5=DE=C5=C2=CE=CF=CA =D0=D2=CF=C7=D2=C1=CD=CD=C5 =D0=CF =CD=CF=C5=CA =D3=D0=C5=C3=C9=C1=CC=D8=CE=CF=D3=D4=C9 (=D0=D2=C5=C4=CD=C5=D4=D9, =CB=CF=CC=C9=DE=C5=D3=D4=D7=CF =DE=C1=D3=CF=D7). =F7=CF=DA=CD=CF=D6=CE=CF =CC=C9 =D0=CF=CC=D5=DE=C9=D4=D8 =D4=C1=CB=CF=CA =C4=CF=CB=D5=CD=C5=CE=D4 =CE=C1 =C6=C1=CB=D5=CC=D8=D4=C5=D4=C5?<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'>=E2=CC=C1=C7=CF=C4=C1=D2=CE=C1 =DA=C1=D2=C1=CE=C5=C5 =DA=C1 =D7=C1=DB =CF=D4=D7=C5=D4.<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'>=F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD<o:p></o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'><o:p> </o:p></span></font></p>
<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DRU = style=3D'font-size:10.0pt; font-family:Arial'>=E5=C6=C9=CD=C5=CE=CB=CF =E5.=F7. <o:p></o:p></span></font></p>
</div>
</body>
</html>
------=_NextPart_000_00C0_01C76FCB.4CC01750--
|
Вопрос: Поскажите как лучше с ним затем работать: 1) сохранить в файл; 2) отделить текст и вложения; 3) декодировать их; 4) вывести текст (вложение) в компонент. C декодированием base64 вроде все ясно: | Код | string str = " 5M/C0tnKIMTFztgNCg0KIA0KDQri1cTY1MUgxM/C0tksIM/U18XU2NTFIM7BIM3PySDXz9DSz9PZ"; byte [] b = Convert.FromBase64String(str); string str1 = Encoding.GetEncoding("koi8-r").GetString(b);
|
А вот как это раскодировать (или рисунки) мне не ясно: | Код | Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
|
Слушаю мнения знающих людей !!! Это сообщение отредактировал(а) Modul - 28.3.2007, 16:24
--------------------
I'll be back !
|