Re: Message Flags Storage for IMAP
Jason Beard <jasonbeard-b/[email protected]>
| Newsgroups | gmane.mail.libetpan.user |
|---|---|
| Organization | Lucent Technologies |
| Message-ID | <[email protected]> |
Thanks,
Thought as much after I sent the email.
Thanks Again
Jason
DINH Viet Hoa wrote:
> Jason Beard wrote :
>
>
>>Thanks,
>>
>>Could you give me some sample code on how to set the message flags for a
>>particular message before calling mailsession_check()?
>
>
> void mark_as_read(mailmessage * msg)
> {
> msg->msg_flags->fl_flags |= MAIL_FLAG_SEEN;
>
> mailmessage_check(msg);
> }
>
> int main(void)
> {
> ...
> /* mark all the message as read, using mark_as_read() */
> ...
>
> mailsession_check(folder->fld_session);
>
> exit(EXIT_SUCCESS);
> }
>
> or
>
> {
> ...
> /* mark all the message as read */
>
> mailfolder_disconnect(folder);
>
> /* if you don't need the folder more */
> }
>
jasonbeard.vcf
(text/x-vcard, 329 B)
begin:vcard fn:Jason Beard n:Beard;Jason org:Lucent Worldwide Services;Professional Services adr:Broad lane;;Sterling Court;Bracknell;Berks;RG12 9GU;United Kingdom email;internet:jasonbeard-b/[email protected] title:Software Engineer tel;work:+44 1344 827567 url:http://www.lucent.com/ version:2.1 end:vcard