From: DINH V. H. <din...@fr...> - 2005-05-02 08:26:59
|
Tom Schulte wrote : > I'm playing around with the libetpan lib and can send and receive mail.= But=20 > how can i avoid to fetch a message twice from a pop3 server=3F I don't = want to=20 > delete the messages on the server. (1) are you using the driver API =3F (mailstorage / mailfolder / mailmessage) (2) or are you using the low-level POP3 API =3F 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=5Fget=5Fmsg=5Finfo(mailpop3 * f, unsigned int index, struct mailpop3=5Fmsg=5Finfo ** result); struct mailpop3=5Fmsg=5Finfo =7B unsigned int msg=5Findex; uint32=5Ft msg=5Fsize; char * msg=5Fuidl; int msg=5Fdeleted; =7D; msg=5Fuidl will be a unique identifier for the message and it will be kep= t=20 between two connections. --=20 DINH Viet Hoa |