Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:103475 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 93090 invoked from network); 22 Nov 2018 03:18:05 -0000 Received: from unknown (HELO mout.gmx.net) (212.227.15.18) by pb1.pair.com with SMTP; 22 Nov 2018 03:18:05 -0000 Received: from [192.168.2.105] ([79.222.39.127]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0MKqOW-1gPc6U2Uq0-0001in; Thu, 22 Nov 2018 00:40:18 +0100 To: Stanislav Malyshev , PHP Internals References: <47dd2988-6fb2-0685-efa1-a58cb55e9ecb@gmail.com> <563360e1-aa2f-6a2f-7299-caf9b85f2fff@gmx.de> <10374235-1d67-c300-2957-18bed9bd56c5@gmail.com> Message-ID: <6229f9c8-1ca9-546c-236d-64ac36685882@gmx.de> Date: Thu, 22 Nov 2018 00:40:23 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 MIME-Version: 1.0 In-Reply-To: <10374235-1d67-c300-2957-18bed9bd56c5@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:9QI3rfk9huyF7EGD0zlB73S/623W5HLFJb6+ybFeiE4aTk45Pil S4vb1rNd0podVsZ8Esz55BTL0K0fZsH39OEEgzw+NzKcHHwhVAggUdSzBHHag3wh3kBiaWo Z20woEgP4GjxITyvLxjZCUlVEGRsxeHdlNQztTp2Y2NjCA4QsuIT38cZCQfpX82Bj73H/sa N0yHKaoL+2T33vtoNyGHg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:0c9+UExwOYk=:UJ47PSz0j6ifVD52ahAX48 eFul+yYhl4viFebOHk1mko+EqlhAOUN9fMGTVsoys6hhxkO1IyviRwRXRoYglfndKMprVNlfG WAqk/YlKY05YWk7LAh2nvKL2NuV8tWtVFGq3vxPkFlixkwjlftkRWcdvDkdnp4HUF8AqnQ2EQ yUsPtE59g7nQScAbC+AeRTkmaVHILdvFgklzmHMRKD0RCM5hsNfEhs3GlNdj6yZSOR/m7SDa8 amMuxVVt8krbaHAJz5hUk7UmSThqbJ9efSxH9NFwwkyicTBTtAt17DCAA//8iVVhAVIeB3YDi EHAFVgrszrc2BDPOtSQ1fP9NdtlIKLr8TbyJKD6ybKfM7uoNd/mYN7ibc/2KBVHcypAGoKrui GPIdlAxKpe/xpbGRu1MYbQO1l0GrOEh0IWmsOs3tcje7XOAg+AwtKSvUFvIYuLhtHkVm6X2vo iGqPaQLGSSLQ/+9WbtR1EDHyAz2bCSeg+AYMPwlyTvZKubjvcheoA0geRnUdQohp+iOb4raTT zKV5NWQyi/ghptZzsvKCLm1jXWpbxMArrqad9Q63UTpkw/jBdhrAVexH41sXIVK5ZNsGijb0S q1Ko+JtVgZdDytIOrRpddA8/tF2lZx7G2ILKSl4BYF3f1AayVJEppruULgsmmhKM0O88CYDbk QK2Xw/GUgk0x1pdVF1RKcu30Z6jmSp6q++Y/X/QE5vL6P1vjJVsbNGO2646zk0zGj4aonNFht 7yI4lOUK1uAxsn3FMIp88LEb3SPgkURBCVFKivzvefnc2knsK9Ze1NwKci5y8HQfNDrcqe6j+ BCxZp/dR/dRU+urAAxgxPLoG2/9xWE6lImSRDJ5HVxx8F70Hr8Szykssu6IrT1fnJOp6E1cpq DHB9dU3olbAWa42DCVZpQKA/zjnm7WDXzOJ4FheaSOA4s1JDvUPSfImJKsRqxL Subject: Re: patch for imap bug 77153 From: cmbecker69@gmx.de ("Christoph M. Becker") On 21.11.2018 at 00:01, Stanislav Malyshev wrote: >> actually the PHP wrapper should not have allowed to pass the mailbox >> name verbatim, which would only be reasonable in my opinion, if we were >> supporting arbitrary drivers (which we don't). And of course, userland > > PHP does not do anything with mailbox names. In fact, PHP doesn't even > know what mailbox name is (it just passes opaque string to c-client and > hopes c-client can make sense of it, whatever that string does). Thus, > we support everything c-client supports, AFAIK. We could extract the > whole parsing logic from c-client and re-implement it, but I don't think > it's worth the time spent. libc-client supports *arbitrary* drivers[1], but the PHP wrapper does not[2] (presumably for good reasons[3]). Thus, the PHP wrapper could have expected an array (or some such) instead of a string, assembling the mailbox name from white-listed elements. This would have been a much cleaner and more robust API. Anyhow, this is water under the bridge now, and I think we should issue a call for maintainership[4] for ext/imap as soon as possible, since this is not the only issue[5] of this unmaintained[6] extension. [1] see docs/drivers.txt in the imap-2007f distribution [2] [3] see the mail_link() docs in docs/internal.txt [4] [5] [6] -- Christoph M. Becker