Chaganti Chaganti <[EMAIL PROTECTED]> wrote:

> // this is for setting flag as read
> mu_attribute_t attr = 0;
> status = mu_message_get_attribute( msg, &attr );
> mu_attribute_set_read( attr );
> mu_attribute_destroy( &attr, NULL );

That's wrong. Do not destroy objects obtained from mailutils.

> After Unset the mail looks like
> 
> .........
> .............
> same as above...
> 
> Status : O

Are you using mu_mailbox_flush? It always calls mu_attribute_set_seen
for each message.

> when I tried to find whether the flag is read or unread or seen .... etc ...
> using the API's
> 
> ///an example method
> void getFlag ( char & flag )
> {

That's correct. The same approach is used throughout mailutils programs
(in particular, in mail)

Regards,
Sergey





_______________________________________________
Bug-mailutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-mailutils

Reply via email to