Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97802 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72093 invoked from network); 17 Jan 2017 09:21:00 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Jan 2017 09:21:00 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@ohgaki.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@ohgaki.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ohgaki.net designates 180.42.98.130 as permitted sender) X-PHP-List-Original-Sender: yohgaki@ohgaki.net X-Host-Fingerprint: 180.42.98.130 ns1.es-i.jp Received: from [180.42.98.130] ([180.42.98.130:35158] helo=es-i.jp) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7B/F0-00729-AF1ED785 for ; Tue, 17 Jan 2017 04:20:59 -0500 Received: (qmail 130933 invoked by uid 89); 17 Jan 2017 09:20:53 -0000 Received: from unknown (HELO mail-wm0-f49.google.com) (yohgaki@ohgaki.net@74.125.82.49) by 0 with ESMTPA; 17 Jan 2017 09:20:53 -0000 Received: by mail-wm0-f49.google.com with SMTP id c206so213315578wme.0 for ; Tue, 17 Jan 2017 01:20:53 -0800 (PST) X-Gm-Message-State: AIkVDXIJwcy+n6+/1GqRVrt8hG9rQv7bNn2HUs504OOeDMozq7bCkHHJifNcrMxyAt9GiG5Cirt+AT7Sf6y1QQ== X-Received: by 10.28.13.131 with SMTP id 125mr5068074wmn.122.1484644847356; Tue, 17 Jan 2017 01:20:47 -0800 (PST) MIME-Version: 1.0 Received: by 10.195.12.8 with HTTP; Tue, 17 Jan 2017 01:20:06 -0800 (PST) In-Reply-To: References: Date: Tue, 17 Jan 2017 18:20:06 +0900 X-Gmail-Original-Message-ID: Message-ID: To: Stanislav Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113eb392be977e054646d0a4 Subject: Re: [PHP-DEV] Improving mail() 5th parameter handling From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113eb392be977e054646d0a4 Content-Type: text/plain; charset=UTF-8 Hi Stas, On Tue, Jan 17, 2017 at 6:02 AM, Stanislav Malyshev wrote: > > - Allow array additional_parameter and soft deprecate (document > > deprecation) string one. > > - Use key as "option name" and validate chars > > - Use value as "option value" and validate some control chars then apply > > escapeshellarg() > > Making array sounds good, but I'm not sure what is meant by "option > name" here - CLI arguments don't have names? I'm planning to use extra_parameters array like $opts = [ '-f' => 'some@example.com', // Envelope sender '-4' => null, // Force IPv4 '-au' => 'user@example.com', // SMTP auth user '-ap' => 'secret', // SMTP auth password '-am' => 'CRAM-MD5', // SMTP auth method ]; To all, I cannot reseach all kinds of sendmail binaries. If there are exotic sendmail binaries, I would like to know the reference for them. Thank you. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113eb392be977e054646d0a4--