Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54367 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 46564 invoked from network); 4 Aug 2011 16:26:32 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Aug 2011 16:26:32 -0000 Authentication-Results: pb1.pair.com smtp.mail=ava3ar@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ava3ar@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.170 as permitted sender) X-PHP-List-Original-Sender: ava3ar@gmail.com X-Host-Fingerprint: 209.85.220.170 mail-vx0-f170.google.com Received: from [209.85.220.170] ([209.85.220.170:44737] helo=mail-vx0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 11/53-31835-738CA3E4 for ; Thu, 04 Aug 2011 12:26:31 -0400 Received: by vxh24 with SMTP id 24so513536vxh.29 for ; Thu, 04 Aug 2011 09:26:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=s0g0ZbJ2mt8M13JTV7DkrCdav8dUKVGnUKPL+j5uk3E=; b=uBZMR4rK6V/hXmJpy0xjj/k8dp0d2SBrQukIwwrsoIxK9VxB3Y8NrriM+WHFLqEMIe LvfQ8u5zE6HgT4VRLI+QIbOPqhrAccMPiJx/sa6cAlejNmWHhzBYBVx+ZpguTrb/pIRJ x8q8HWCV0r2B4skqg7+UrBmq/RsteFHW5t/dI= Received: by 10.52.22.81 with SMTP id b17mr955568vdf.430.1312475188782; Thu, 04 Aug 2011 09:26:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.164.16 with HTTP; Thu, 4 Aug 2011 09:23:06 -0700 (PDT) In-Reply-To: References: Date: Thu, 4 Aug 2011 17:23:06 +0100 Message-ID: To: Pierre Joye Cc: PHP Internals Content-Type: multipart/alternative; boundary=20cf307812dc67645e04a9b07147 Subject: Re: [PHP-DEV] [PATCH] fix imap_mail actually use the rpath option From: ava3ar@gmail.com (Keloran) --20cf307812dc67645e04a9b07147 Content-Type: text/plain; charset=ISO-8859-1 cool, thanks that patch is for 5.4 (since the line nums changed from 5.3-5.4, On Thu, Aug 4, 2011 at 5:19 PM, Pierre Joye wrote: > I have now attached the patch to the issue: > https://bugs.php.net/bug.php?id=30688 > > On Thu, Aug 4, 2011 at 6:07 PM, Keloran wrote: > > patch attached > > > > On Thu, Aug 4, 2011 at 4:39 PM, Pierre Joye > wrote: > >> > >> hi, > >> > >> Can you attach this patch to the bug please? > >> > >> Thanks for your work! > >> > >> On Thu, Aug 4, 2011 at 5:30 PM, Keloran wrote: > >> > Index: ext/imap/php_imap.c > >> > =================================================================== > >> > --- ext/imap/php_imap.c (revision 314217) > >> > +++ ext/imap/php_imap.c (working copy) > >> > @@ -4016,7 +4016,27 @@ > >> > if (!INI_STR("sendmail_path")) { > >> > return 0; > >> > } > >> > - sendmail = popen(INI_STR("sendmail_path"), "w"); > >> > + > >> > + /** Used to make return-path work **/ > >> > + char *sendmail_path = INI_STR("sendmail_path"); > >> > + char *appended_sendmail_path = NULL; > >> > + > >> > + /** Return Path or not **/ > >> > + if (rpath && rpath[0]) { > >> > + appended_sendmail_path = emalloc( > >> > + strlen(sendmail_path) + 3 + strlen(rpath) + 1); > >> > + strcpy(appended_sendmail_path, sendmail_path); > >> > + strcat(appended_sendmail_path, " -f"); > >> > + strcat(appended_sendmail_path, rpath); > >> > + sendmail_path = appended_sendmail_path; > >> > + } > >> > + > >> > + /** open the sendmail pointer **/ > >> > + sendmail = popen(sendmail_path, "w"); /* New Code */ > >> > + > >> > + if (appended_sendmail_path) > >> > + efree(appended_sendmail_path); > >> > + > >> > if (sendmail) { > >> > if (rpath && rpath[0]) fprintf(sendmail, "From: %s\n", > >> > rpath); > >> > fprintf(sendmail, "To: %s\n", to); > >> > > >> > ================ > >> > > >> > hopefully that will work to fix the rpath option, and finally close > this > >> > bug http://bugs.php.net/bug.php?id=30688 > >> > > >> > >> > >> > >> -- > >> Pierre > >> > >> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > > > > > > > > -- > Pierre > > @pierrejoye | http://blog.thepimp.net | http://www.libgd.org > --20cf307812dc67645e04a9b07147--