Article View: borland.public.cppbuilder.internet.socket
Article #1914Re: IMAP problem
From: Remy Lebeau (TeamB)
Date: Tue, 03 Oct 2006 08:27
Date: Tue, 03 Oct 2006 08:27
32 lines
1765 bytes
1765 bytes
"Andre' Burke" <no.spam@spam.no> wrote in message
news:45221456@newsgroups.borland.com...
> I am able to open a mailbox and retrieve a message from inside it but when
I
> try to delete the message once I am finished with it, the DeleteMsgs
method
> returns false.
The only way that can happen is if you are passing invalid parameters.
> I am not sure if I am using the method correctly
You are not.
> int ii[1];
> ii[0] = 1;
> if (IdIMAP41->DeleteMsgs(ii,1))
That is not correct. The second parameter is the index of the last item in
the array, not the number of items in the array. You need to specify 0
instead of 1, ie:
if( IdIMAP41->DeleteMsgs(ii, 0) )
Alternatively, use the EXISTINGARRAY macro instead:
if( IdIMAP41->DeleteMsgs(EXISTINGARRAY(ii)) )
Gambit
Technical Details
Message-ID:
<45221f75$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mailReferences:
<45221456@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,df713b6bdeefcd62 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: <45221456@newsgroups.borland.com> Subject: Re: IMAP problem Date: Tue, 3 Oct 2006 01:27:38 -0700 Lines: 34 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: 69.169.4.232 Message-ID: <45221f75$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1159864181 69.169.4.232 (3 Oct 2006 01:29:41 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news.albasani.net!reader.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail