From nobody@FreeBSD.org  Mon Jan 29 16:35:57 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 06CB816A401
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 29 Jan 2007 16:35:57 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id EA2BA13C442
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 29 Jan 2007 16:35:56 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l0TGZutv033001
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 29 Jan 2007 16:35:56 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l0TGZu3X033000;
	Mon, 29 Jan 2007 16:35:56 GMT
	(envelope-from nobody)
Message-Id: <200701291635.l0TGZu3X033000@www.freebsd.org>
Date: Mon, 29 Jan 2007 16:35:56 GMT
From: Cristian KLEIN<cristi@net.utcluj.ro>
To: freebsd-gnats-submit@FreeBSD.org
Subject: mail/squirrelmail-devel returns an error while reading messages
X-Send-Pr-Version: www-3.0

>Number:         108521
>Category:       ports
>Synopsis:       mail/squirrelmail-devel returns an error while reading messages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    rafan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 29 16:40:16 GMT 2007
>Closed-Date:    Tue Mar 20 14:53:13 GMT 2007
>Last-Modified:  Tue Mar 20 15:00:23 GMT 2007
>Originator:     Cristian KLEIN
>Release:        FreeBSD 5.4
>Organization:
Technical University of Cluj-Napoca
>Environment:
FreeBSD bavaria.utcluj.ro 5.4-RELEASE-p13 FreeBSD 5.4-RELEASE-p13 #0: Tue Mar 28 16:16:32 EEST 2006     cristiklein@bavaria.utcluj.ro:/usr/obj/usr/src/sys/BAVARIA  i386
>Description:
squirrelmail-devel returns the following error while reading am already read message:

Category:  PHP
Message:  preg_split() expects parameter 4 to be long, string given
FILE:  /var/www/intranet/sqmail/functions/imap_messages.php
LINE:  926
Category:  PHP
Message:  Invalid argument supplied for foreach()
FILE:  /var/www/intranet/sqmail/functions/mime.php
LINE:  52

>How-To-Repeat:
NOTE: The error is hard to reproduce.

* Install squirrelmail-devel
* Navigate through your mails (espacially the ones you already read)
* On the bottom of the right frame the above mentioned error will appear
>Fix:
--- functions/imap_messages.php.orig    Sun Feb 12 20:21:50 2006
+++ functions/imap_messages.php Mon Jan 22 20:14:11 2007
@@ -923,7 +923,7 @@
     if ($read) {
         if (preg_match('/.+FLAGS\s\((.*)\)\s/AUi',$read[0],$regs)) {
             if (trim($regs[1])) {
-                $flags = preg_split('/ /', $regs[1],-1,'PREG_SPLIT_NI_EMPTY');
+                $flags = preg_split('/ /', $regs[1],-1,PREG_SPLIT_NO_EMPTY);
             }
         }
     } else {

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Mon Jan 29 16:40:23 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108521 
Responsible-Changed-From-To: freebsd-ports-bugs->rafan 
Responsible-Changed-By: rafan 
Responsible-Changed-When: Tue Feb 27 16:12:35 UTC 2007 
Responsible-Changed-Why:  
Eat. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108521 
State-Changed-From-To: feedback->closed 
State-Changed-By: rafan 
State-Changed-When: Tue Mar 20 14:53:12 UTC 2007 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=108521 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/108521: commit references a PR
Date: Tue, 20 Mar 2007 14:53:09 +0000 (UTC)

 rafan       2007-03-20 14:53:03 UTC
 
   FreeBSD ports repository
 
   Modified files:
     mail/squirrelmail-devel Makefile 
   Added files:
     mail/squirrelmail-devel/files 
                                   patch-class-deliver-Deliver_SMTP.class.php 
                                   patch-functions-imap_messages.php 
   Log:
   - Fix error while reading an already read mail which is caused by
     incorrect constant passed to preg_split()
   - Correct recipient address in return receipt
   
   These are submitted to upstream, too.
   
   PR:             ports/108519, ports/108521
   Submitted by:   Cristian KLEIN <cristi at net.utcluj.ro>
   Approved by:    maintainer timeout (7 weeks)
   
   Revision  Changes    Path
   1.3       +1 -0      ports/mail/squirrelmail-devel/Makefile
   1.1       +12 -0     ports/mail/squirrelmail-devel/files/patch-class-deliver-Deliver_SMTP.class.php (new)
   1.1       +12 -0     ports/mail/squirrelmail-devel/files/patch-functions-imap_messages.php (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
