Roundcube Community Forum

Miscellaneous => Roundcube Discussion => Topic started by: sboulema on June 08, 2013, 12:15:03 PM

Title: Flagged/Unflagged state
Post by: sboulema on June 08, 2013, 12:15:03 PM
Hello,

When viewing a message, eg. the message.html template file, how can I find out if the message is flagged or not ?

Thanks in advance!
Title: Re: Flagged/Unflagged state
Post by: SKaero on June 14, 2013, 09:22:04 AM
I'm not sure what you mean, why do you need to know in the html?
Title: Re: Flagged/Unflagged state
Post by: sboulema on June 14, 2013, 10:22:12 AM
I want to add a button to the messageview to flag or unflag the message, but to show the right button I need to know the current flagged state of the message.
If looking for something like this:

<roundcube if:message[flagged]==true>
  <roundcube:button command="unflag">
<roundcube else>
  <roundcube:button command="flag">
<roundcube endif>