cvs: pecl /mailparse Makefile.frag mailparse.c php_mailparse.h php_mailparse_mime.c php_mailparse_mime.h php_mailparse_rfc822.h
php_mailparse_rfc822.re
| From: | Wez Furlong | Date: | Sun, 07 Mar 2004 14:28:37 +0000 |
| Subject: | cvs: pecl /mailparse Makefile.frag mailparse.c php_mailparse.h php_mailparse_mime.c php_mailparse_mime.h php_mailparse_rfc822.h php_mailparse_rfc822.re |
||
| Groups: | php.pecl.cvs | ||
| Request: | Send a blank email to pecl-cvs+get-1012@lists.php.net to get a copy of this message | ||
wez Sun Mar 7 09:28:37 2004 EDT
Modified files:
/pecl/mailparse Makefile.frag mailparse.c php_mailparse.h
php_mailparse_mime.c php_mailparse_mime.h
php_mailparse_rfc822.h php_mailparse_rfc822.re
Log:
update copyright year.
Add hack to support binary transfer encoding.
http://cvs.php.net/diff.php/pecl/mailparse/Makefile.frag?r1=1.3&r2=1.4&ty=u Index: pecl/mailparse/Makefile.frag diff -u pecl/mailparse/Makefile.frag:1.3 pecl/mailparse/Makefile.frag:1.4 --- pecl/mailparse/Makefile.frag:1.3 Thu Sep 5 22:17:24 2002 +++ pecl/mailparse/Makefile.frag Sun Mar 7 09:28:37 2004 @@ -2,3 +2,6 @@ $(top_srcdir)/ext/mailparse/php_mailparse_rfc822.c: $(top_srcdir)/ext/mailparse/php_mailparse_rfc822.re re2c -b $(top_srcdir)/ext/mailparse/php_mailparse_rfc822.re > $@ +$(srcdir)/php_mailparse_rfc822.c: $(srcdir)/php_mailparse_rfc822.re + re2c -b $(srcdir)/php_mailparse_rfc822.re > $@ + http://cvs.php.net/diff.php/pecl/mailparse/mailparse.c?r1=1.42&r2=1.43&ty=u Index: pecl/mailparse/mailparse.c diff -u pecl/mailparse/mailparse.c:1.42 pecl/mailparse/mailparse.c:1.43 --- pecl/mailparse/mailparse.c:1.42 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/mailparse.c Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: mailparse.c,v 1.42 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: mailparse.c,v 1.43 2004/03/07 14:28:37 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -653,7 +653,7 @@ { php_info_print_table_start(); php_info_print_table_header(2, "mailparse support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.42 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.43 $"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse.h?r1=1.12&r2=1.13&ty=u Index: pecl/mailparse/php_mailparse.h diff -u pecl/mailparse/php_mailparse.h:1.12 pecl/mailparse/php_mailparse.h:1.13 --- pecl/mailparse/php_mailparse.h:1.12 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse.h Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -17,7 +17,7 @@ | the support routines for this extension were based upon. | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse.h,v 1.12 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse.h,v 1.13 2004/03/07 14:28:37 wez Exp $ */ #ifndef PHP_MAILPARSE_H #define PHP_MAILPARSE_H http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_mime.c?r1=1.14&r2=1.15&ty=u Index: pecl/mailparse/php_mailparse_mime.c diff -u pecl/mailparse/php_mailparse_mime.c:1.14 pecl/mailparse/php_mailparse_mime.c:1.15 --- pecl/mailparse/php_mailparse_mime.c:1.14 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_mime.c Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse_mime.c,v 1.14 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse_mime.c,v 1.15 2004/03/07 14:28:37 wez Exp $ */ #include "php.h" #include "php_mailparse.h" @@ -680,9 +680,11 @@ if (do_decode && part->content_transfer_encoding) { from = mbfl_name2no_encoding(part->content_transfer_encoding); if (from == mbfl_no_encoding_invalid) { - zend_error(E_WARNING, "%s(): I don't know how to decode %s transfer encoding!", - get_active_function_name(TSRMLS_C), - part->content_transfer_encoding); + if (strcasecmp("binary", part->content_transfer_encoding) != 0) { + zend_error(E_WARNING, "%s(): mbstring doesn't know how to decode %s transfer encoding!", + get_active_function_name(TSRMLS_C), + part->content_transfer_encoding); + } from = mbfl_no_encoding_8bit; } } http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_mime.h?r1=1.6&r2=1.7&ty=u Index: pecl/mailparse/php_mailparse_mime.h diff -u pecl/mailparse/php_mailparse_mime.h:1.6 pecl/mailparse/php_mailparse_mime.h:1.7 --- pecl/mailparse/php_mailparse_mime.h:1.6 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_mime.h Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse_mime.h,v 1.6 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse_mime.h,v 1.7 2004/03/07 14:28:37 wez Exp $ */ #ifndef php_mailparse_mime_h #define php_mailparse_mime_h http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_rfc822.h?r1=1.4&r2=1.5&ty=u Index: pecl/mailparse/php_mailparse_rfc822.h diff -u pecl/mailparse/php_mailparse_rfc822.h:1.4 pecl/mailparse/php_mailparse_rfc822.h:1.5 --- pecl/mailparse/php_mailparse_rfc822.h:1.4 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_rfc822.h Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_rfc822.re?r1=1.8&r2=1.9&ty=u Index: pecl/mailparse/php_mailparse_rfc822.re diff -u pecl/mailparse/php_mailparse_rfc822.re:1.8 pecl/mailparse/php_mailparse_rfc822.re:1.9 --- pecl/mailparse/php_mailparse_rfc822.re:1.8 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_rfc822.re Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse_rfc822.re,v 1.8 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse_rfc822.re,v 1.9 2004/03/07 14:28:37 wez Exp $ */ #include "php.h" #include "php_mailparse.h"
http://cvs.php.net/diff.php/pecl/mailparse/Makefile.frag?r1=1.3&r2=1.4&ty=u Index: pecl/mailparse/Makefile.frag diff -u pecl/mailparse/Makefile.frag:1.3 pecl/mailparse/Makefile.frag:1.4 --- pecl/mailparse/Makefile.frag:1.3 Thu Sep 5 22:17:24 2002 +++ pecl/mailparse/Makefile.frag Sun Mar 7 09:28:37 2004 @@ -2,3 +2,6 @@ $(top_srcdir)/ext/mailparse/php_mailparse_rfc822.c: $(top_srcdir)/ext/mailparse/php_mailparse_rfc822.re re2c -b $(top_srcdir)/ext/mailparse/php_mailparse_rfc822.re > $@ +$(srcdir)/php_mailparse_rfc822.c: $(srcdir)/php_mailparse_rfc822.re + re2c -b $(srcdir)/php_mailparse_rfc822.re > $@ + http://cvs.php.net/diff.php/pecl/mailparse/mailparse.c?r1=1.42&r2=1.43&ty=u Index: pecl/mailparse/mailparse.c diff -u pecl/mailparse/mailparse.c:1.42 pecl/mailparse/mailparse.c:1.43 --- pecl/mailparse/mailparse.c:1.42 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/mailparse.c Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: mailparse.c,v 1.42 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: mailparse.c,v 1.43 2004/03/07 14:28:37 wez Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -653,7 +653,7 @@ { php_info_print_table_start(); php_info_print_table_header(2, "mailparse support", "enabled"); - php_info_print_table_row(2, "Revision", "$Revision: 1.42 $"); + php_info_print_table_row(2, "Revision", "$Revision: 1.43 $"); php_info_print_table_end(); DISPLAY_INI_ENTRIES(); http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse.h?r1=1.12&r2=1.13&ty=u Index: pecl/mailparse/php_mailparse.h diff -u pecl/mailparse/php_mailparse.h:1.12 pecl/mailparse/php_mailparse.h:1.13 --- pecl/mailparse/php_mailparse.h:1.12 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse.h Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -17,7 +17,7 @@ | the support routines for this extension were based upon. | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse.h,v 1.12 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse.h,v 1.13 2004/03/07 14:28:37 wez Exp $ */ #ifndef PHP_MAILPARSE_H #define PHP_MAILPARSE_H http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_mime.c?r1=1.14&r2=1.15&ty=u Index: pecl/mailparse/php_mailparse_mime.c diff -u pecl/mailparse/php_mailparse_mime.c:1.14 pecl/mailparse/php_mailparse_mime.c:1.15 --- pecl/mailparse/php_mailparse_mime.c:1.14 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_mime.c Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse_mime.c,v 1.14 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse_mime.c,v 1.15 2004/03/07 14:28:37 wez Exp $ */ #include "php.h" #include "php_mailparse.h" @@ -680,9 +680,11 @@ if (do_decode && part->content_transfer_encoding) { from = mbfl_name2no_encoding(part->content_transfer_encoding); if (from == mbfl_no_encoding_invalid) { - zend_error(E_WARNING, "%s(): I don't know how to decode %s transfer encoding!", - get_active_function_name(TSRMLS_C), - part->content_transfer_encoding); + if (strcasecmp("binary", part->content_transfer_encoding) != 0) { + zend_error(E_WARNING, "%s(): mbstring doesn't know how to decode %s transfer encoding!", + get_active_function_name(TSRMLS_C), + part->content_transfer_encoding); + } from = mbfl_no_encoding_8bit; } } http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_mime.h?r1=1.6&r2=1.7&ty=u Index: pecl/mailparse/php_mailparse_mime.h diff -u pecl/mailparse/php_mailparse_mime.h:1.6 pecl/mailparse/php_mailparse_mime.h:1.7 --- pecl/mailparse/php_mailparse_mime.h:1.6 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_mime.h Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse_mime.h,v 1.6 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse_mime.h,v 1.7 2004/03/07 14:28:37 wez Exp $ */ #ifndef php_mailparse_mime_h #define php_mailparse_mime_h http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_rfc822.h?r1=1.4&r2=1.5&ty=u Index: pecl/mailparse/php_mailparse_rfc822.h diff -u pecl/mailparse/php_mailparse_rfc822.h:1.4 pecl/mailparse/php_mailparse_rfc822.h:1.5 --- pecl/mailparse/php_mailparse_rfc822.h:1.4 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_rfc822.h Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | http://cvs.php.net/diff.php/pecl/mailparse/php_mailparse_rfc822.re?r1=1.8&r2=1.9&ty=u Index: pecl/mailparse/php_mailparse_rfc822.re diff -u pecl/mailparse/php_mailparse_rfc822.re:1.8 pecl/mailparse/php_mailparse_rfc822.re:1.9 --- pecl/mailparse/php_mailparse_rfc822.re:1.8 Fri Dec 19 21:38:22 2003 +++ pecl/mailparse/php_mailparse_rfc822.re Sun Mar 7 09:28:37 2004 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 4 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2003 The PHP Group | + | Copyright (c) 1997-2004 The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 2.02 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | @@ -15,7 +15,7 @@ | Author: Wez Furlong <wez@thebrainroom.com> | +----------------------------------------------------------------------+ */ -/* $Id: php_mailparse_rfc822.re,v 1.8 2003/12/20 02:38:22 wez Exp $ */ +/* $Id: php_mailparse_rfc822.re,v 1.9 2004/03/07 14:28:37 wez Exp $ */ #include "php.h" #include "php_mailparse.h"