🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6509

Decoding email subject string (or generally an email message)

#6509
From: Danila Vershinin
Date: Thu, 05 May 2005 15:26
9 lines
1428 bytes
Normally when I receive mail in koi8-r encoding I see subject lines the way 
they were originally typed by sender, normal cyrillic symbols.
I use NetMasters' NMPOP3 component to get subject of an email message and 
get this line :
" =?koi8-r?B?1MXCxSk=?="
...instead of normal russian text. Sure, my program doesn't know how to 
decode this. The question is...
how do I programmatically decode that string? obviously first few symbols 
tell me the encoding.... but what should I do next? 
Technical Details
Message-ID: <427a3ba1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ebae1c5dc81fe23,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Danila Vershinin" <danprep@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Decoding email subject string (or generally an email message)
Date: Thu, 5 May 2005 19:26:38 +0400
Lines: 11
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 62.33.222.62
Message-ID: <427a3ba1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115306913 62.33.222.62 (5 May 2005 08:28:33 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail