How to get message by UID via POP3 protocol?
[email protected] Tue, 01 May 2007 04:33:32 -0400
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Hello
I test readmsg-uid.c to try to fetch message by UID via POP3 protocol
but it always not work
I trace these follow code
/* get the folder structure */
folder = mailfolder_new(storage, path, NULL);
if (folder == NULL) {
printf("error initializing folder\n");
goto free_storage;
}
r = mailfolder_connect(folder);
if (r != MAIL_NO_ERROR) {
printf("error initializing folder\n");
goto free_folder;
}
while (optind < argc) {
mailmessage * msg;
char * data;
size_t size;
char * uid;
uid = argv[optind];
r = mailsession_get_message_by_uid(folder->fld_session, uid, &msg);
if (r != MAIL_NO_ERROR) {
printf("** get message %s not found **\n", uid);
find out mailsession_get_message_by_uid() is implemented only for cached drivers
The test result seem like POP3 is not an cached driver..
And I add argument "-c /root/" to add cached directory for testing readmsg-uid
It still not work
How could I get message by UID via POP3 protocol, thank you :)
________________________________________________________________________
Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Libetpan-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libetpan-users