Re: fetching a message
DINH Viet Hoa <[email protected]>
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Message-ID | <etPan.425fd220.8e288e.d8f@utopia> |
Luke Ehresman wrote :
> I am having trouble fetching message data. I have the UID of the
> message, but what function should I use to actually retrieve it? It
> seems that I should use the mailmessage_* functions, but they all
> require a mailmessage structure to be passed in. Should I just malloc a
> mailmessage structure and set the uid? The mailmessage_init() function
> is rather confusing (I'm not sure where I would get the driver and some
> of the other parameters for passing into it).
Some time ago, I added mailsession_get_message_by_uid(), then
mailfolder_get_message_by_uid() to satisfy that kind of need.
maildriver.h and mailfolder.h
you should rather use mailfolder_get_message_by_uid().
--
DINH V. Hoa,
"ben le problème c'est que les voitures à motorisations XXL
ça passe rarement inaperçu" -- raoul
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQBCX9KR7w+pfAWHa3MRAha+AJ45o2xJkqCIr9PGQdegWwVLq6AgUQCfdMRn Ar79bibUoqBycDJNBiuQ10o= =YfhG -----END PGP SIGNATURE-----