Author Topic: Flagged/Unflagged state  (Read 4326 times)

Offline sboulema

  • Newbie
  • *
  • Posts: 3
Flagged/Unflagged state
« 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!

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,901
    • SKaero - Custom Roundcube development
Re: Flagged/Unflagged state
« Reply #1 on: June 14, 2013, 09:22:04 AM »
I'm not sure what you mean, why do you need to know in the html?

Offline sboulema

  • Newbie
  • *
  • Posts: 3
Re: Flagged/Unflagged state
« Reply #2 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>