Re: forward problem

2008-09-14 Thread mouss

Sahil Tandon wrote:

Jeff Huang <[EMAIL PROTECTED]> wrote:

Hi,if I use alias list or $HOME/.forward to forward the emails of a id to 
another email address,The orginal id has no the email's copy.
So,if I want to keey a copy of the emails and forward them to another email 
address,How can I do?


Read the man page; from forward(5):

  For example, if user chris had a .forward file containing the following 
  lines:
   
 [EMAIL PROTECTED]

 \chris

  One copy of mail would be forwarded to [EMAIL PROTECTED] and another copy 
  would be retained as mail for local user chris.


Regarding "alias list", give more background about your configuration and how 
you implement aliases.  Also take note of the ample documentation available 
here: http://www.postfix.org/documentation.html.  And, for good measure, do 
make sure to read http://www.postfix.org/DEBUG_README.html#mail to get the 
most out of this mailing list.




I guess he has a similar problem as with .forward.

if using local aliases (alias_maps), he should use

foo:foo, [EMAIL PROTECTED]

if using virtual aliases, he needs
[EMAIL PROTECTED]   [EMAIL PROTECTED], [EMAIL PROTECTED]

some people are afraid because they think this causes an infinite loop. 
It does not.


PS. Whois is chris? and why is he sitting on an otherhost? :)




[PHP-CVS] cvs: php-src /ext/standard/tests/strings stripos_variation1.phpt stripos_variation11.phpt stripos_variation12.phpt stripos_variation2.phpt

2008-09-14 Thread Arnaud Le Blanc
lbarnaudSun Sep 14 14:57:26 2008 UTC

  Modified files:  
/php-src/ext/standard/tests/strings stripos_variation11.phpt 
stripos_variation12.phpt 
stripos_variation1.phpt 
stripos_variation2.phpt 
  Log:
  MFB / fix tests
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/stripos_variation11.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/strings/stripos_variation11.phpt
diff -u php-src/ext/standard/tests/strings/stripos_variation11.phpt:1.3 
php-src/ext/standard/tests/strings/stripos_variation11.phpt:1.4
--- php-src/ext/standard/tests/strings/stripos_variation11.phpt:1.3 Tue May 
27 10:50:47 2008
+++ php-src/ext/standard/tests/strings/stripos_variation11.phpt Sun Sep 14 
14:57:26 2008
@@ -92,7 +92,7 @@
 *** Testing stripos() function with unexpected values for haystack and needle 
***
 -- Iteration 1 --
 bool(false)
-int(1)
+bool(false)
 -- Iteration 2 --
 bool(false)
 bool(false)
@@ -125,17 +125,17 @@
 bool(false)
 -- Iteration 8 --
 bool(false)
-int(7)
+bool(false)
 -- Iteration 9 --
 bool(false)
-int(3)
+bool(false)
 -- Iteration 10 --
 
 Notice: Array to string conversion in %s on line %d
 bool(false)
 
 Notice: Array to string conversion in %s on line %d
-int(5)
+bool(false)
 -- Iteration 11 --
 
 Notice: Array to string conversion in %s on line %d
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/stripos_variation12.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/strings/stripos_variation12.phpt
diff -u php-src/ext/standard/tests/strings/stripos_variation12.phpt:1.3 
php-src/ext/standard/tests/strings/stripos_variation12.phpt:1.4
--- php-src/ext/standard/tests/strings/stripos_variation12.phpt:1.3 Tue May 
27 10:50:47 2008
+++ php-src/ext/standard/tests/strings/stripos_variation12.phpt Sun Sep 14 
14:57:26 2008
@@ -31,15 +31,15 @@
 int(5)
 int(5)
 int(0)
-int(12)
+bool(false)
 int(11)
 int(11)
 int(0)
-int(3)
+bool(false)
 int(5)
 int(5)
 int(0)
-int(6)
+bool(false)
 int(5)
-int(6)
+bool(false)
 *** Done ***
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/tests/strings/stripos_variation1.phpt?r1=1.3&r2=1.4&diff_format=u
Index: php-src/ext/standard/tests/strings/stripos_variation1.phpt
diff -u php-src/ext/standard/tests/strings/stripos_variation1.phpt:1.3 
php-src/ext/standard/tests/strings/stripos_variation1.phpt:1.4
--- php-src/ext/standard/tests/strings/stripos_variation1.phpt:1.3  Tue May 
27 10:50:46 2008
+++ php-src/ext/standard/tests/strings/stripos_variation1.phpt  Sun Sep 14 
14:57:26 2008
@@ -7,10 +7,10 @@
  * Source code: ext/standard/string.c
 */
 
-/* Test stripos() function by passing double quoted strings to 'haystack' & 
'needle' arguments */
+/* Test stripos() function by passing double quoted strings for 'haystack' & 
'needle' arguments */
 
 echo "*** Testing stripos() function: with double quoted strings ***\n";
-$haystack = "Hello,\t\n\0\n  $&!#%\o,()*+-./:;<=>[EMAIL PROTECTED] \x234 \101";
+$haystack = "Hello,\t\n\0\n  $&!#%\o,()*+-./:;<=>[EMAIL PROTECTED] \x234 \101 
";
 $needle = array(
   //regular strings
   "l",
@@ -50,6 +50,7 @@
   "()",
   "*+",
   "+",
+  "-",
   ".",
   ".;",
   ":;",
@@ -57,6 +58,8 @@
   "<=>",
   ">",
   "=>",
+  "?",
+  "@",
   "@hEllo",
 
   "12345", //decimal numeric string
@@ -68,7 +71,7 @@
   $haystack  //haystack as needle
 );
  
-/* loop through 'needle' array to get the position of the needle in haystack 
string */
+/* loop through to get the position of the needle in haystack string */
 $count = 1;
 for($index=0; $index
---EXPECT--
+--EXPECTF--
 *** Testing stripos() function: with double quoted strings ***
 -- Iteration 1 --
 int(2)
@@ -112,19 +115,19 @@
 int(9)
 -- Iteration 11 --
 int(8)
-int(52)
+bool(false)
 -- Iteration 12 --
 int(8)
-int(52)
+bool(false)
 -- Iteration 13 --
 int(8)
-int(52)
+bool(false)
 -- Iteration 14 --
 int(8)
-int(52)
+bool(false)
 -- Iteration 15 --
 int(8)
-int(52)
+bool(false)
 -- Iteration 16 --
 bool(false)
 bool(false)
@@ -159,48 +162,57 @@
 int(23)
 bool(false)
 -- Iteration 27 --
-int(25)
+int(24)
 bool(false)
 -- Iteration 28 --
-bool(false)
+int(25)
 bool(false)
 -- Iteration 29 --
-int(27)
+bool(false)
 bool(false)
 -- Iteration 30 --
-int(28)
+int(27)
 bool(false)
 -- Iteration 31 --
-int(29)
+int(28)
 bool(false)
 -- Iteration 32 --
-int(31)
-int(31)
+int(29)
+bool(false)
 -- Iteration 33 --
-int(30)
+int(31)
 bool(false)
 -- Iteration 34 --
+int(30)
+bool(false)
+-- Iteration 35 --
+int(32)
+bool(false)
+-- Iteration 36 --
 int(33)
+bool(false)
+-- Iteration 37 --
 int(33)
--- Iteration 35 --
+bool(false)
+-- Iteration 38 --
 int(39)
 int(39)
--- Iteration 36 --
+-- Iteration 39 --
 int(15)
 int(48)
--- Iteration 37 --
+-- Iteration 40 --
 int(15)
 int(48)
--- Iteration 38 --
+-- Iteration 41 --
 int(51)
 int(51)
--- Iteration 39 --
+-- Iteration 42 --
 int(51)
 int(

[PHP-CVS] cvs: php-src /ext/standard string.c

2008-09-14 Thread Arnaud Le Blanc
lbarnaudSun Sep 14 14:56:34 2008 UTC

  Modified files:  
/php-src/ext/standard   string.c 
  Log:
  Fix str len in stripos when $offset argument is given
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/string.c?r1=1.681&r2=1.682&diff_format=u
Index: php-src/ext/standard/string.c
diff -u php-src/ext/standard/string.c:1.681 php-src/ext/standard/string.c:1.682
--- php-src/ext/standard/string.c:1.681 Sat Aug 16 21:16:24 2008
+++ php-src/ext/standard/string.c   Sun Sep 14 14:56:34 2008
@@ -18,7 +18,7 @@
+--+
  */
 
-/* $Id: string.c,v 1.681 2008/08/16 21:16:24 felipe Exp $ */
+/* $Id: string.c,v 1.682 2008/09/14 14:56:34 lbarnaud Exp $ */
 
 /* Synced with php 3.0 revision 1.193 1999-06-16 [ssb] */
 
@@ -2664,7 +2664,7 @@
if (Z_TYPE_PP(haystack) == IS_UNICODE) {
/* calculate code unit offset */
U16_FWD_N(Z_USTRVAL_PP(haystack), cu_offset, 
haystack_len, offset);
-   found = php_u_stristr(Z_USTRVAL_PP(haystack) + 
cu_offset, Z_USTRVAL_PP(needle), haystack_len, needle_len, 1 TSRMLS_CC);
+   found = php_u_stristr(Z_USTRVAL_PP(haystack) + 
cu_offset, Z_USTRVAL_PP(needle), haystack_len - cu_offset, needle_len, 1 
TSRMLS_CC);
} else {
haystack_dup = estrndup(Z_STRVAL_PP(haystack), 
haystack_len);
php_strtolower((char *)haystack_dup, haystack_len);
@@ -2686,7 +2686,7 @@
/* calculate code unit offset */
U16_FWD_N(Z_USTRVAL_PP(haystack), cu_offset, 
haystack_len, offset);
found = php_u_stristr(Z_USTRVAL_PP(haystack) + 
cu_offset,
- 
u_needle_char, haystack_len, needle_len, 1 TSRMLS_CC);
+ 
u_needle_char, haystack_len - cu_offset, needle_len, 1 TSRMLS_CC);
} else {
c = tolower((char)Z_LVAL_PP(needle));
needle_char[0] = c;



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /ext/standard file.c

2008-09-14 Thread Arnaud Le Blanc
lbarnaudSun Sep 14 14:55:50 2008 UTC

  Modified files:  
/php-src/ext/standard   file.c 
  Log:
  Fix leak in fgetc()
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/file.c?r1=1.528&r2=1.529&diff_format=u
Index: php-src/ext/standard/file.c
diff -u php-src/ext/standard/file.c:1.528 php-src/ext/standard/file.c:1.529
--- php-src/ext/standard/file.c:1.528   Fri Sep 12 10:30:18 2008
+++ php-src/ext/standard/file.c Sun Sep 14 14:55:50 2008
@@ -21,7 +21,7 @@
+--+
 */
 
-/* $Id: file.c,v 1.528 2008/09/12 10:30:18 tony2001 Exp $ */
+/* $Id: file.c,v 1.529 2008/09/14 14:55:50 lbarnaud Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -1185,6 +1185,9 @@
UChar *buf = php_stream_read_unicode_chars(stream, &buflen);
 
if (!buf || !buflen) {
+   if (buf) {
+   efree(buf);
+   }
RETURN_FALSE;
}
RETURN_UNICODEL(buf, buflen, 0);



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src /main rfc1867.c

2008-09-14 Thread Arnaud Le Blanc
lbarnaudSun Sep 14 14:55:29 2008 UTC

  Modified files:  
/php-src/main   rfc1867.c 
  Log:
  Fix invalid read in freed area
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/rfc1867.c?r1=1.200&r2=1.201&diff_format=u
Index: php-src/main/rfc1867.c
diff -u php-src/main/rfc1867.c:1.200 php-src/main/rfc1867.c:1.201
--- php-src/main/rfc1867.c:1.200Mon Sep  8 09:20:33 2008
+++ php-src/main/rfc1867.c  Sun Sep 14 14:55:28 2008
@@ -17,7 +17,7 @@
+--+
  */
 
-/* $Id: rfc1867.c,v 1.200 2008/09/08 09:20:33 lbarnaud Exp $ */
+/* $Id: rfc1867.c,v 1.201 2008/09/14 14:55:28 lbarnaud Exp $ */
 
 /*
  *  This product includes software developed by the Apache Group
@@ -1507,11 +1507,6 @@
register_u_http_post_files_variable(lbuf, ucd, ucd_len, 
http_post_files, 0 TSRMLS_CC);
 
efree(ucd);
-
-   /* Restore Content-Type Header */
-   if (s != NULL) {
-   *s = 0x3b /*';'*/;
-   }
s = EMPTY_STR;
 
/* Initialize variables */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP-CVS] cvs: php-src(PHP_5_3) /main php_compat.h

2008-09-14 Thread Nuno Lopes
nlopess Sun Sep 14 14:15:52 2008 UTC

  Modified files:  (Branch: PHP_5_3)
/php-src/main   php_compat.h 
  Log:
  update list of pcre symbols
  
http://cvs.php.net/viewvc.cgi/php-src/main/php_compat.h?r1=1.25.2.3.2.4.2.2&r2=1.25.2.3.2.4.2.3&diff_format=u
Index: php-src/main/php_compat.h
diff -u php-src/main/php_compat.h:1.25.2.3.2.4.2.2 
php-src/main/php_compat.h:1.25.2.3.2.4.2.3
--- php-src/main/php_compat.h:1.25.2.3.2.4.2.2  Thu Jul 17 14:34:51 2008
+++ php-src/main/php_compat.h   Sun Sep 14 14:15:52 2008
@@ -16,7 +16,7 @@
   +--+
 */
 
-/* $Id: php_compat.h,v 1.25.2.3.2.4.2.2 2008/07/17 14:34:51 nlopess Exp $ */
+/* $Id: php_compat.h,v 1.25.2.3.2.4.2.3 2008/09/14 14:15:52 nlopess Exp $ */
 
 #ifndef PHP_COMPAT_H
 #define PHP_COMPAT_H
@@ -28,32 +28,30 @@
 #endif
 
 #if defined(HAVE_BUNDLED_PCRE) || !defined(PHP_VERSION)
-#define pcre_compile   php_pcre_compile
-#define pcre_compile2  php_pcre_compile2
+#define pcre_compile   php_pcre_compile
+#define pcre_compile2  php_pcre_compile2
 #define pcre_copy_substringphp_pcre_copy_substring
-#define pcre_exec  php_pcre_exec
+#define pcre_exec  php_pcre_exec
 #define pcre_get_substring php_pcre_get_substring
-#define pcre_get_substring_listphp_pcre_get_substring_list
-#define pcre_info  php_pcre_info
+#define pcre_get_substring_listphp_pcre_get_substring_list
+#define pcre_info  php_pcre_info
 #define pcre_maketablesphp_pcre_maketables
-#define pcre_study php_pcre_study
+#define pcre_study php_pcre_study
 #define pcre_version   php_pcre_version
 #define pcre_fullinfo  php_pcre_fullinfo
-#define pcre_free  php_pcre_free
-#define pcre_mallocphp_pcre_malloc
-#define pcre_configphp_pcre_config
-#define pcre_copy_named_substring php_pcre_copy_named_substring
-#define pcre_free_substringphp_pcre_free_substring
-#define pcre_free_substring_list php_pcre_free_substring_list
-#define pcre_get_named_substring php_pcre_get_named_substring
-#define pcre_get_stringnumber  php_pcre_get_stringnumber
-#define pcre_refcount  php_pcre_refcount
-#define _pcre_ord2utf8 php__pcre_ord2utf8
-#define _pcre_try_flipped  php__pcre_try_flipped
-#define _pcre_ucp_findprop php__pcre_ucp_findprop
-#define _pcre_ucp_othercasephp__pcre_ucp_othercase
-#define _pcre_valid_utf8   php__pcre_valid_utf8
-#define _pcre_xclass   php__pcre_xclass
+#define pcre_free  php_pcre_free
+#define pcre_mallocphp_pcre_malloc
+#define pcre_configphp_pcre_config
+#define pcre_copy_named_substring  php_pcre_copy_named_substring
+#define pcre_free_substringphp_pcre_free_substring
+#define pcre_free_substring_list   php_pcre_free_substring_list
+#define pcre_get_named_substring   php_pcre_get_named_substring
+#define pcre_get_stringnumber  php_pcre_get_stringnumber
+#define pcre_refcount  php_pcre_refcount
+#define _pcre_ord2utf8 php__pcre_ord2utf8
+#define _pcre_try_flipped  php__pcre_try_flipped
+#define _pcre_valid_utf8   php__pcre_valid_utf8
+#define _pcre_xclass   php__pcre_xclass
 #define pcre_callout   php_pcre_callout
 #define _pcre_OP_lengths   php__pcre_OP_lengths
 #define _pcre_utt_namesphp__pcre_utt_names
@@ -70,6 +68,10 @@
 #define _pcre_utt  php__pcre_utt
 #define _pcre_utt_size php__pcre_utt_size
 #define _pcre_was_newline  php__pcre_was_newline
+#define _pcre_ucd_records  php__pcre_ucd_records
+#define _pcre_ucd_stage1   php__pcre_ucd_stage1
+#define _pcre_ucd_stage2   php__pcre_ucd_stage2
+#define _pcre_ucp_gentype  php__pcre_ucp_gentype
 #endif
 
 #define lookup php_lookup



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php