🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Set message read/unread

#3447
From: Remy Lebeau (TeamB)
Date: Mon, 19 Sep 2005 06:27
25 lines
1547 bytes
"John" <qwertzuiopmiller@web.de> wrote in message
news:432c778a@newsgroups.borland.com...

> how can I set a message as read / unread? My code does not work:

Just saying it does not work says nothing about the actual problem you are
having.  Always provide specific details.

>   if (IdIMAP4->StoreFlags(UID,sdAddSilent,mfSeen))

That will not compile.  You need to use the following instead:

    int UID = some actual value;
    if( IdIMAP4->StoreFlags(OPENARRAY(int, (UID)), sdAddSilent,
TIdMessageFlagsSet() << mfSeen) )

Alternatively, use UIDStoreFlags() instead:

    int UID = some actual value;
    if( IdIMAP4->UIDStoreFlags(IntToStr(UID), sdAddSilent,
TIdMessageFlagsSet() << mfSeen) )


Gambit
Technical Details
Message-ID: <432e5a3f$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <432c778a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,66206990e3b353ce
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <432c778a@newsgroups.borland.com>
Subject: Re: Set message read/unread
Date: Sun, 18 Sep 2005 23:27:40 -0700
Lines: 27
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: <432e5a3f$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1127111231 68.69.17.41 (18 Sep 2005 23:27:11 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail