[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-mailutils] Problem in settting flags ( Read/Unread) for the mai
From: |
Sergey Poznyakoff |
Subject: |
Re: [bug-mailutils] Problem in settting flags ( Read/Unread) for the mails in maildir format |
Date: |
Mon, 13 Nov 2006 10:22:02 +0200 |
Chaganti Chaganti <address@hidden> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [bug-mailutils] Problem in settting flags ( Read/Unread) for the mails in maildir format,
Sergey Poznyakoff <=