Re: Crash in mail_setflag_full

2005-01-05 Thread hamaide
Quoting Mark Crispin <[EMAIL PROTECTED]>:
On Wed, 5 Jan 2005 [EMAIL PROTECTED] wrote:
I finally fixed it. The variable containing stream was overwritten by an
overflow bug
Was this in your code or in c-client?
In my code, either way I would have signaled it :-)
Julien



Re: Crash in mail_setflag_full

2005-01-05 Thread Mark Crispin
On Wed, 5 Jan 2005 [EMAIL PROTECTED] wrote:
I finally fixed it. The variable containing stream was overwritten by an
overflow bug
Was this in your code or in c-client?
-- Mark --
http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.


Problem sending command

2005-01-05 Thread hamaide
Hi,


I'm trying to send the command for Getannotation and Setannotation (from
ANNOTATE MORE draft)

I must send something like this :

GETANNOTATION "INBOX" "/comment" "value.priv"

I've look at the LIST code and write my code like this :

argument[0].type = ASTRING;
argument[0].text = "\"INBOX\"";

argument[1].type = ASTRING;
argument[1].text = " \"/comment\"";

argument[2].type = ASTRING;
argument[2].text = "\"value.priv\"";

arg[0] = &(argument[0]);
arg[1] = &(argument[1]);
arg[2] = &(argument[2]);
arg[3] = NIL;


reply = imap_send(gStream, "SETANNOTATION", arg);

if (imap_OK (gStream,reply)) return NULL;


But instead of creating a single line, I get 3 message :

GETANNOTATION {xxx}

followed by a +go ahead from server

and so on.

The message send for the LIST command is complete

Does anybody has an idea of how format my argument to send a single message?

Thanks

Julien Hamaide

-- 
--
 For information about this mailing list, and its archives, see: 
 http://www.washington.edu/imap/c-client-list.html
--


Re: Crash in mail_setflag_full

2005-01-05 Thread hamaide
Quoting Mark Crispin <[EMAIL PROTECTED]>:
On Wed, 29 Dec 2004 [EMAIL PROTECTED] wrote:
When I call the function this way
mail_setflag_full(stream, "valid_uid", "\\Deleted", ST_UID)
the program crash. Am i doing something wrong?
Unfortunately, your report is too vague to diagnose without additional
information.
What type of crash do you get?
-- Mark --
http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
I finally fixed it. The variable containing stream was overwritten by an
overflow bug
Thanks