$end_loop = $num_msgs - $start_msg + 1;
} else {
$end_loop = $show_num;
- }
- return fillMessageArray($imapConnection,$id,$end_loop,$show_num);
+ } return fillMessageArray($imapConnection,$id,$end_loop,$show_num);
} else {
return false;
}
} else {
$end_loop = $show_num;
}
- }
- $msgs = fillMessageArray($imapConnection,$id,$end_loop, $show_num);
+ } $msgs = fillMessageArray($imapConnection,$id,$end_loop, $show_num);
}
return $msgs;
}
sqgetGlobalVar('msort', $msort, SQ_SESSION);
} else {
sqsession_unregister('msort');
- sqsession_unregister('msgs');
- }
+ sqsession_unregister('msgs'); }
switch ($mode) {
case 'thread':
$id = get_thread_sort($imapConnection);
echo getButton('SUBMIT', 'expungeButton',_("Expunge"))
.' ' . _("mailbox") . "\n";
}
-
+ do_hook('mailbox_display_buttons');
echo getButton('SUBMIT', 'markRead',_("Read"));
echo getButton('SUBMIT', 'markUnread',_("Unread"));
echo getButton('SUBMIT', 'delete',_("Delete")) ." \n";
if ($target != '') {
$target = " target=\"$target\"";
}
+ $hooktext = do_hook_function('internal_link',$text);
+ if ($hooktext != '')
+ $text = $hooktext;
return '<a href="'.$base_uri.$path.'"'.$target.'>'.$text.'</a>';
}
}
$link .= '</a>';
+ $hooklink = do_hook_function('create_collapse_link',$link);
+ if ($hooklink != '')
+ $link = $hooklink;
+
/* Return the finished product. */
return ($link);
}
$body_a = sqimap_run_command($imapConnection, "FETCH $id RFC822",true, $response, $readmessage, $uid_support);
if ($response == 'OK') {
$k = $i + $start_index;
- $subject = $msgs[$k]['SUBJECT'];
+ $subject = $msgs[$k]['SUBJECT'];
array_shift($body_a);
$body = implode('', $body_a);
if (count($id)) {
$cnt = count($id);
if (!isset($attache)) {
+ $button_action = concat_hook_function('move_messages_button_action');
if (isset($markRead)) {
sqimap_toggle_flag($imapConnection, $id, '\\Seen',true,true);
} else if (isset($markUnread)) {
sqimap_toggle_flag($imapConnection, $id, '\\Seen',false,true);
} else {
- sqimap_msgs_list_delete($imapConnection, $mailbox, $id);
- if ($auto_expunge) {
- $cnt = sqimap_mailbox_expunge($imapConnection, $mailbox, true);
+ if (!$button_action) {
+ sqimap_msgs_list_delete($imapConnection, $mailbox, $id);
+ if ($auto_expunge) {
+ $cnt = sqimap_mailbox_expunge($imapConnection, $mailbox, true);
+ }
}
}
}