Trimming whitespace and replacing tabs
authorjervfors <jervfors@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 23 Apr 2005 12:08:00 +0000 (12:08 +0000)
committerjervfors <jervfors@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sat, 23 Apr 2005 12:08:00 +0000 (12:08 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9378 7612ce4b-ef26-0410-bec9-ea0150e637f0

57 files changed:
class/deliver/Deliver.class.php
class/template/template.class.php
config/config_default.php
functions/abook_ldap_server.php
functions/addressbook.php
functions/attachment_common.php
functions/auth.php
functions/display_messages.php
functions/file_prefs.php
functions/folder_manip.php
functions/forms.php
functions/global.php
functions/i18n.php
functions/imap.php
functions/imap_asearch.php
functions/imap_mailbox.php
functions/imap_messages.php
functions/mailbox_display.php
functions/mime.php
functions/page_header.php
functions/strings.php
functions/url_parser.php
include/options/display.php
plugins/administrator/defines.php
plugins/administrator/options.php
plugins/bug_report/setup.php
plugins/bug_report/system_specs.php
plugins/filters/filters.php
plugins/mail_fetch/fetch.php
plugins/mail_fetch/functions.php
plugins/mail_fetch/setup.php
plugins/message_details/message_details_bottom.php
plugins/message_details/message_details_main.php
plugins/message_details/message_details_top.php
plugins/newmail/functions.php
plugins/newmail/loadfile.php
plugins/newmail/newmail_opt.php
plugins/squirrelspell/setup.php
src/about.php
src/addrbook_popup.php
src/addrbook_search_html.php
src/addressbook.php
src/configtest.php
src/empty_trash.php
src/folders.php
src/help.php
src/left_main.php
src/login.php
src/options.php
src/printer_friendly_bottom.php
src/printer_friendly_top.php
src/redirect.php
src/signout.php
src/view_header.php
src/view_html.php
src/webmail.php
templates/util_message_list.php

index 9a9bce0596f9d6bde60f83d514851576dace36ac..81ba38b6311e9c8495485b0b73237e70d73a03af 100644 (file)
@@ -694,4 +694,4 @@ class Deliver {
         return $refer;
     }
 }
-?>
+?>
\ No newline at end of file
index f1787f85b2e7cd25b515c8b060fed68b8d9fc59f..e7e5175b38fc8acc5931c0b20a83044ea3f136e9 100755 (executable)
@@ -184,4 +184,4 @@ class Template
 
 }
 
-?>
+?>
\ No newline at end of file
index 47d71ab4dbbcbdb677fcaf500a370f30c03c7335..8d24c2e744481f78ffe125751d4bd956e652bb2e 100644 (file)
@@ -1007,4 +1007,4 @@ $config_use_color = 2;
  * sent and regular output to begin, which will majorly screw
  * things up when we try to send more headers later.
  */
-?>
+?>
\ No newline at end of file
index be7aa4e84132af9fd4002bba8e2295284018fdc4..de150de2958fbb3c482ff05febaff7bbf5b99ba4 100644 (file)
@@ -9,7 +9,7 @@
  *
  * LDAP filtering code by Tim Bell
  *   <bhat at users.sourceforge.net> (#539534)
- * ADS limit_scope code by Michael Brown 
+ * ADS limit_scope code by Michael Brown
  *   <mcb30 at users.sourceforge.net> (#1035454)
  *
  * @version $Id$
@@ -307,7 +307,7 @@ class abook_ldap_server extends addressbook_backend {
         $expr = $this->charset_encode($expr);
 
         /*
-         * allow use of one asterisk in search. 
+         * allow use of one asterisk in search.
          * Don't allow any ldap special chars if search is different
          */
         if($expr!='*') {
index 90de7dab7a625cfbec275b182a762747b89163c6..f92a951dfd8220acbd5722aa59fab17402187eca 100644 (file)
@@ -27,7 +27,7 @@ global $addrbook_dsn, $addrbook_global_dsn;
 
 /**
  * Create and initialize an addressbook object.
- * @param boolean $showerr display any address book init errors. html page header 
+ * @param boolean $showerr display any address book init errors. html page header
  * must be created before calling addressbook_init() with $showerr enabled.
  * @param boolean $onlylocal enable only local address book backends
  * @return object address book object.
@@ -73,7 +73,7 @@ function addressbook_init($showerr = true, $onlylocal = false) {
     }
 
     /* Global file based addressbook */
-    if (isset($abook_global_file) && 
+    if (isset($abook_global_file) &&
         isset($abook_global_file_writeable) &&
         isset($abook_global_file_listing) &&
         trim($abook_global_file)!=''){
@@ -81,7 +81,7 @@ function addressbook_init($showerr = true, $onlylocal = false) {
         // Detect place of address book
         if (! preg_match("/[\/\\\]/",$abook_global_file)) {
             /* no path chars, address book stored in data directory
-             * make sure that there is a slash between data directory 
+             * make sure that there is a slash between data directory
              * and address book file name
              */
             $abook_global_filename=$data_dir
index 69a722c877986dfb33bbf6214a6ec505f71cefbd..871a1344020237fb85e94137a54c937af9c36355 100644 (file)
@@ -169,7 +169,7 @@ function attachment_common_link_html(&$Args) {
 }
 
 /**
- * Adds href and text keys to attachment_common array for image attachments 
+ * Adds href and text keys to attachment_common array for image attachments
  * @param array $Args attachment $type hook arguments
  * @since 1.2.0
  */
@@ -195,7 +195,7 @@ function attachment_common_link_image(&$Args) {
 }
 
 /**
- * Adds href and text keys to attachment_common array for vcard attachments 
+ * Adds href and text keys to attachment_common array for vcard attachments
  * @param array $Args attachment $type hook arguments
  * @since 1.2.0
  */
@@ -214,7 +214,7 @@ function attachment_common_link_vcard(&$Args) {
 
 /**
  * Processes octet-stream attachments.
- * Calls attachment_common-load_mime_types and attachment $type hooks. 
+ * Calls attachment_common-load_mime_types and attachment $type hooks.
  * @param array $Args attachment $type hook arguments
  * @since 1.2.0
  */
index 0a7ca543a5315a1d1be3e0c72d25ea26567e6d80..ac30c4b454a7dd474502c5d2e30e310cfe4b6d58 100644 (file)
@@ -249,4 +249,4 @@ function get_smtp_user(&$user, &$pass) {
     }
 }
 
-?>
+?>
\ No newline at end of file
index b6ccd15c2e5ca8418eb8d0aefe83997139cff492..73aab2af2b2dcce7c31b23cc3ffac48a0b78ee17 100644 (file)
@@ -177,4 +177,4 @@ function error_option_save($message) {
     $optpage_save_error=array_merge($optpage_save_error,array($message));
 }
 // vim: et ts=4
-?>
+?>
\ No newline at end of file
index e852387ef90b43f69036ec392dfa12bcfd8c75b7..93b47143d68ca02123f57f9fecfde73c63ce4800 100644 (file)
@@ -186,7 +186,7 @@ function checkForPrefs($data_dir, $username, $filename = '') {
     if (!@file_exists($filename) ) {
 
         /* If it does not exist, check for default_prefs */
-        
+
         /* First, check legacy locations: data dir */
         if(substr($data_dir,-1) != '/') {
             $data_dir .= '/';
@@ -203,7 +203,7 @@ function checkForPrefs($data_dir, $username, $filename = '') {
         if (!@file_exists($default_pref)) {
             $default_pref = SM_PATH . 'config/default_pref';
         }
-        
+
         /* If a default_pref file found, try to copy it, if none found,
          * try to create an empty one. If that fails, report an error.
          */
@@ -277,4 +277,4 @@ function getSig($data_dir, $username, $number) {
 }
 
 // vim: et ts=4
-?>
+?>
\ No newline at end of file
index 4b4708fdd5665d99f3f0fe146de05b0b674d6a85..186e32f3f3f85f865e134593f575286566b308e0 100644 (file)
@@ -25,14 +25,14 @@ function folders_checkname($imapConnection, $folder_name, $delimiter)
 {
     if (substr_count($folder_name, '"') || substr_count($folder_name, "\\") ||
         substr_count($folder_name, $delimiter) || ($folder_name == '')) {
-        
+
         global $color;
         error_box(_("Illegal folder name.") . "<br />\n" .
-           sprintf(_("The name may not contain any of the following: %s"), '<tt>" \\ '.$delimiter.'</tt>')
-           . "<br />\n" .
-           _("Please select a different name.").
-            '<br /><a href="folders.php">'.
-           _("Click here to go back") . '</a>.', $color);
+                sprintf(_("The name may not contain any of the following: %s"), '<tt>" \\ '.$delimiter.'</tt>')
+                . "<br />\n" .
+                _("Please select a different name.").
+                '<br /><a href="folders.php">'.
+                _("Click here to go back") . '</a>.', $color);
 
         sqimap_logout($imapConnection);
         exit;
@@ -49,7 +49,7 @@ function folders_create ($imapConnection, $delimiter, $folder_name, $subfolder,
     global $folder_prefix;
 
     $folder_name = imap_utf7_encode_local($folder_name);
-   
+
     if ( ! empty($contain_subs) ) {
         $folder_name = $folder_name . $delimiter;
     }
@@ -83,7 +83,7 @@ function folders_rename_getname ($imapConnection, $delimiter, $old) {
     if ( $old == '' ) {
         plain_error_message(_("You have not selected a folder to rename. Please do so.").
             '<br /><a href="../src/folders.php">'._("Click here to go back").'</a>.', $color);
-        sqimap_logout($imapConnection);    
+        sqimap_logout($imapConnection);
         exit;
     }
 
@@ -133,8 +133,8 @@ function folders_rename_getname ($imapConnection, $delimiter, $old) {
              '<input type="submit" name="cancelbutton" value="'._("Cancel")."\" />\n".
              '</form><br /></td></tr></table>';
     echo "\n</td></tr></table>\n</td></tr></table>\n\n</body></html>";
-    
-    sqimap_logout($imapConnection);    
+
+    sqimap_logout($imapConnection);
     exit;
 }
 
@@ -148,7 +148,7 @@ function folders_rename_do($imapConnection, $delimiter, $orig, $old_name, $new_n
     $orig = imap_utf7_encode_local($orig);
     $old_name = imap_utf7_encode_local($old_name);
     $new_name = imap_utf7_encode_local($new_name);
-    
+
     if ($old_name != $new_name) {
 
         if (strpos($orig, $delimiter)) {
@@ -214,7 +214,7 @@ function folders_delete_ask ($imapConnection, $folder_name)
 
     echo "\n</td></tr></table>\n</td></tr></table>\n\n</body></html>";
 
-    sqimap_logout($imapConnection);    
+    sqimap_logout($imapConnection);
     exit;
 }
 
@@ -224,7 +224,7 @@ function folders_delete_ask ($imapConnection, $folder_name)
 function folders_delete_do ($imapConnection, $delimiter, $folder_name)
 {
     require_once(SM_PATH . 'functions/tree.php');
-    
+
     $boxes = sqimap_mailbox_list ($imapConnection);
 
     global $delete_folder, $imap_server_type, $trash_folder, $move_to_trash;
@@ -310,7 +310,7 @@ function folders_subscribe($imapConnection, $folder_names)
                 '<br /><a href="../src/folders.php">'._("Click here to go back").'</a>.', $color);
             sqimap_logout($imapConnection);
             exit;
-            
+
         }
     }
     foreach ( $folder_names as $folder_name ) {
@@ -342,4 +342,4 @@ function folders_unsubscribe($imapConnection, $folder_names)
 }
 
 
-?>
+?>
\ No newline at end of file
index 95fa1ced587d079fbf6d0ec38b4015991843c3c1..24e00e9137fb00a6bc89e9a31fc2b7207df14d85 100644 (file)
@@ -20,7 +20,7 @@
 function addInputField($type, $name = null, $value = null, $attributes = '', $id = null) {
     return '<input type="'.$type.'"'.
         ($name  !== null ? ' name="'.htmlspecialchars($name).'"'   : '').
-        ($id  !== null ? ' id="'.htmlspecialchars($id).'"'   
+        ($id  !== null ? ' id="'.htmlspecialchars($id).'"'
             : ($name  !== null ? ' id="'.htmlspecialchars($name).'"'   : '')).
         ($value !== null ? ' value="'.htmlspecialchars($value).'"' : '').
         $attributes . " />\n";
@@ -146,4 +146,4 @@ function addForm($action, $method = 'post', $name = '', $enctype = '', $charset
         $enctype . $name . $charset . ">\n";
 }
 
-?>
+?>
\ No newline at end of file
index 35b9fcc02f7b12af754bee3f14c576e2881c5245..21ff2a801d703ca1a044d208933d4a21d4e73e52 100644 (file)
@@ -288,4 +288,4 @@ function sqsession_is_active() {
 }
 
 // vim: et ts=4
-?>
+?>
\ No newline at end of file
index 32f6328d216588c2e5f05fbf76d6b24e1c01cae6..1140b9f81adc752e40800da6e8ce4cdd01197f21 100644 (file)
@@ -104,7 +104,7 @@ function sq_setlocale($category,$locale) {
  *
  * @param string $charset
  * @param string $string Text to be decoded
- * @param boolean $force_decode converts string to html without $charset!=$default_charset check. 
+ * @param boolean $force_decode converts string to html without $charset!=$default_charset check.
  * Argument is available since 1.5.1 and 1.4.5.
  * @return string decoded string
  */
@@ -294,15 +294,15 @@ function set_up_language($sm_language, $do_search = false, $default = false) {
      * If function is asked to detect preferred language
      *  OR squirrelmail default language is set to empty string
      *    AND
-     * squirrelmail language ($sm_language) is empty string 
+     * squirrelmail language ($sm_language) is empty string
      * (not set in user's prefs and no cookie with language info)
      *    AND
      * browser provides list of preferred languages
      *  THEN
      * get preferred language from HTTP_ACCEPT_LANGUAGE header
      */
-    if (($do_search || empty($squirrelmail_default_language)) && 
-        ! $sm_language && 
+    if (($do_search || empty($squirrelmail_default_language)) &&
+        ! $sm_language &&
         isset($accept_lang)) {
         // TODO: use more than one language, if first language is not available
         // FIXME: function assumes that string contains two or more characters.
@@ -317,7 +317,7 @@ function set_up_language($sm_language, $do_search = false, $default = false) {
      *  THEN
      * use default squirrelmail language value from configuration.
      */
-    if ((!$sm_language||$default) && 
+    if ((!$sm_language||$default) &&
         ! empty($squirrelmail_default_language)) {
         $squirrelmail_language = $squirrelmail_default_language;
         $sm_language = $squirrelmail_default_language;
@@ -441,18 +441,18 @@ function set_up_language($sm_language, $do_search = false, $default = false) {
         /**
          * mbstring.func_overload fix (#929644).
          *
-         * php mbstring extension can replace standard string functions with their multibyte 
+         * php mbstring extension can replace standard string functions with their multibyte
          * equivalents. See http://www.php.net/ref.mbstring#mbstring.overload.
          *
          * Some SquirrelMail functions work with 8bit strings in bytes. If interface is forced
          * to use mbstring functions and mbstring internal encoding is set to multibyte charset,
-         * interface can't trust regular string functions. Due to mbstring overloading design 
+         * interface can't trust regular string functions. Due to mbstring overloading design
          * limits php scripts can't control this setting.
          *
          * This hack should fix some issues related to 8bit strings in passwords. Correct fix is
          * to disable mbstring overloading. Japanese translation uses different internal encoding.
          */
-        if ($squirrelmail_language != 'ja_JP' && 
+        if ($squirrelmail_language != 'ja_JP' &&
             function_exists('mb_internal_encoding') &&
             check_php_version(4,2,0) &&
             (int)ini_get('mbstring.func_overload')!=0) {
index 1943e43e9f20754ab25d74ac9eecc349e2cd660e..954116997c5be47e6874551bde430a7299245f4b 100644 (file)
@@ -24,4 +24,4 @@ require_once(SM_PATH . 'functions/date.php');
 require_once(SM_PATH . 'functions/mailbox_display.php');
 require_once(SM_PATH . 'functions/mime.php');
 
-?>
+?>
\ No newline at end of file
index f8653dde82b4944f4eaaa7fb2374b4a8099ddcba..e74f7505d13423a59bd4aad8476587f5046548c2 100644 (file)
@@ -176,7 +176,7 @@ function asearch_unhtmlentities($string) {
  * @global bool imap_asearch_debug_dump
  * @param string $var_name
  * @param string $var_var
- * @deprecated contains workarounds for 1.4.0 and older code. 
+ * @deprecated contains workarounds for 1.4.0 and older code.
  *   code without workarounds uses regular sm 1.4.2+ functions.
  *   it is not compatible with 1.4.1
  * @todo remove debugging function
index c2799a2a909d76756eb100fcff573aebafe39bc9..2d5fe2fb651a4abbe5b891097f6ba2ceeb56207f 100755 (executable)
@@ -126,7 +126,7 @@ function compact_mailboxes_response($ary) {
  * (LIST|LSUB) (<Flags list>) (NIL|"<separator atom>") <mailbox name string>\r\n
  * mailbox name in quoted string MUST be unquoted and stripslashed (sm API)
  *
- * Originally stored in functions/strings.php. Since 1.2.6 stored in 
+ * Originally stored in functions/strings.php. Since 1.2.6 stored in
  * functions/imap_mailbox.php
  * @param string $line imap LIST/LSUB response line
  * @return string mailbox name
@@ -167,11 +167,11 @@ function check_is_noinferiors ($lsub_line) {
  * separator character, returns the second last part of the full
  * mailbox name (i.e. the mailbox's parent mailbox)
  *
- * Originally stored in functions/strings.php. Since 1.2.6 stored in 
+ * Originally stored in functions/strings.php. Since 1.2.6 stored in
  * functions/imap_mailbox.php
  * @param string $haystack full mailbox name
  * @param string $needle delimiter
- * @return string parent mailbox 
+ * @return string parent mailbox
  */
 function readMailboxParent($haystack, $needle) {
     if ($needle == '') {
@@ -214,7 +214,7 @@ function isBoxBelow( $subbox, $parentbox ) {
 /**
  * Defines special mailboxes: given a mailbox name, it checks if this is a
  * "special" one: INBOX, Trash, Sent or Draft.
- * 
+ *
  * Since 1.2.5 function includes special_mailbox hook.<br>
  * Since 1.4.3 hook supports more than one plugin.
  * @param string $box mailbox name
@@ -269,11 +269,11 @@ function isDraftMailbox($box) {
 
 /**
  * Expunges a mailbox
- * 
+ *
  * WARNING: Select mailbox before calling this function.
- * 
- * permanently removes all messages that have the \Deleted flag 
- * set from the selected mailbox. See EXPUNGE command chapter in 
+ *
+ * permanently removes all messages that have the \Deleted flag
+ * set from the selected mailbox. See EXPUNGE command chapter in
  * IMAP RFC.
  * @param stream $imap_stream imap connection resource
  * @param string $mailbox mailbox name (unused since 1.1.3).
@@ -327,7 +327,7 @@ function sqimap_mailbox_exists ($imap_stream, $mailbox) {
  * Before 1.3.0 used more arguments and returned data depended on those argumements.
  * @param stream $imap_stream imap connection resource
  * @param string $mailbox mailbox name
- * @return array results of select command (on success - permanentflags, flags and rights) 
+ * @return array results of select command (on success - permanentflags, flags and rights)
  * @since 1.0 or older
  */
 function sqimap_mailbox_select ($imap_stream, $mailbox) {
@@ -367,10 +367,10 @@ function sqimap_mailbox_select ($imap_stream, $mailbox) {
  * Creates a folder.
  *
  * Mailbox is automatically subscribed.
- * 
- * Set $type to string that does not match 'noselect' (case insensitive), 
- * if you don't want to prepend delimiter to mailbox name. Please note 
- * that 'noinferiors' might be used someday as keyword for folders 
+ *
+ * Set $type to string that does not match 'noselect' (case insensitive),
+ * if you don't want to prepend delimiter to mailbox name. Please note
+ * that 'noinferiors' might be used someday as keyword for folders
  * that store only messages.
  * @param stream $imap_steam imap connection resource
  * @param string $mailbox mailbox name
@@ -793,13 +793,13 @@ function sqimap_mailbox_list($imap_stream, $force=false) {
 
         /* Find INBOX's children */
         for($k = 0; $k < $cnt; ++$k) {
-            if (!$used[$k] && isBoxBelow(strtolower($boxesall[$k]['unformatted']), 'inbox') && 
+            if (!$used[$k] && isBoxBelow(strtolower($boxesall[$k]['unformatted']), 'inbox') &&
             strtolower($boxesall[$k]['unformatted']) != 'inbox') {
                 $boxesnew[] = $boxesall[$k];
                 $used[$k] = true;
-            }   
+            }
         }
-        
+
         /* Rest of the folders */
         for($k = 0; $k < $cnt; $k++) {
             if (!$used[$k]) {
index 952f25987e31a9d6b0c2845a6b7abdb97c6f33b9..32cef7ee12642cf40df4baa5fc1d9237c7e5f1a4 100755 (executable)
@@ -962,4 +962,4 @@ function sqimap_get_message($imap_stream, $id, $mailbox) {
     return $msg;
 }
 
-?>
+?>
\ No newline at end of file
index 62f122c0f09dd7e496794ca4450ebb034545baac..9f7b277a528a2d2327c69ae8bc435646ac1c114c 100644 (file)
@@ -1378,4 +1378,4 @@ function attachSelectedMessages($imapConnection,$aMsgHeaders) {
     return $composesession;
 }
 
-?>
+?>
\ No newline at end of file
index 478f4558e584f025521f19b2b42cda48e73fceaa..19c89e31f4e34fe06ffaf4980546d140ae938b32 100644 (file)
@@ -315,7 +315,7 @@ function translateText(&$body, $wrap_at, $charset) {
  * be displayed as the actual message in the HTML. It contains
  * everything needed, including HTML Tags, Attachments at the
  * bottom, etc.
- * 
+ *
  * Since 1.2.0 function uses message_body hook.
  * Till 1.3.0 function included output of formatAttachments().
  *
@@ -387,12 +387,12 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
                 /**
                  * If we don't add html message between iframe tags,
                  * we must detect unsafe images and modify $has_unsafe_images.
-                 */                
+                 */
                 $html_body =  magicHTML($body, $id, $message, $mailbox);
 
                 // creating iframe url
                 $iframeurl=sqm_baseuri().'src/view_html.php?'
-                    . 'mailbox=' . $urlmailbox 
+                    . 'mailbox=' . $urlmailbox
                     . '&amp;passed_id=' . $id
                     . '&amp;ent_id=' . $ent_num
                     . '&amp;view_unsafe_images=' . (int) $view_unsafe_images;
@@ -401,9 +401,9 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
                 $body = html_tag('div',_("Viewing HTML formatted email"),'center');
 
                 /**
-                 * height can't be set to 100%, because it does not work as expected when 
-                 * iframe is inside the table. Browsers do not create full height objects 
-                 * even when iframe is not nested. Maybe there is some way to get full size 
+                 * height can't be set to 100%, because it does not work as expected when
+                 * iframe is inside the table. Browsers do not create full height objects
+                 * even when iframe is not nested. Maybe there is some way to get full size
                  * with CSS. Tested in firefox 1.02 and opera 7.53
                  *
                  * width="100%" does not work as expected, when table width is not set (automatic)
@@ -415,9 +415,9 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
                     .' frameborder="1" marginwidth="0" marginheight="0" scrolling="auto">' . "\n";
 
                 // Message for browsers without iframe support
-                //$body.= _("Your browser does not support inline frames. 
+                //$body.= _("Your browser does not support inline frames.
                 // You can view HTML formated message by following below link.");
-                //$body.= "<br /><a href=\"$iframeurl\">"._("View HTML Message")."</a>"; 
+                //$body.= "<br /><a href=\"$iframeurl\">"._("View HTML Message")."</a>";
 
                 // if browser can't render iframe, it renders html message.
                 $body.= $html_body;
@@ -426,7 +426,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
                 $body.="</iframe></div>\n";
             } else {
                 // old way of html rendering
-                $body = magicHTML($body, $id, $message, $mailbox);   
+                $body = magicHTML($body, $id, $message, $mailbox);
             }
         } else {
             translateText($body, $wrap_at,
@@ -472,7 +472,7 @@ function formatBody($imap_stream, $message, $color, $wrap_at, $ent_num, $id, $ma
  * Since 1.0.2 uses attachment $type0/$type1 hook.
  * Since 1.2.5 uses attachment $type0/* hook.
  * Since 1.5.0 uses attachments_bottom hook.
- * 
+ *
  * @param object $message SquirrelMail message object
  * @param array $exclude_id message parts that are not attachments.
  * @param string $mailbox mailbox name
@@ -568,9 +568,9 @@ function formatAttachments($message, $exclude_id, $mailbox, $id) {
             } else {
                 $attachments .= '&nbsp;&nbsp;|&nbsp;&nbsp;';
             }
-            $attachments .= '<a href="' . $val['href'] . '">' 
-                . (isset($val['text']) && !empty($val['text']) ? $val['text'] : '') 
-                . (isset($val['extra']) && !empty($val['extra']) ? $val['extra'] : '') 
+            $attachments .= '<a href="' . $val['href'] . '">'
+                . (isset($val['text']) && !empty($val['text']) ? $val['text'] : '')
+                . (isset($val['extra']) && !empty($val['extra']) ? $val['extra'] : '')
                 . '</a>';
         }
         unset($links);
@@ -1654,7 +1654,7 @@ function sq_cid2http($message, $id, $cidurl, $mailbox){
             }
         }
     }
+
     if (!empty($linkurl)) {
         $httpurl = $quotchar . SM_PATH . 'src/download.php?absolute_dl=true&amp;' .
                    "passed_id=$id&amp;mailbox=" . urlencode($mailbox) .
@@ -1666,7 +1666,7 @@ function sq_cid2http($message, $id, $cidurl, $mailbox){
          */
         $httpurl = $quotchar . SM_PATH . 'images/blank.png';
     }
+
     return $httpurl;
 }
 
@@ -2073,14 +2073,14 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX', $take_mailto_links
         if ((preg_match_all($MailTo_PReg_Match, $trusted, $regs)) && ($regs[0][0] != '')) {
             foreach ($regs[0] as $i => $mailto_before) {
                 $mailto_params = $regs[10][$i];
-     
+
                 // get rid of any tailing quote since we have to add send_to to the end
                 //
                 if (substr($mailto_before, strlen($mailto_before) - 1) == '"')
                     $mailto_before = substr($mailto_before, 0, strlen($mailto_before) - 1);
                 if (substr($mailto_params, strlen($mailto_params) - 1) == '"')
                     $mailto_params = substr($mailto_params, 0, strlen($mailto_params) - 1);
-    
+
                 if ($regs[1][$i]) {    //if there is an email addr before '?', we need to merge it with the params
                     $to = 'to=' . $regs[1][$i];
                     if (strpos($mailto_params, 'to=') > -1)    //already a 'to='
@@ -2092,9 +2092,9 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX', $take_mailto_links
                             $mailto_params .= '?' . $to;
                     }
                 }
-    
+
                 $url_str = preg_replace(array('/to=/i', '/(?<!b)cc=/i', '/bcc=/i'), array('send_to=', 'send_to_cc=', 'send_to_bcc='), $mailto_params);
-    
+
                 // we'll already have target=_blank, no need to allow comp_in_new
                 // here (which would be a lot more work anyway)
                 //
@@ -2103,7 +2103,7 @@ function magicHTML($body, $id, $message, $mailbox = 'INBOX', $take_mailto_links
                 $compose_new_win = 0;
                 $comp_uri = makeComposeLink('src/compose.php' . $url_str, $mailto_before);
                 $compose_new_win = $temp_comp_in_new;
-    
+
                 // remove <a href=" and anything after the next quote (we only
                 // need the uri, not the link HTML) in compose uri
                 //
index 91b5c9a6140463d94f373eb169b6f190adb9aca5..d8f19e53eeb5377015b8cf8fec2315c4c66595a0 100644 (file)
@@ -257,4 +257,4 @@ function compose_Header($color, $mailbox, $sHeaderJs='', $sBodyTagJs = 'onload="
     }
     echo "<body text=\"$color[8]\" bgcolor=\"$color[4]\" link=\"$color[7]\" vlink=\"$color[7]\" alink=\"$color[7]\" $sBodyTagJs>\n\n";
 }
-?>
+?>
\ No newline at end of file
index 970ee5fb6ab9e2b459d42cef5342b1d5b4b876e9..de9ae87154cf9b9ae56f66fbdba0c848ddf1b16c 100644 (file)
@@ -1248,4 +1248,4 @@ function sq_strtoupper($string,$charset='auto') {
     return strtoupper($string);
 }
 $PHP_SELF = php_self();
-?>
+?>
\ No newline at end of file
index 2a6da6670a431306baef4f3ef36cba60abbd322b..b0c6867e0eb91a606223ed69cfab8f964250ce0b 100644 (file)
@@ -223,4 +223,4 @@ function getEmail($string) {
     return (array_key_exists(0, $addresses) ? $addresses[0] : '');
 }
 
-?>
+?>
\ No newline at end of file
index ba6cbdb7aa667805eb6b6807f3cfcd8358a630bb..31c5122f67e4ff46571417d37275dbf9dc76cae2 100644 (file)
@@ -430,4 +430,4 @@ function icon_theme_save($option) {
 
 }
 
-?>
+?>
\ No newline at end of file
index b8cc5d007ee498be6b033f81d8632ab548f50afc..e3ccb4b36c99845c26834acea62eea8b6fc11806 100644 (file)
@@ -370,4 +370,4 @@ $defcfg = array( '$config_version' => array( 'name' => _("Config File Version"),
 
                );
 
-?>
+?>
\ No newline at end of file
index 3c0313cd86b29ca999e92f161a80c419a9ce1ee0..af2da68200bd5ad207e0e57db69453c747779bab 100644 (file)
@@ -462,7 +462,7 @@ foreach ( $newcfg as $k => $v ) {
             break;
         case SMOPT_TYPE_PATH:
             if (  sqgetGlobalVar($e, $new_v, SQ_POST) ) {
-                // FIXME: fix use of $data_dir in $attachment_dir 
+                // FIXME: fix use of $data_dir in $attachment_dir
                 $v = change_to_sm_path($new_v);
                 $newcfg[$k] = $v;
             }
index 05ef6e7f5663f318f4823e5c9c19832f3685897c..f4797fdcaffc05abd108117b499b0b7dc73df7c9 100644 (file)
@@ -87,4 +87,4 @@ function bug_report_options() {
     echo ' /> ' . _("Show button in toolbar") . "</td></tr>\n";
 }
 
-?>
+?>
\ No newline at end of file
index 5783e3e7f397391ef2129dd2e89f7d3e182109b5..311dee762bf998ff8bcfc485114f61a1de342e22 100644 (file)
@@ -60,7 +60,7 @@ function br_show_plugins() {
             }
         }
         // compatibility plugin can be used without need to enable it in sm config
-        if (file_exists(SM_PATH . 'plugins/compatibility/setup.php') 
+        if (file_exists(SM_PATH . 'plugins/compatibility/setup.php')
             && ! in_array('compatibility',$plugins)) {
             $str.= '    * compatibility';
             include_once(SM_PATH . 'plugins/compatibility/setup.php');
index be2c1a053e1a6513b6683c43961d9d2bb175f59e..c326a1f5a7942b1f2cc85f5e044b507455c21d9e 100644 (file)
@@ -43,7 +43,7 @@ function filters_init_hooks () {
 function filters_optpage_register_block() {
     global $optpage_blocks, $AllowSpamFilters;
     if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
-    
+
     $optpage_blocks[] = array(
         'name' => _("Message Filters"),
         'url'  => SM_PATH . 'plugins/filters/options.php',
@@ -164,9 +164,9 @@ function filters_bulkquery($filters, $IPs) {
 function start_filters() {
     global $imapServerAddress, $imapPort, $imap_stream, $imapConnection,
            $UseSeparateImapConnection, $AllowSpamFilters;
-           
+
     if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
-    
+
     sqgetGlobalVar('username', $username, SQ_SESSION);
     sqgetGlobalVar('key',      $key,      SQ_COOKIE);
 
@@ -231,7 +231,7 @@ function user_filters($imap_stream) {
                   $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
         } else if ($filters[$i]['where'] == 'Message Body') {
             $expunge = filter_search_and_delete($imap_stream, 'BODY',
-                  $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);                  
+                  $filters[$i]['what'], $filters[$i]['folder'], $filters_user_scan, $expunge);
         } else {
             /*
             *  If it's a normal TO, CC, SUBJECT, or FROM, then handle it
@@ -254,7 +254,7 @@ function user_filters($imap_stream) {
  * @param string $what String to search for
  * @param string $where_to Folder it will move to
  * @param string $user_scan Whether to search all or just unseen
- * @param string $should_expunge 
+ * @param string $should_expunge
  * @param boolean $where Which part of location to search
  * @access private
  */
@@ -800,7 +800,7 @@ function remove_filter ($id) {
 /**
  * Swaps two filters
  * @param int $id1 ID of first filter to swap
- * @param int $id2 ID of second filter to swap 
+ * @param int $id2 ID of second filter to swap
  * @access private
  */
 function filter_swap($id1, $id2) {
@@ -823,7 +823,7 @@ function filter_swap($id1, $id2) {
 function update_for_folder ($args) {
 
     if (!file_exists(SM_PATH . 'plugins/filters/config.php')) return;
-    
+
     $old_folder = $args[0];
     $new_folder = $args[2];
     $action = $args[1];
index bb58e773010dc65197e3f6ab2ca411405a2f2998..2bb9d2d40e4a1b0295eebd27d3c9a04faec118b0 100644 (file)
@@ -178,7 +178,7 @@ sqgetGlobalVar('delimiter',  $delimiter,  SQ_SESSION);
         $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 10);
 
         // check if destination folder is not set, is not subscribed and is not \noselect folder
-        if($mailfetch_subfolder == '' || 
+        if($mailfetch_subfolder == '' ||
            ! mail_fetch_check_folder($imap_stream,$mailfetch_subfolder)) {
             $mailfetch_subfolder = 'INBOX';
         }
index f352a112222cacbea4b30361b76ed90d3d4e2f80..e26eae68f0b37f0f3cfd197a6f33b5dc988cd5b9 100644 (file)
@@ -118,7 +118,7 @@ function mail_fetch_check_folder($imap_stream,$imap_folder) {
 
 /**
  * Checks if folder is noselect (can't store messages)
- * 
+ *
  * Function does not check if folder subscribed.
  * @param stream $imap_stream imap connection resource
  * @param string $imap_folder imap folder name
index 0380eb2f0060a30bda400f8fa83c681f97ea7294..e059787f42b35cce9bc32a9c73629bc82d7ee4b8 100644 (file)
@@ -177,9 +177,9 @@ function mail_fetch_login() {
                 while (list($lineNum, $line) = each ($MessArray)) {
                     $Message .= $line;
                 }
-                
+
                 // check if mail folder is not null and subscribed (There is possible issue with /noselect mail folders)
-                if ($mailfetch_subfolder=='' || 
+                if ($mailfetch_subfolder=='' ||
                     ! mail_fetch_check_folder($imap_stream,$mailfetch_subfolder)) {
                     fputs($imap_stream, "A3$i APPEND INBOX {" . strlen($Message) . "}\r\n");
                 } else {
index e2e935516191642b84146ec5623630cd01daad68..1948c61bc53db8905d425fe6a413e0c94f003269 100644 (file)
@@ -46,7 +46,7 @@ if (!empty($md_action))
 /**
  * Converts 8bit string to hex
  *
- * Replaces 8bit symbols with their hex strings, 
+ * Replaces 8bit symbols with their hex strings,
  * encloses them in curly brackets and uses different color.
  * @param string $string text
  * @return string
@@ -115,8 +115,8 @@ function returnTime($start) {
  * Returns actual message details
  * @param string $mailbox
  * @param string $passed_id
- * @param boolean $stripHTML If TRUE, only plain text is returned, 
- *                           default is FALSE, wherein output contains 
+ * @param boolean $stripHTML If TRUE, only plain text is returned,
+ *                           default is FALSE, wherein output contains
  *                           pretty-HTMLification of message body
  * @return string The formatted message details
  * @access public
@@ -402,11 +402,11 @@ if (!$stripHTML) {
 
 $returnValue .= $message_body;
 
-if (!$stripHTML) 
+if (!$stripHTML)
     $returnValue .= '</div></div></font></code></body></html>';
 
 return $returnValue;
 
 }
 
-?>
+?>
\ No newline at end of file
index ca53778fc5de9480357ed8e21de58c847200f39c..47257c2d3297d1ba18721c776e6bc738db9347cf 100644 (file)
@@ -34,4 +34,4 @@ echo '<frame src="message_details_bottom.php?mailbox=' . urlencode($mailbox) .
     '&amp;get_message_details=yes&amp;passed_id=' . "$passed_id" .
     '" name="bottom_frame" frameborder="0" />';
 echo  '</frameset>'."\n"."</html>\n";
-?>
+?>
\ No newline at end of file
index 0baae888292c7426e3131b45c40eb0bbb3cc7294..99b95a40ff3323e4efea2921768b3d2068a3c58b 100644 (file)
@@ -46,4 +46,4 @@ echo "<body text=\"$color[8]\" bgcolor=\"$color[3]\" link=\"$color[7]\" vlink=\"
      '</form></center>'.
      '</body>'.
      "</html>\n";
-?>
+?>
\ No newline at end of file
index ecb41ecd2a8a2bb931112dc6642c4d2df6f9b72f..c33b876bb4736004a74c677ab662236dbebab40f 100644 (file)
@@ -421,7 +421,7 @@ function newmail_media_objects($object,$types,$path,$args=array(),$extra='',$add
 
     if (isset($newmail_mediacompat_mode) && $newmail_mediacompat_mode)
         $ret.= newmail_media_embed($object,$types[0],$path,$args,$addsuffix);
-    // add $extra code inside objects 
+    // add $extra code inside objects
     if ($extra!='')
         $ret.=$extra . "\n";
 
@@ -552,7 +552,7 @@ function newmail_media_object_ie($object,$type,$path,$args=array(),$addsuffix) {
 
 /**
  * Creates embed tags of multimedia object
- *        
+ *
  * docs about embed
  * Apple: http://www.apple.com/quicktime/authoring/embed.html
  *
@@ -597,7 +597,7 @@ function newmail_media_embed($object,$type,$path,$args=array(),$addsuffix=true)
     case SM_NEWMAIL_FILETYPE_MP3:
     case SM_NEWMAIL_FILETYPE_SVG:
     default:
-        $ret_embed='';    
+        $ret_embed='';
     }
     return $ret_embed;
 }
@@ -605,7 +605,7 @@ function newmail_media_embed($object,$type,$path,$args=array(),$addsuffix=true)
 /**
  * Adds closing tags for ie object
  * Warning:
- * * This is internal function, use newmail_media_objects() instead 
+ * * This is internal function, use newmail_media_objects() instead
  * @param integer $type media object type
  * @return string closing tag of media object
  */
@@ -620,7 +620,7 @@ function newmail_media_object_ie_close($type) {
     case SM_NEWMAIL_FILETYPE_OGG:
     case SM_NEWMAIL_FILETYPE_SVG:
     default:
-        $ret_end='';    
+        $ret_end='';
     }
     return $ret_end;
 }
@@ -628,7 +628,7 @@ function newmail_media_object_ie_close($type) {
 /**
  * Adds closing tags for object
  * Warning:
- * * This is internal function, use newmail_media_objects() instead 
+ * * This is internal function, use newmail_media_objects() instead
  * @param integer $type media object type
  * @return string closing tag of media object
  */
@@ -643,7 +643,7 @@ function newmail_media_object_close($type) {
         $ret_end="</object>\n";
         break;
     default:
-        $ret_end='';    
+        $ret_end='';
     }
     return $ret_end;
 }
@@ -651,7 +651,7 @@ function newmail_media_object_close($type) {
 /**
  * Adds closing tags for object
  * Warning:
- * * This is internal function, use newmail_media_objects() instead 
+ * * This is internal function, use newmail_media_objects() instead
  * @param integer $type media object type
  * @return string closing tag of media object
  */
@@ -666,7 +666,7 @@ function newmail_media_embed_close($type) {
     case SM_NEWMAIL_FILETYPE_MP3:
     case SM_NEWMAIL_FILETYPE_SVG:
     default:
-        $ret_end='';    
+        $ret_end='';
     }
     return $ret_end;
 }
@@ -675,14 +675,14 @@ function newmail_media_embed_close($type) {
  * Converts media attributes to string
  * Warning:
  * * attribute values are automatically sanitized by htmlspecialchars()
- * * This is internal function, use newmail_media_objects() instead 
+ * * This is internal function, use newmail_media_objects() instead
  * @param array $args array with object attributes
  * @return string string with object attributes
  */
 function newmail_media_prepare_args($args) {
     $ret_args='';
     foreach ($args as $arg => $value) {
-        $ret_args.= $arg . '="' . htmlspecialchars($value) . '" '; 
+        $ret_args.= $arg . '="' . htmlspecialchars($value) . '" ';
     }
     return $ret_args;
 }
index 8a32ab13929aa8632635022b5b4c1065c940a991..16538c26fe012620adbbc61bdf88dd6b9103b951 100644 (file)
@@ -9,7 +9,7 @@
  */
 
 /**
- * define SM_PATH 
+ * define SM_PATH
  * @ignore
  */
 define('SM_PATH','../../');
@@ -25,7 +25,7 @@ global $data_dir;
 $media = getPref($data_dir,$username,'newmail_media', '(none)');
 // get other prefs
 $newmail_userfile_type=getPref($data_dir,$username,'newmail_userfile_type',false);
-    
+
 $newmail_userfile_location=getHashedFile($username, $data_dir, $username . '.sound');
 
 if ($newmail_userfile_type!=false && file_exists($newmail_userfile_location)) {
index f028ec60a37a2cb8be54e171652090e20fa435ad..d45a4a1efe1fefce92c290b38c08b4a19aa186d7 100644 (file)
@@ -105,14 +105,14 @@ echo 'name="media_popup" />&nbsp;<small>('._("requires JavaScript to work").')</
 
 echo html_tag( 'tr' )
      . html_tag('td',_("Width of popup window:"),'right','', 'style="white-space: nowrap;"')
-     . html_tag('td','<input type="text" name="popup_width" value="' 
+     . html_tag('td','<input type="text" name="popup_width" value="'
                 . (int)$newmail_popup_width . '" size="3" maxlengh="3" />'
                 . '&nbsp;<small>(' . _("If set to 0, reverts to default value") . ')</small>','left')
      . "</tr>\n";
 
 echo html_tag( 'tr' )
      . html_tag('td',_("Height of popup window:"),'right','', 'style="white-space: nowrap;"')
-     . html_tag('td','<input type="text" name="popup_height" value="' 
+     . html_tag('td','<input type="text" name="popup_height" value="'
                 . (int)$newmail_popup_height . '" size="3" maxlengh="3" />'
                 . '&nbsp;<small>(' . _("If set to 0, reverts to default value") . ')</small>','left')
      . "</tr>\n";
index 54a277e60c2ea8b29a5ed5cbb45f4c66128287ee..a30c54818a1a266ace1822398cf076f6fc8c260a 100644 (file)
@@ -84,4 +84,4 @@ function squirrelspell_setup() {
              "</script>\n";
     }
 }
-?>
+?>
\ No newline at end of file
index 23ab8fdcf9a75f5cf296a7fac08ebec0f4b8564d..6602325b2b590859d3b90cc025c00eebcf4372f3 100644 (file)
@@ -56,7 +56,7 @@ echo "<br />\n<br />\n";
 echo sprintf(_("SquirrelMail is a feature rich, standards compliant webmail application written in PHP. It was made by a group of volunteers united in the SquirrelMail Project Team and is released as open source, free software under the %sGNU General Public License%s."),'<a href="http://www.gnu.org/copyleft/gpl.html" target="_blank">','</a>');
 
 // add space between two sentences.
-// Don't want to join two sprintf strings. 
+// Don't want to join two sprintf strings.
 echo ' ';
 
 // i18n: %s tags are used in order to remove html URL attributes from translation
@@ -89,4 +89,4 @@ if ( count ($plugins) > 0 ) {
 </td></tr>
 <tr><td align="center">&copy; 1999 - 2005 The SquirrelMail Project Team</td></tr>
 </table></p>
-</body></html>
+</body></html>
\ No newline at end of file
index 44ebfb1a91086b12265302195c9c85d4191fc48d..024525499d1d9ec28d09763a20a4f4d967d049fb 100644 (file)
@@ -42,4 +42,4 @@ require_once(SM_PATH . 'functions/addressbook.php');
                border="0"
                src="addrbook_search.php?show=blank" />
     </frameset>
-</html>
+</html>
\ No newline at end of file
index 98cc26f3c8a19585a9977d72fdec4e1f90b92056..f8118364c81d9dbf765a90497c52c1d310740a01 100644 (file)
@@ -158,8 +158,8 @@ if ($javascript_on) {
                 html_tag( 'td',
                         '<input type="submit" name="addr_search_done" value="' .
                         _("Use Addresses") . '" /> ' .
-                       '<input type="submit" name="addr_search_cancel" value="' .
-                       _("Cancel") . '" />',
+                        '<input type="submit" name="addr_search_cancel" value="' .
+                        _("Cancel") . '" />',
                 'center', '', 'colspan="'. $td_colspan .'"' )
             ) .
          '</table>' .
@@ -307,4 +307,4 @@ if ($addrquery == '' || sizeof($res) == 0) {
 }
 
 ?>
-</body></html>
+</body></html>
\ No newline at end of file
index 9f4c08b8af3a7d32f87c4529bcf345a0105a5456..753cd2ca054ac9655f62a37b938ec2aec498eb40 100644 (file)
@@ -193,8 +193,8 @@ if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'P
                     }
                 } else {
                     /**
-                     * $editaddr is set, but $sel (address selection in address listing) 
-                     * and $doedit (address edit form) are not set. 
+                     * $editaddr is set, but $sel (address selection in address listing)
+                     * and $doedit (address edit form) are not set.
                      * Assume that user clicked on "Edit address" without selecting any address.
                      */
                     $formerror = _("Please select address that you want to edit");
index 2c7cfeabfaa0975e12b0777bd7778e1b2e890b6c..8e727d3e6775f7c2d82f399ca83e026b620ba979 100644 (file)
@@ -79,7 +79,7 @@ if(!in_array('strings.php', $included)) {
 if (! $allow_remote_configtest) {
     sqGetGlobalVar('REMOTE_ADDR',$client_ip,SQ_SERVER);
     if (! isset($client_ip) || $client_ip!='127.0.0.1') {
-       do_err('Enable "Allow remote configtest" option in squirrelmail configuration in order to use this script.');
+        do_err('Enable "Allow remote configtest" option in squirrelmail configuration in order to use this script.');
     }
 }
 /* checking PHP specs */
@@ -206,12 +206,12 @@ echo $IND . "Themes OK.<br />\n";
 if ( $squirrelmail_default_language != 'en_US' ) {
     $loc_path = SM_PATH .'locale/'.$squirrelmail_default_language.'/LC_MESSAGES/squirrelmail.mo';
     if( ! file_exists( $loc_path ) ) {
-        do_err('You have set <i>' . $squirrelmail_default_language . 
+        do_err('You have set <i>' . $squirrelmail_default_language .
             '</i> as your default language, but I cannot find this translation (should be '.
             'in <tt>' . $loc_path . '</tt>). Please note that you have to download translations '.
             'separately from the main SquirrelMail package.', FALSE);
     } elseif ( ! is_readable( $loc_path ) ) {
-        do_err('You have set <i>' . $squirrelmail_default_language . 
+        do_err('You have set <i>' . $squirrelmail_default_language .
             '</i> as your default language, but I cannot read this translation (file '.
             'in <tt>' . $loc_path . '</tt> unreadable).', FALSE);
     } else {
@@ -486,7 +486,4 @@ if( empty($ldap_server) ) {
 <p><a href="login.php">Login now</a></p>
 
 </body>
-</html>
-<?php
-// vim: et ts=4
-?>
+</html>
\ No newline at end of file
index 84a36ceb9c9e72a583954cbdb7175d2c8abb1842..0faf310912d3238e1f3b8bddc9e3ac21c7fdcd0e 100644 (file)
@@ -76,4 +76,4 @@ session_write_close();
 $location = get_location();
 header ("Location: $location/left_main.php");
 
-?>
+?>
\ No newline at end of file
index aad2cccf26dd33f3b1d8c3fc334cf526ec911c91..930148af02e432c1053afed344c40629210da5a3 100644 (file)
@@ -99,7 +99,7 @@ if ( sqgetGlobalVar('smaction', $action, SQ_POST) ) {
             folders_unsubscribe($imapConnection, $folder_names);
             $td_str =  _("Unsubscribed successfully.");
             break;
-    } 
+    }
 
     // if there are any messages, output them.
     if ( !empty($td_str) ) {
@@ -293,7 +293,7 @@ if ($show_only_subscribed_folders) {
             echo addForm('folders.php')
                . addHidden('smaction', 'unsubscribe')
                . "<tt><select name=\"folder_names[]\" multiple=\"multiple\" size=\"8\">\n";
-           foreach ( $boxes as $box ) {
+            foreach ( $boxes as $box ) {
                 $use_folder = true;
                 if ((strtolower($box["unformatted"]) != "inbox") &&
                     ($box['unformatted'] != $trash_folder) &&
@@ -323,7 +323,7 @@ if ($show_only_subscribed_folders) {
             // here we filter out all boxes we're already subscribed to,
             // so we keep only the unsubscribed ones.
             foreach ($boxes_all as $box_a) {
-            
+
                 $use_folder = true;
                 foreach ( $boxes as $box ) {
                     if ($box_a['unformatted'] == $box['unformatted'] ||
@@ -331,14 +331,14 @@ if ($show_only_subscribed_folders) {
                         $use_folder = false;
                     }
                 }
-            
+
                 if ($use_folder == true) {
-                       $box_enc  = htmlspecialchars($box_a['unformatted-dm']);
+                    $box_enc  = htmlspecialchars($box_a['unformatted-dm']);
                     $box_disp = htmlspecialchars(imap_utf7_decode_local($box_a['unformatted-disp']));
                     $subboxes[$box_enc] = $box_disp;
                 }
             }
-            
+
             if ( count($subboxes) > 0 ) {
                 echo addForm('folders.php')
                  . addHidden('smaction', 'subscribe')
@@ -372,4 +372,4 @@ sqimap_logout($imapConnection);
     </table>
 </td></tr>
 </table>
-</body></html>
+</body></html>
\ No newline at end of file
index beefed121dabf41694ad1b4e0f2c7c06fbb217f5..690f274de70acf89bd5ed9b7f6d69ef1917573ae 100644 (file)
@@ -212,4 +212,4 @@ echo html_tag( 'tr',
             html_tag( 'td', '&nbsp;', 'left', $color[0] )
         );
 ?>
-</table></body></html>
+</table></body></html>
\ No newline at end of file
index 74e1b68ff65a8afb34babe4317666f1ceafa518f..131f81b91a5763f4c6b14b4fd7d84404ceccc00e 100644 (file)
@@ -163,7 +163,7 @@ function ListBoxes ($boxes, $j=0 ) {
         $font = "<font color=\"$color[15]\">";
         $fontend = '</font>';
     }
-        
+
     // let plugins fiddle with end of line
     $end .= concat_hook_function('left_main_after_each_folder',
         array(isset($numMessages) ? $numMessages : '',
@@ -173,7 +173,7 @@ function ListBoxes ($boxes, $j=0 ) {
 
     if (!$boxes->is_root) {
         echo "" . $pre .$font.
-            str_replace( 
+            str_replace(
                 array(' ','<','>'),
                 array('&nbsp;','&lt;','&gt;'),
                 $boxes->mailboxname_sub) .
@@ -679,7 +679,7 @@ if ($advanced_tree) {
    echo '<div id="leftframe"><br /><br />';*/
 }
 
-echo "\n\n" . 
+echo "\n\n" .
     '<center><font size="4"><b>'. _("Folders") . "</b><br /></font>\n\n";
 
 if ($date_format != 6) {
@@ -716,8 +716,8 @@ if ($date_format != 6) {
     }
     $clk = str_replace(' ','&nbsp;',$clk);
 
-    echo '<small><span style="white-space: nowrap;">' 
-       . str_replace(' ', '&nbsp;', _("Last Refresh")) 
+    echo '<small><span style="white-space: nowrap;">'
+       . str_replace(' ', '&nbsp;', _("Last Refresh"))
        . ":</span><br /><span style=\"white-space: nowrap;\">$clk</span></small><br />\n";
 }
 
@@ -774,4 +774,4 @@ do_hook('left_main_after');
 sqimap_logout($imapConnection);
 
 ?>
-</body></html>
+</body></html>
\ No newline at end of file
index 15f365cfee5bc9319d68e5fd9daa60cc15ae1773..7522f69c388ec1e323b338553e829a660b177a94 100644 (file)
@@ -61,7 +61,7 @@ header('Pragma: no-cache');
  */
 if($imap_auth_mech == 'login') {
     /**
-     * detect disabled login, only when imapServerAddress contains 
+     * detect disabled login, only when imapServerAddress contains
      * server address and not mapping. See sqimap_get_user_server()
      */
     if (substr($imapServerAddress, 0, 4) != "map:") {
@@ -192,4 +192,4 @@ echo '</form>' . "\n";
 
 do_hook('login_bottom');
 ?>
-</body></html>
+</body></html>
\ No newline at end of file
index 875bbfb8aa3c47565bb26f76c77a7ddde1dfa2b2..beb684a823121ffdf8402f27d7e962acb25218db 100644 (file)
@@ -367,7 +367,7 @@ if ($optpage == SMOPT_PAGE_MAIN) {
         'desc' => _("The order of the message index can be rearranged and changed to contain the headers in any order you want."),
         'js'   => false
     );
-    
+
     /* Build a section for Compose Options. */
     $optpage_blocks[] = array(
         'name' => _("Compose Preferences"),
@@ -490,4 +490,4 @@ if ($optpage == SMOPT_PAGE_MAIN) {
 </table>
 </td></tr>
 </table>
-</body></html>
+</body></html>
\ No newline at end of file
index 4afb3e94bd3c35218d452962fcf8b37be0776e18..ffaccb00b9ca9669881c3e3c72bdf7e4b3d6a00f 100644 (file)
@@ -186,4 +186,4 @@ function pf_clean_string ( $unclean_string, $num_leading_spaces ) {
 } /* end pf_clean_string() function */
 
 /* --end pf-specific functions */
-?>
+?>
\ No newline at end of file
index 1a9b20724e16593cfb47502faabf79aad6c9e57d..41294e8220a12048b77edc49264254537d142a71 100644 (file)
@@ -40,4 +40,4 @@ echo '<body text="'.$color[8].'" bgcolor="'.$color[3].'" link="'.$color[7].'" vl
          '</form>',
      'right' );
 ?>
-</body></html>
+</body></html>
\ No newline at end of file
index 9a9a0086d37dce76a0ba4077f8eb2bf73a87c454..aeafc348f4ae188fac79931c9c5d9981f0671747 100644 (file)
@@ -176,4 +176,4 @@ function attachment_common_parse($str, $debug) {
     sqsession_register($attachment_common_types, 'attachment_common_types');
 }
 
-?>
+?>
\ No newline at end of file
index 3f2a13f5d58873725998f6cb1f7b6dcbea7fb8d3..775727932bc4b045ff63f3980314b5a968ce9f95 100644 (file)
@@ -97,4 +97,4 @@ html_tag( 'table',
 'center', $color[4], 'width="50%" cellpadding="2" cellspacing="0" border="0"' )
 ?>
 </body>
-</html>
+</html>
\ No newline at end of file
index ed3e7a9004a9843cf959868a78c7bac00f5c83d3..92180d4adda61b2ebbde0e124d4249b1167cca18 100644 (file)
@@ -130,4 +130,4 @@ $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox, false, false, t
 $header = parse_viewheader($imapConnection,$passed_id, $passed_ent_id);
 view_header($header, $mailbox, $color);
 
-?>
+?>
\ No newline at end of file
index 462e197433f9a72860b9e24fe2d415b4eb2492c4..250bfe8771d303351f53754a28481913a99ea8ba 100644 (file)
@@ -4,14 +4,14 @@
  * Displays html message parts
  *
  * File is used to display html message parts. Usually inside iframe.
- * It should be called with passed_id, ent_id and mailbox options in 
- * GET request. passed_ent_id and view_unsafe_images options are 
- * optional. User must be authenticated ($key in cookie. $username and 
+ * It should be called with passed_id, ent_id and mailbox options in
+ * GET request. passed_ent_id and view_unsafe_images options are
+ * optional. User must be authenticated ($key in cookie. $username and
  * $onetimepad in session).
- * 
+ *
  * Copyright (c) 1999-2005 The SquirrelMail Project Team
  * This file is part of SquirrelMail webmail interface.
- * 
+ *
  * SquirrelMail 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
index 51d4530278d0bc6129429a139b65107372dc4ef3..7417dd76e20db727a0470bb11852ce7136f59251 100644 (file)
@@ -82,7 +82,7 @@ $err=set_up_language(getPref($data_dir, $username, 'language'));
 
 $output = "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n".
           "<html><head>\n" .
-         "<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
+          "<meta name=\"robots\" content=\"noindex,nofollow\">\n" .
           "<title>$org_title</title>\n".
           "</head>";
 
@@ -182,4 +182,4 @@ if($ret != '') {
 echo $output;
 ?>
 </frameset>
-</html>
+</html>
\ No newline at end of file
index c66e66cbbedd50198ffd7337513d20e78b88d5af..b572120272619a8b2ee8313019f3aa6e46907c3c 100644 (file)
@@ -230,4 +230,4 @@ function getFlagText($aFlags) {
     if (!$sFlags) { $sFlags = '&nbsp;'; }
     return $sFlags;
 }
-?>
+?>
\ No newline at end of file