Re: pop3: Refreshing view of messages contained in a folder

DINH Viet Hoa <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <etPan.428cc910.5c7b3001.62eb@utopia>
DINH Viet Hoa wrote :

> > I have a POP3 connection and want to refresh my view of the messages
> > contained in the inbox. I thought I'd just be able to call
> > mailfolder_get_messages_list but this resolves to a call to
> > mailpop3_list_if_needed. Because I've previously called
> > mailfolder_get_messages_list the call to the server to retrieve the current
> > list of messages isn't made.
> > 
> > Do I need to resort to calling the lower level functions myself in order to
> > refresh my view of the inbox?

I forget to give the detail that for POP3 standard (correct me if I am 
wrong), LIST will always return the same result in the same session.

> As a workaround, you can do the following :
> - disconnect the folder
> - disconnect the storage
> - reconnect the storage
> - reconnect the folder
> 
> the message list will be refreshed.
> 
> And yes, POP3 need a disconnection so that the message list is 
> refreshed.

just for information, that workaround has been implemented and is 
committed in the CVS.

-- 
DINH V. Hoa,

"on dirait un gamin de 2 ans" -- coin-coin
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)

iD8DBQBCjMlp7w+pfAWHa3MRAmovAJ4kSnbtjyeEFtOtiwNhhRsqHuJTJACeO9vQ
Vef6WI+y/vAybjN2vLrIx34=
=gCRG
-----END PGP SIGNATURE-----
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.