From 854379ca93275fd2b8cf196e3cc8da90f3bf07f6 Mon Sep 17 00:00:00 2001 From: ebullient Date: Wed, 28 Jan 2004 05:18:43 +0000 Subject: [PATCH] removing now obsolete plugin. YAY! :-P git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@6453 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/delete_move_next/README | 81 ------ plugins/delete_move_next/index.php | 19 -- plugins/delete_move_next/setup.php | 385 ----------------------------- 3 files changed, 485 deletions(-) delete mode 100644 plugins/delete_move_next/README delete mode 100644 plugins/delete_move_next/index.php delete mode 100644 plugins/delete_move_next/setup.php diff --git a/plugins/delete_move_next/README b/plugins/delete_move_next/README deleted file mode 100644 index d12030d9..00000000 --- a/plugins/delete_move_next/README +++ /dev/null @@ -1,81 +0,0 @@ -delete_move_next -- Version 3.0 -By Ben Brillat - -This is a modified version of Delete Move Next by Bryan Stalcup - -If you read the mail in your inbox starting with the most recent, this -plugin is meant for you. It adds a set of mail management links across -the bottom or top of the email. - -Features -======== -* Saves you the need to scroll up to go to the previous or next email -* Allows you to delete the current email and view the next or previous - message in step -* Allows you to move the current email to any mailbox and view the next - - -Description -=========== -This plugin adds links to the message view for each message. -The links include "Previous", "Next", "Delete & Previous", and "Delete & -Next", which deletes the current email and displays the next email. -Also included is a menu to move the current email to any folder and -then display the next email. It helps me keep up with my constantly -overflowing inbox. - -Future Work -=========== -* You tell me... - - -Limitations (Known bugs) -======================== --If you delete or move an email, then use the "Message List" link at the - top left of the header, the message list is pulled from cache, and does - not reflect the deleted/moved email(s). To view the current list, click - the mailbox link in the left-hand navigation bar. --"Delete & Prev" or "Delete & Next" can result in strange behavior when - deleting the last or next to last message in a mailbox when using any - sort order other than 0. It won't kill anything, you just might arrive - at a message other than the one you were expecting to see. - If anyone has any suggestions on this one, please let me know. - - -Installation -============ -See the "INSTALL" file. - -Changes -======= -See the "CHANGELOG" file. -New versions are available at: -http://www.brillat.net/~ben/files/projects/squirrelmail/ - -Copyright -========= -Copyright (C) 2001 Benjamin Brillat - -This program is free software; you can redistribute it and/or -modify it under the terms of the GNU General Public License -as published by the Free Software Foundation; either version 2 -of the License, or (at your option) any later version. - -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with this program ("gpl.txt"); if not, write to the Free Software -Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - -Contact -======= - -Let me know what you think: -Ben Brillat -74 Punch Bowl Trail -W. Kingston, RI 02892 USA - - diff --git a/plugins/delete_move_next/index.php b/plugins/delete_move_next/index.php deleted file mode 100644 index 15a3799f..00000000 --- a/plugins/delete_move_next/index.php +++ /dev/null @@ -1,19 +0,0 @@ - diff --git a/plugins/delete_move_next/setup.php b/plugins/delete_move_next/setup.php deleted file mode 100644 index d9dee572..00000000 --- a/plugins/delete_move_next/setup.php +++ /dev/null @@ -1,385 +0,0 @@ -key ' . $keys[$i] . ' msgid ' . $msgs[$keys[$i]]['ID'] . '

'; - } -} - - -function delete_move_expunge_from_all($id) { - global $msgs, $msort, $sort, $imapConnection, $mailbox, $uid_support; - $delAt = -1; - for ($i = 0; $i < count($msort); $i++) { - if ($msgs[$i]['ID'] == $id) { - $delAt = $i; - } elseif ($msgs[$i]['ID'] > $id) { - if (!$uid_support) { - $msgs[$i]['ID']--; - } - } - } - - $msgs = delete_move_del_arr_elem($msgs, $delAt); - $msort = delete_move_del_arr_elem($msort, $delAt); - if ($sort < 6) { - if ($sort % 2) { - asort($msort); - } else { - arsort($msort); - } - } - sqsession_register($msgs, 'msgs'); - sqsession_register($msort, 'msort'); - - sqimap_mailbox_expunge($imapConnection, $mailbox, true); -} - -function delete_move_next_action() { - - global $PHP_SELF; - - if ( sqgetGlobalVar('delete_id', $delete_id, SQ_GET) ) { - delete_move_next_delete(); - fix_sort_array(); - } elseif ( sqgetGlobalVar('move_id', $move_id, SQ_POST) ) { - delete_move_next_move(); - fix_sort_array(); - } -} - -function delete_move_next_read_t() { - - global $delete_move_next_t; - - if($delete_move_next_t == 'on') { - delete_move_next_read('top'); - } -} - -function delete_move_next_read_b() { - - global $delete_move_next_b; - - if ($delete_move_next_b != 'off') { - delete_move_next_read('bottom'); - } -} - - -function delete_move_next_read($currloc) { - global $delete_move_next_formATtop, $delete_move_next_formATbottom, - $color, $where, $what, $currentArrayIndex, $passed_id, - $mailbox, $sort, $startMessage, $delete_id, $move_id, - $imapConnection, $auto_expunge, $move_to_trash, $mbx_response, - $uid_support, $passed_ent_id; - - $urlMailbox = urlencode($mailbox); - - if (!isset($passed_ent_id)) $passed_ent_id = 0; - - if (!(($where && $what) || ($currentArrayIndex == -1)) && !$passed_ent_id) { - $next = findNextMessage($passed_id); - $prev = findPreviousMessage($mbx_response['EXISTS'], $passed_id); - $prev_if_del = $prev; - $next_if_del = $next; - if (!$uid_support && ($auto_expunge || $move_to_trash)) { - if ($prev_if_del > $passed_id) { - $prev_if_del--; - } - if ($next_if_del > $passed_id) { - $next_if_del--; - } - } - - /* Base is illegal within documents - * $location = get_location(); - * echo "" . */ - echo ''. - ''. - "'; - - if ($next_if_del < 0) { - $next_if_del = $prev_if_del; - } - if (($delete_move_next_formATtop == 'on') && ($currloc == 'top')) { - if ($next_if_del > 0) { - delete_move_next_moveNextForm($next_if_del); - } else { - delete_move_next_moveRightMainForm(); - } - } - if (($delete_move_next_formATbottom != 'off') && ($currloc == 'bottom')) { - if ($next_if_del > 0) { - delete_move_next_moveNextForm($next_if_del); - } else { - delete_move_next_moveRightMainForm(); - } - } - echo '
"; - - if ($prev > 0){ - echo "" . _("Delete & Prev") . "" . " | \n"; - } - else { - echo _("Delete & Prev") . " | "; - } - if ($next > 0){ - echo "" . _("Delete & Next") . "\n"; - } else { - echo _("Delete & Next"); - } - echo '
'; - } -} - -function get_move_target_list() { - global $imapConnection, $lastTargetMailbox; - if (isset($lastTargetMailbox) && !empty($lastTargetMailbox)) { - echo sqimap_mailbox_option_list($imapConnection, array(strtolower($lastTargetMailbox))); - } - else { - echo sqimap_mailbox_option_list($imapConnection); - } -} - -function delete_move_next_moveNextForm($next) { - - global $color, $where, $what, $currentArrayIndex, $passed_id, - $mailbox, $sort, $startMessage, $delete_id, $move_id, - $imapConnection; - - echo ''. - "". - "
". - "". - "". - _("Move to:") . - ' '. - ''. - ''. - '
'. - ''. - ''; - -} -function delete_move_next_moveRightMainForm() { - - global $color, $where, $what, $currentArrayIndex, $passed_id, - $mailbox, $sort, $startMessage, $delete_id, $move_id, - $imapConnection; - - echo '' . - "". - "
" . - "". - _("Move to:") . - ' ' . - ''. - ''. - '
' . - ''. - ''; - -} - - -function delete_move_next_delete() { - global $imapConnection, $auto_expunge; - - sqgetGlobalVar('delete_id', $delete_id, SQ_GET); - sqgetGlobalVar('mailbox', $mailbox, SQ_GET); - - sqimap_messages_delete($imapConnection, $delete_id, $delete_id, $mailbox); - if ($auto_expunge) { - delete_move_expunge_from_all($delete_id); - // sqimap_mailbox_expunge($imapConnection, $mailbox, true); - } -} - -function delete_move_next_move() { - global $imapConnection, $mailbox, $auto_expunge, $lastTargetMailbox; - - sqgetGlobalVar('move_id', $move_id, SQ_POST); - sqgetGlobalVar('mailbox', $mailbox, SQ_FORM); - sqgetGlobalVar('targetMailbox', $targetMailbox, SQ_POST); - - // Move message - sqimap_messages_copy($imapConnection, $move_id, $move_id, $targetMailbox); - sqimap_messages_flag($imapConnection, $move_id, $move_id, 'Deleted', true); - if ($auto_expunge) { - delete_move_expunge_from_all($move_id); - // sqimap_mailbox_expunge($imapConnection, $mailbox, true); - } - - if ($targetMailbox != $lastTargetMailbox) { - $lastTargetMailbox = $targetMailbox; - sqsession_register('lastTargetMailbox' , $lastTargetMailbox); - } -} - -function delete_move_next_display_inside() { - global $username,$data_dir, - $delete_move_next_t, $delete_move_next_formATtop, - $delete_move_next_b, $delete_move_next_formATbottom; - - echo "" . html_tag('td',_("Delete/Move/Next Buttons:"),'right','','valign=top') . "\n". - " ' . _("Display at top"). - " ' . _("with move option") . '
'; - - echo ' ' . _("Display at bottom") . - ' ' . _("with move option") . '
'. - "\n"; -} - -function delete_move_next_display_save() { - - global $username,$data_dir; - - if ( sqgetGlobalVar('delete_move_next_ti', $delete_move_next_ti, SQ_POST) ) { - setPref($data_dir, $username, 'delete_move_next_t', 'on'); - } else { - setPref($data_dir, $username, 'delete_move_next_t', "off"); - } - - if ( sqgetGlobalVar('delete_move_next_formATtopi', $delete_move_next_formATtopi, SQ_POST) ) { - setPref($data_dir, $username, 'delete_move_next_formATtop', 'on'); - } else { - setPref($data_dir, $username, 'delete_move_next_formATtop', "off"); - } - - - if ( sqgetGlobalVar('delete_move_next_bi', $delete_move_next_bi, SQ_POST) ) { - setPref($data_dir, $username, 'delete_move_next_b', 'on'); - } else { - setPref($data_dir, $username, 'delete_move_next_b', "off"); - } - - if ( sqgetGlobalVar('delete_move_next_formATbottomi', $delete_move_next_formATbottomi, SQ_POST) ) { - setPref($data_dir, $username, 'delete_move_next_formATbottom', 'on'); - } else { - setPref($data_dir, $username, 'delete_move_next_formATbottom', "off"); - } -} - - -function delete_move_next_loading_prefs() { - global $username,$data_dir, - $delete_move_next_t, $delete_move_next_formATtop, - $delete_move_next_b, $delete_move_next_formATbottom; - - $delete_move_next_t = getPref($data_dir, $username, 'delete_move_next_t'); - $delete_move_next_b = getPref($data_dir, $username, 'delete_move_next_b'); - $delete_move_next_formATtop = getPref($data_dir, $username, 'delete_move_next_formATtop'); - $delete_move_next_formATbottom = getPref($data_dir, $username, 'delete_move_next_formATbottom'); - -} - -?> -- 2.25.1