🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Decoding email subject string (or generally an email message)

#6514
From: Remy Lebeau (TeamB)
Date: Thu, 05 May 2005 17:17
18 lines
1776 bytes
"Danila Vershinin" <danprep@yahoo.com> wrote in message
news:427a3ba1@newsgroups.borland.com...

> how do I programmatically decode that string? obviously first
> few symbols tell me the encoding.... but what should I do next?

Read RFC 2047 (http://www.ietf.org/rfc/rfc2047.txt).  It explains how to
decode that data.

With that said, I would suggest dumping Netmasters altogether.  It is a
notoriously buggy library that has been very problematic over the years.
Switch to a different library, such as Indy (http://www.indyproject.org) or
ICS (http://www.overbyte.be).  As for decoding, I don't think ICS supports
decoding those header encodings, but Indy does.


Gambit
Technical Details
Message-ID: <427a5557$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <427a3ba1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ebae1c5dc81fe23
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <427a3ba1@newsgroups.borland.com>
Subject: Re: Decoding email subject string (or generally an email message)
Date: Thu, 5 May 2005 10:17:48 -0700
Lines: 20
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <427a5557$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1115313495 68.69.17.41 (5 May 2005 10:18:15 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!feeder.xsnews.nl!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail