🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #3638

TIdPOP3->Retrieve();

#3638
From: Googie
Date: Mon, 08 Aug 2005 12:30
31 lines
1666 bytes
Hi!

I'm trying to download all messages from my mailbox with TIdPOP3, by:

TIdMessage *msg;
POP3->Connect();
int cnt = POP3->CheckMessages();
for ( int i = 1; i <= cnt; i++ )
{
    msg = new TIdMessage(this);
    POP3->Retrieve(i, msg);
    delete msg;
}
POP3->Disconnect();

Just to download, nothing to do, so far. I've got 39 e-mails at mailbox and
while downloading 12th e-mail, I get "Acces violation", exactly while
calling:
POP3->Retrieve(i, msg);

I'm using Indy 9.00.17 under BCB6.

I've also tried to ommit the 12th e-mail (by 'continue' statement), but the
error has occured again at 34th or sth like that.

I guess that this is a problem of some wrong syntax of e-mail contents, but
shouldn't it throw exemption instead of crashing?

--
Pozdrawiam (Greetings!)
Googie
Technical Details
Message-ID: <42f75029$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,cc0eed6462f14d80,start
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Googie" <googie@no.spam.org>
Newsgroups: borland.public.cppbuilder.internet.socket
Subject: TIdPOP3->Retrieve();
Date: Mon, 8 Aug 2005 14:30:16 +0200
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 195.214.216.6
Message-ID: <42f75029$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123504169 195.214.216.6 (8 Aug 2005 05:29:29 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.spamkiller.net!news-in.superfeed.net!caladan.landsraad.net!newsgroups.borland.com!not-for-mail