fix for include self in reply
authorstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 14 Nov 2002 11:04:22 +0000 (11:04 +0000)
committerstekkel <stekkel@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 14 Nov 2002 11:04:22 +0000 (11:04 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@4146 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/compose.php

index 36cdf51..57597f0 100644 (file)
@@ -117,7 +117,7 @@ function replyAllString($header) {
     * TO list) only if $include_self_reply_all is turned off
     */
    if (!$include_self_reply_all) {
-       $email_address = trim(getPref($data_dir, $username, 'email_address'));
+       $email_address = strtolower(trim(getPref($data_dir, $username, 'email_address')));
        $excl_ar[$email_address] = '';
        $idents = getPref($data_dir, $username, 'identities');
        if ($idents != '' && $idents > 1) {
@@ -125,7 +125,7 @@ function replyAllString($header) {
           for ($i = 1; $i < $idents; $i ++) {
              $cur_email_address = getPref($data_dir, $username, 
                                          'email_address' . $i);
-             $cur_email_address = strtolower($cur_email_address);
+             $cur_email_address = strtolower(trim($cur_email_address));
              $excl_ar[$cur_email_address] = '';
          }
        }