For future reference, please send questions involving the UW IMAP software to the imap-uw mailing list. The imap-protocol mailing list is for questions dealing with the IMAP protocol architecture and not for software questions. Thank you.

There are several problems.

First, you MUST NOT call mail_link() directly, and especially you should not do it in a subroutine. Instead, at the very start of your main() function, you should have:
        #include "linkage.c"

It is unpredictable what would happen if you fail to use the proper linkage.c, or if you call mail_link() for the same driver multiple times.

Second, I observe that you are doing:
                                                //reouverture
                                           
l_mstream=mail_open(l_mstream,g_a_cOpenMailString,T);
                                           //raifraichissement
                                           
l_mstream=mail_open(l_mstream,g_a_cOpenMailString,T);
immediately after the mail_expunge() call. I don't know why these statements are there, but they are definitely wrong.

Also note that in POP3, the action of an expunge does not actually happen until a proper close. That is because the POP3 protocol does not remove messages until QUIT time.

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to