/* Generate the view link. */
$view_link = IMP::generateIMPUrl('view.php', $imp_mbox['mailbox'], $index, $mailbox_name);
+$imp_flags = &IMP_Imap_Flags::singleton();
+
/* Everything below here is related to preparing the output. */
if (!IMP::$printMode) {
/* Set the status information of the message. */
}
}
- $imp_flags = &IMP_Imap_Flags::singleton();
$flag_parse = $imp_flags->parse(array(
'div' => true,
'flags' => $flags,
if (!$use_pop) {
$n_template->set('mailbox', $imp_mbox['mailbox']);
- $n_template->set('flaglist', $imp_flags->getList(array('imap' => true, 'mailbox' => $imp_mbox['mailbox'])));
+
+ $tmp = $imp_flags->getFlagList($imp_mbox['mailbox']);
+ $n_template->set('flaglist_set', $tmp['set']);
+ $n_template->set('flaglist_unset', $tmp['unset']);
if ($conf['user']['allow_folders']) {
$n_template->set('move', Horde::widget('#', _("Move to folder"), 'widget moveAction', '', '', _("Move"), true));
<option value="" selected="selected"><gettext>Mark Messages</gettext></option>
<option value="" disabled="disabled">- - - - - - - -</option>
<option value=""><gettext>Mark as:</gettext></option>
-<loop:flaglist>
- <option value="<tag:flaglist.flag />"> <tag:flaglist.l /></option>
-</loop:flaglist>
+<loop:flaglist_set>
+ <option value="<tag:flaglist_set.f />"> <tag:flaglist_set.l /></option>
+</loop:flaglist_set>
<option value="" disabled="disabled">- - - - - - - -</option>
<option value=""><gettext>Unmark as:</gettext></option>
-<loop:flaglist>
- <option value="0<tag:flaglist.flag />"> <tag:flaglist.l /></option>
-</loop:flaglist>
+<loop:flaglist_unset>
+ <option value="<tag:flaglist_unset.f />"> <tag:flaglist_unset.l /></option>
+</loop:flaglist_unset>
</select>
</form>
</div>