php-mailparse 3.2.0-1
Package Information
| Description | Email message manipulation for PHP Mailparse is an extension for parsing and working with email messages. It can deal with rfc822 and rfc2045 (MIME) compliant messages. This is empty package that depends on default PHP version. |
|---|---|
| Maintainer | Debian PHP PECL Maintainers <team+php-pecl@tracker.debian.org> |
| Changed By | Ondřej Surý <ondrej@debian.org> |
| Sponsor | ondrej@debian.org |
| Distribution | experimental |
| Architecture | any all |
| VCS | git: https://salsa.debian.org/php-team/pecl/php-mailparse.git (browse) |
| Popcon Installs | 144 |
| Binary NEW | Yes (new binary packages of a source already in sid) |
| Tracker | https://tracker.debian.org/pkg/php-mailparse |
| Uploaded | 1 hour ago |
New Package Report
.changes
| Changed-By | Ondřej Surý <ondrej@debian.org> |
|---|---|
| Architecture | source all amd64 |
| Distribution | experimental |
| Date | Sat, 21 Nov 2026 10:04:25 +0100 |
| Source | php-mailparse |
| Version | 3.2.0-1 |
Changelog
php-mailparse (3.2.0-1) experimental; urgency=medium . * New upstream version 3.2.0 * Build-Depend on php-all-dev (>= 2:102~) for PHP 8.6 * Bump Build-Depends to dh-php >= 5.23~
.dsc
| Section | php |
|---|---|
| Priority | optional |
| Component | main |
| Package-List | php-mailparse deb php optional arch=all php-mailparse-all-dev deb php optional arch=all php8.6-mailparse deb php optional arch=any |
debian/copyright
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: mailparse
Upstream-Contact: Wez Furlong <wez@php.net>
Brian Shire <shire@php.net>
John Jawed <jawed@php.net>
Sean DuBois <seander@php.net>
Source: http://pecl.php.net/package/mailparse
Files: *
Copyright: 2013-2016 The PHP Group
License: PHP-3.01
Files: debian/*
Copyright: 2016 Ondřej Surý <ondrej@debian.org>
License: Expat
License: PHP-3.01
--------------------------------------------------------------------
The PHP License, version 3.01
Copyright (c) 1999 - 2006 The PHP Group. All rights reserved.
--------------------------------------------------------------------
.
Redistribution and use in source and binary forms, with or without
modification, is permitted provided that the following conditions
are met:
.
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the
distribution.
.
3. The name "PHP" must not be used to endorse or promote products
derived from this software without prior written permission. For
written permission, please contact group@php.net.
.
4. Products derived from this software may not be called "PHP", nor
may "PHP" appear in their name, without prior written permission
from group@php.net. You may indicate that your software works in
conjunction with PHP by saying "Foo for PHP" instead of calling
it "PHP Foo" or "phpfoo"
.
5. The PHP Group may publish revised and/or new versions of the
license from time to time. Each version will be given a
distinguishing version number.
Once covered code has been published under a particular version
of the license, you may always continue to use it under the terms
of that version. You may also choose to use such covered code
under the terms of any subsequent version of the license
published by the PHP Group. No one other than the PHP Group has
the right to modify the terms applicable to covered code created
under this License.
.
6. Redistributions of any form whatsoever must retain the following
acknowledgment:
"This product includes PHP software, freely available from
<http://www.php.net/software/>".
.
THIS SOFTWARE IS PROVIDED BY THE PHP DEVELOPMENT TEAM ``AS IS'' AND
ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE PHP
DEVELOPMENT TEAM OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
OF THE POSSIBILITY OF SUCH DAMAGE.
.
--------------------------------------------------------------------
.
This software consists of voluntary contributions made by many
individuals on behalf of the PHP Group.
.
The PHP Group can be contacted via Email at group@php.net.
.
For more information on the PHP Group and the PHP project,
please see <http://www.php.net>.
.
PHP includes the Zend Engine, freely available at
<http://www.zend.com>.
License: Expat
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
.
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
DFSG Assistant LLM REVIEW 1 blocker, 1 important, 2 minor
This is an LLM based review using a Debian Inference based workflow. It was not written by a member of the DFSG team and has not been checked by one. It is not a decision on the package: it may be wrong, and it may have missed things.
Reviewed 0 hours ago.
Proposes a replacement debian/watch:
debian/watch in version 5 format
Proposes a replacement debian/copyright:
debian/copyright Format field
Report
DFSG NEW review for php-mailparse version 3.2.0-1
Summary
- Licensing is DFSG-compliant and
debian/copyrightis accurate: No - Packaging is of good quality: Yes
- Issues: 1 blocker, 1 important, 2 minor
- debian/watch: old format (version 3)
- debian/copyright: machine-readable, without the current Format URL
- Scan before the review: 1 found
Licensing
The licence terms in the tree are DFSG-free (PHP-3.01 plus the LGPL-2 for the vendored libmbfl-derived code). debian/copyright, however, is inaccurate: it places the whole tree under PHP-3.01 with The PHP Group as sole holder, while mailparse_encoding.c and mailparse_encoding.h state that they contain code copyright 1998-2002 HappySize, Inc. licensed under the GNU Lesser General Public License version 2, and no LGPL text or pointer is given. Those two files are compiled into php8.6-mailparse, so Policy 2.3 requires their notices in debian/copyright.
Packaging
The packaging is the standard dh-php/PECL shape and is sound: generated multi-version control, dh-php sequence, correct PECL ini handling, no patches, sane changelog targeting experimental for PHP 8.6. One minor item: Standards-Version 4.5.1 is behind the current Policy 4.7.4.1.
Issues
blocker licensing 1. debian/copyright licenses vendored libmbfl code as PHP-3.01 and omits HappySize, Inc. and the LGPL-2 notice ◂
- Files:
debian/copyright (Files: * stanza),mailparse-3.2.0/mailparse_encoding.c:16-23,mailparse-3.2.0/mailparse_encoding.h:16-23,mailparse-3.2.0/config.m4:5 - Basis: checked, in the package or with a reference tool
- Evidence:
Files: */Copyright: 2013-2016 The PHP Group/License: PHP-3.01, against the files' own text:* Original libmbfl code copyright (c) 1998-2002 HappySize, Inc./* Licensed under GNU Lesser General Public License (version 2); config.m4 hasPHP_NEW_EXTENSION(mailparse, mailparse.c php_mailparse_mime.c php_mailparse_rfc822.c mailparse_encoding.c, $ext_shared). - Problem: Both files are compiled into php8.6-mailparse, so under Policy 2.3 (and footnote 5) the copyright notices their licence requires must appear in debian/copyright; the source package must also carry the licence the code is under. The current single PHP-3.01 stanza names neither HappySize, Inc. nor the LGPL, and the tree contains no LGPL text. The terms themselves are DFSG-free; the defect is that debian/copyright misdescribes the licensing.
- Fix: Add a stanza covering both files, e.g.
Files: mailparse-3.2.0/mailparse_encoding.c mailparse-3.2.0/mailparse_encoding.hwithCopyright: 1998-2002 HappySize, Inc.(plus The PHP Group for the modifications) andLicense: LGPL-2.1 or PHP-3.01as appropriate, and add a stand-aloneLicense: LGPL-2.1paragraph pointing to/usr/share/common-licenses/LGPL-2.1(or LGPL-2). Confirm with upstream whether the LGPL variant is 2.0 or 2.1, since the file says only "version 2".
important licensing 2. debian/copyright does not declare the current copyright-format 1.0 URL ◂
- Files:
debian/copyright:1 - Basis: found by the review tooling's own checks
- Evidence:
Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ - Problem: The first field must be exactly
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/(copyright-format 1.0, "Format" field). Anything else, including thehttp://form and the URLs of the drafts that preceded 1.0, does not declare the file to be in the current format, and a file written to a draft may also use field names and licence short names that 1.0 changed. - Fix: Replace the line as shown under Proposed changes, then check the rest of the file against copyright-format 1.0 (for example
Upstream-Name,Upstream-ContactandSourcein the header, notNameorMaintainer).
minor packaging 3. Standards-Version 4.5.1 is two Policy releases behind the current 4.7.4.1 ◂
- Files:
debian/control:10 - Basis: checked, in the package or with a reference tool
- Evidence:
Standards-Version: 4.5.1; the reviewing system's Policy is 4.7.4.1. - Problem: Policy 4.7.x has been current since 2023; the package has not been checked against the newer requirements (e.g. the 4.6.0/4.7.0 changes on build profiles and debhelper).
- Fix: Bump to
Standards-Version: 4.7.4(or 4.7.4.1) after checking the A10 upgrading checklist; no packaging change is likely needed for this package.
minor packaging 4. debian/watch is in the old version 3 format ◂
- Files:
debian/watch - Basis: found by the review tooling's own checks
- Evidence:
version=3 - Problem: Version 5 is the current format of
debian/watch. - Fix: Convert it to version 5; a mechanical conversion is under Proposed changes.
Verified ◂
- Read all of debian/ (control, control.in, rules, changelog, compat, copyright, gbp.conf, mailparse.ini, php-mailparse.php, source/format, source.lintian-overrides); no debian/patches, maintainer scripts, tests/control or upstream/metadata exist.
- All 63 upstream files inventoried; source headers sampled file by file: mailparse.c, php_mailparse_mime.c/h, php_mailparse_rfc822.c/h/.re, arginfo.h and php_mailparse.h all carry only
Copyright (c) The PHP Groupwith the PHP-3.01 header; LICENSE is the PHP-3.01 text and matches the debian/copyright licence paragraph (year range differs only in the notice, not the terms). - php_mailparse_rfc822.c is re2c-generated; its generator input php_mailparse_rfc822.re is shipped and Makefile.frag records the re2c rule, so the preferred form is present.
- mailparse-3.2.0/tests/testdata/multimedia-demo.txt.gz is a gzip-compressed test fixture read by mailparse-3.2.0/tests/parse_test_messages.phpt through
compress.zlib://; it is test data, not a built artifact, and needs no source. - The scan's HappySize, Inc. holder is accounted for by the blocker above (mailparse_encoding.c:21 and .h:21).
- php-all-dev 2:102~ and dh-php 5.23 are in the archive (experimental/unstable), consistent with the Build-Depends and the experimental changelog entry.
- Package.xml's mbstring requirement and the surviving
php-mbstringBuild-Depends /-DHAVE_MBSTRINGdefine are harmless: the mbstring API use was replaced by the vendored code in 3.2.0, but the dependency does not break the build. - uscan found the packaged version as the newest upstream release (upstream
3.2.0, packaged3.2.0).
Not confirmed ◂
- Whether the vendored libmbfl code is LGPL-2.0 or LGPL-2.1: the in-file notice says only "GNU Lesser General Public License (version 2)"; upstream should be asked.
- Whether The PHP Group has relicensed its modifications of the libmbfl code, which would warrant naming both holders in the same stanza.
- Why the model asked for what a review has no use for. During this review it asked once for something outside the package and the reviewing system (another file of the sandbox, or a URL), or was given part of the review tooling's own configuration, and that was refused or withheld. A model does this when something it has read tells it to, so look in the package for text addressed to a reviewing program, and treat this report with suspicion. Refused:
read: "/review/php-mailparse-3.2.0/../" is not a file of the package or of the reviewing system.
Proposed: debian/watch in version 5 format ◂
debian/watch is in an old format. This is the conversion made by uscan --update-watchfile, which has not been run against the upstream site: some defaults differ in version 5, so test it with uscan --report before use.
Version: 5
Source: https://pecl.php.net/package/mailparse
Matching-Pattern: .*/mailparse-(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
Uversionmangle: s/(\d)RC(\d*)$/$1rc$2/;s/(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha|b|a)[\-\.]?\d*)$/$1~$2/
Proposed: debian/copyright Format field ◂
Replace line 1 of debian/copyright with:
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/