Roundcube Community Forum

 

Flagged/Unflagged state

Started by sboulema, June 08, 2013, 12:15:03 PM

Previous topic - Next topic

sboulema

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!

SKaero

I'm not sure what you mean, why do you need to know in the html?

sboulema

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>