Unable to retrieve mailmessage* ... Please help
Suman (సుమన్) <[email protected]> Thu, 18 Mar 2010 15:59:53 +0530
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I am trying to extract mime strings from select messages of a folder. here is the logic: // Initialize store. mailstorage_new() mailstorage_connect(); // Connect to a known folder on an IMAP server mailfolder_new(storage, "inbox", NULL); mailfolder_connect(folder); // Now, I am searching IMAP server for specific messages mailimap_search_key* key; // the search criteria. Initialized it appropriately. mailimap_search(imap_session, "UTF-8", key, &message_ids); // Now, try retrieving a message by its id. mailmessage* msg; mailfolder_get_message(folder, message_ids[0], &msg); // THIS SUCCEEDS // BUT WHILE FETCHING MIME OF THE MESSAGE, API FAILS char* mime; size_t mime_len; mailmessage_fetch(msg, &mime, &mime_len); // THIS RETURNS MAIL_ERROR_FETCH Please help me if I am doing something wrong here. Please point me to the right code. Many thanks! Suman ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev