From: philippe_mingo Date: Thu, 15 Nov 2001 09:50:28 +0000 (+0000) Subject: Fixed (c) headers. (I hope nothing has been messed up) X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=b78c2231e6d5c4b4f6b1fa96fb25957a6e34b9d1 Fixed (c) headers. (I hope nothing has been messed up) git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1754 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/plugins/filters/filters.php b/plugins/filters/filters.php index a919086a..d4d487df 100644 --- a/plugins/filters/filters.php +++ b/plugins/filters/filters.php @@ -1,10 +1,8 @@ - * Tyler Akins - * Brent Bice - * (c) 2000 (GNU GPL - see ../../COPYING) + * Message and Spam Filter Plugin + * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. * * This plugin filters your inbox into different folders based upon given * criteria. It is most useful for people who are subscibed to mailing lists @@ -22,6 +20,8 @@ * * Also view plugins/README.plugins for more information. * + * $Id$ + * */ function start_filters() { diff --git a/plugins/filters/options.php b/plugins/filters/options.php index 5160a93f..21582d9a 100644 --- a/plugins/filters/options.php +++ b/plugins/filters/options.php @@ -1,10 +1,8 @@ - * Tyler Akins - * Brent Bice - * (c) 2000 (GNU GPL - see ../../COPYING) + * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. * * This plugin filters your inbox into different folders based upon given * criteria. It is most useful for people who are subscibed to mailing lists @@ -22,7 +20,10 @@ * * Also view plugins/README.plugins for more information. * + * $Id$ + * */ + chdir('..'); require_once('../src/validate.php'); require_once('../functions/page_header.php'); diff --git a/plugins/filters/setup.php b/plugins/filters/setup.php index 19057390..03decc5a 100644 --- a/plugins/filters/setup.php +++ b/plugins/filters/setup.php @@ -1,10 +1,8 @@ - * Tyler Akins - * Brent Bice - * (c) 2000 (GNU GPL - see ../../COPYING) + * Copyright (c) 1999-2001 The Squirrelmail Development Team + * Licensed under the GNU GPL. For full terms see the file COPYING. * * This plugin filters your inbox into different folders based upon given * criteria. It is most useful for people who are subscibed to mailing lists @@ -22,6 +20,8 @@ * * Also view plugins/README.plugins for more information. * + * $Id$ + * */ // Set this to true if you have problems -- check the README file diff --git a/plugins/filters/sqimap_read_data.php b/plugins/filters/sqimap_read_data.php deleted file mode 100644 index 686b9e6e..00000000 --- a/plugins/filters/sqimap_read_data.php +++ /dev/null @@ -1,81 +0,0 @@ - /****************************************************************************** - ** Reads the output from the IMAP stream. If handle_errors is set to true, - ** this will also handle all errors that are received. If it is not set, - ** the errors will be sent back through $response and $message - ******************************************************************************/ - function sqimap_read_data ($imap_stream, $pre, $handle_errors, &$response, &$message) { - global $color, $squirrelmail_language, $imap_general_debug; - - $data = array(); - $size = 0; - - do { - $read = fgets($imap_stream, 9096); - if (ereg("^$pre (OK|BAD|NO)(.*)$", $read, $regs)) { - break; // found end of reply - } - - // Continue if needed for this single line - while (strpos($read, "\n") === false) { - $read .= fgets($imap_stream, 9096); - } - - $data[] = $read; - - if (ereg("^\\* [0-9]+ FETCH.*\\{([0-9]+)\\}", $read, $regs)) { - $size = $regs[1]; - if ($imap_general_debug) { - echo "Size is $size
\n"; - } - - $total_size = 0; - do { - $read = fgets($imap_stream, 9096); - if ($imap_general_debug) { - echo "$read
\n"; - flush(); - } - $data[] = $read; - $total_size += strlen($read); - } while ($total_size < $size); - - $size = 0; - } - // For debugging purposes - if ($imap_general_debug) { - echo "$read
\n"; - flush(); - } - } while (true); - - $response = $regs[1]; - $message = trim($regs[2]); - - if ($imap_general_debug) echo '--
'; - - if ($handle_errors == false) - return $data; - - if ($response == 'NO') { - // ignore this error from m$ exchange, it is not fatal (aka bug) - if (strstr($message, 'command resulted in') === false) { - set_up_language($squirrelmail_language); - echo "
\n"; - echo _("ERROR : Could not complete request."); - echo "
\n"; - echo _("Reason Given: "); - echo $message . "

\n"; - exit; - } - } else if ($response == 'BAD') { - set_up_language($squirrelmail_language); - echo "
\n"; - echo _("ERROR : Bad or malformed request."); - echo "
\n"; - echo _("Server responded: "); - echo $message . "

\n"; - exit; - } - - return $data; - } \ No newline at end of file