I want to write a program that will connect and and append a message in the destination mailbox. I wrote up to create and open a IMAP4 connection using mail_create and mail_append. Let say my IMAP4 server is running at IP 172.1.1.1

The first thing wrong with your sample program is that it does not include the mandatory statement
        #include "linkage.c"
at the start of the main() function. The code in linkage.c must be executed before anything else is done.

The second thing wrong with your sample program is that it does not include the mandatory callback functions, which are documented in internal.txt under the heading "Mail Program Callbacks". You must write these callback functions yourself; they are not part of c-client.

Please look at the mtest and mailutil programs, included as part of the UW IMAP toolkit, for a demonstration of how to write c-client programs. In particular, note that mailutil already has operations to transfer messages from one mail store to another; so you need to copy what mailutil does.

-- Mark --

http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.
_______________________________________________
Imap-uw mailing list
[email protected]
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to