Re: fetching a message

Luke Ehresman <[email protected]>
Newsgroups gmane.mail.libetpan.user
Message-ID <[email protected]>
Awesome!  I'm loving this library more and more. :)

Thanks for the help,
Luke


On Fri, 15 Apr 2005 16:39:28 +0200
DINH Viet Hoa <[email protected]> wrote:

> 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
> 


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
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.