[Imap-uw] invalid remote specification
Hello, I am trying to write a simple test program for the c-client library based off of mtest.c. When I am entering the mailbox string (eg. {imap.gmail.com:993/imap/ssl}INBOX) I keep receiving an error saying "Can't open mailbox : invalid remote specification". What could be the causes to thsi error? Thanks. ___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
Re: [Imap-uw] invalid remote specification
The most common cause of this problem is failure to do #include "linkage.c" early in the main() function of the application (and prior to any c-client library calls). The use of linkage.c is mandatory. Some programmers omit the linkage entirely; others attempt to do the linkage manually. Either way, they come to grief. If you are certain that you have included linkage.c in your main() function, then the only other cause is that the IMAP software was built without SSL. Finally: in your example, neither the ":993", nor the "/imap", nor the "INBOX" are necessary although they won't hurt. "/imap" is the default, ":993" is implied by "/ssl" for IMAP, and "INBOX" is also the default. Hence {imap.gmail.com/ssl} is exactly equivalent to {imap.gmail.com:993/imap/ssl}INBOX but is much less typing. On Wed, 18 Nov 2009, Mike T wrote: I am trying to write a simple test program for the c-client library based off of mtest.c. When I am entering the mailbox string (eg. {imap.gmail.com:993/imap/ssl}INBOX) I keep receiving an error saying "Can't open mailbox : invalid remote specification". What could be the causes to thsi error? -- 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 Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw
[Imap-uw] make errors
Hi, I just downloaded imap-2007e and did the "make lr5" command in CentOS 5 environment. It gave me a lot of errors. I already compiled and did make of "openssl-0.9.8l" successfully. Please help! Thanks, Franklin Here are the errors: osdep.c:89:31: error: security/pam_appl.h: No such file or directory osdep.c:106: warning: ‘struct pam_response’ declared inside parameter list osdep.c:106: warning: its scope is only this definition or declaration, which is probably not what you want osdep.c:106: warning: ‘struct pam_message’ declared inside parameter list osdep.c: In function ‘checkpw_conv’: osdep.c:110: error: invalid application of ‘sizeof’ to incomplete type ‘struct pam_response’ osdep.c:111: error: dereferencing pointer to incomplete type osdep.c:112: error: ‘PAM_PROMPT_ECHO_ON’ undeclared (first use in this function) osdep.c:112: error: (Each undeclared identifier is reported only once osdep.c:112: error: for each function it appears in.) osdep.c:113: error: invalid use of undefined type ‘struct pam_response’ osdep.c:113: error: dereferencing pointer to incomplete type osdep.c:113: error: ‘PAM_SUCCESS’ undeclared (first use in this function) osdep.c:114: error: invalid use of undefined type ‘struct pam_response’ osdep.c:114: error: dereferencing pointer to incomplete type osdep.c:116: error: ‘PAM_PROMPT_ECHO_OFF’ undeclared (first use in this function) osdep.c:117: error: invalid use of undefined type ‘struct pam_response’ osdep.c:117: error: dereferencing pointer to incomplete type osdep.c:118: error: invalid use of undefined type ‘struct pam_response’ osdep.c:118: error: dereferencing pointer to incomplete type osdep.c:120: error: ‘PAM_TEXT_INFO’ undeclared (first use in this function) osdep.c:121: error: ‘PAM_ERROR_MSG’ undeclared (first use in this function) osdep.c:122: error: invalid use of undefined type ‘struct pam_response’ osdep.c:122: error: dereferencing pointer to incomplete type osdep.c:123: error: invalid use of undefined type ‘struct pam_response’ osdep.c:123: error: dereferencing pointer to incomplete type osdep.c:127: error: ‘PAM_CONV_ERR’ undeclared (first use in this function) osdep.c: At top level: osdep.c:138: error: expected ‘)’ before ‘*’ token osdep.c: In function ‘checkpw’: osdep.c:155: error: ‘pam_handle_t’ undeclared (first use in this function) osdep.c:155: error: ‘hdl’ undeclared (first use in this function) osdep.c:156: error: storage size of ‘conv’ isn’t known osdep.c:164: error: ‘PAM_SUCCESS’ undeclared (first use in this function) osdep.c:165: error: ‘PAM_RHOST’ undeclared (first use in this function) osdep.c:168: error: ‘PAM_ESTABLISH_CRED’ undeclared (first use in this function) osdep.c:184: error: ‘checkpw_cleanup’ undeclared (first use in this function) make[3]: *** [osdep.o] Error 1 make[3]: Leaving directory `/usr/src/imap-2007e/c-client' make[2]: *** [lnp] Error 2 make[2]: Leaving directory `/usr/src/imap-2007e/c-client' make[1]: *** [OSTYPE] Error 2 make[1]: Leaving directory `/usr/src/imap-2007e' make: *** [lr5] Error 2 ___ Imap-uw mailing list Imap-uw@u.washington.edu http://mailman2.u.washington.edu/mailman/listinfo/imap-uw