Re: pop3: avoid fetching a mail twice

Tom Schulte <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
On Monday 02 May 2005 10:22, DINH Viet Hoa wrote:

> (1) are you using the driver API ?
> (mailstorage / mailfolder / mailmessage)
>
> (2) or are you using the low-level POP3 API ?
>
> 1. the driver API will provide the cache for you.
>
> 2. in the low-level API, you can get the information of the message.
>
> int mailpop3_get_msg_info(mailpop3 * f, unsigned int index,
>                            struct mailpop3_msg_info ** result);
>
> struct mailpop3_msg_info {
>   unsigned int msg_index;
>   uint32_t msg_size;
>   char * msg_uidl;
>   int msg_deleted;
> };
>
> msg_uidl will be a unique identifier for the message and it will be kept
> between two connections.

Thank you for the quick response. Currently I'm using the driver API. As I 
understand, the cache depends on the Berkely db, and that is missing on my 
system. I think I have to consider the low-level API.

Thank you,
Tom


-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.