Re: sorting messages in imap

DINH Viet Hoa <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <etPan.424e45dd.31013afc.d8f@utopia>
Luke Ehresman wrote :

> Is there a function to handle the IMAP "SORT" functionality?  I don't
> see one in mailimap.h.  How does one sort a list of messages in a
> folder with lebetpan?

neither IDLE, SORT, THREAD or SASL extension of IMAP are implemented in 
libetpan. I consider IDLE and SASL more interesting than the two others.

If you use the driver interface, you will find mail_build_thread()
and mail_thread_sort() to thread and sort messages. The work will be 
done locally on the computer. (mailthread.h)

That means that you have to use driver interface to use them or you 
could construct fake mailmessage object to build the initial needed 
mailmessage_list or mailmessage_tree.

-- 
DINH V. Hoa,

"sauvons les petits enfants asthmatiques" -- the penguin-biker
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBCTkcX7w+pfAWHa3MRAiH1AJ94ym9AJf/MU/g/r8yk2WfjW8VMEQCfYGDb
VKjSK182MCPy+VZVGP473Ho=
=IfEL
-----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.