🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Get list of new messages in POP3

#5312
From: Don Siders
Date: Wed, 22 Sep 2004 21:16
25 lines
1873 bytes
> I'm using Indy 9 in BCB6. I can connect to a POP3 mailbox and find the 
> number of messages in my mailbox. I can cycle through the messages with 
> Retrieve() and read the subject of each message but I never get any 
> value for Flags (in the TIdMessage object, I'm checking for the value 
> mfRecent to see if a message has recently arrived but Flags is always = 
> 0) even though I've sent a recent message to the mailbox. No matter how 
> many times I use this, I always get the same number for iMsg (the result 
> of CheckMessages()) and a value of 0 for NewMsgCount (because idm->Flags 
> is always = 0).

<snip/>

> Can anyone tell me what I'm doing wrong? Thank you.

The POP3 protocol makes no provisions for message flags.  That aspect requires IMAP.  So the flags ( while available in TIdMessage) are not used with TIdPOP3.

hth...
Technical Details
Message-ID: <4151ec2e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4151d06a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,6a75ae9b12954a47
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Don Siders" <mudshark@rancidbud.org>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4151d06a$1@newsgroups.borland.com>
Subject: Re: Get list of new messages in POP3
Date: Wed, 22 Sep 2004 17:16:55 -0400
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain;
 charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 24.241.192.135
Message-ID: <4151ec2e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1095887918 24.241.192.135 (22 Sep 2004 14:18:38 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail