[Svn] r2360 - branches/devel-api/program/lib

trac at roundcube.net trac at roundcube.net
Thu Mar 26 08:52:04 CET 2009


Author: thomasb
Date: 2009-03-26 02:52:04 -0500 (Thu, 26 Mar 2009)
New Revision: 2360

Modified:
   branches/devel-api/program/lib/imap.inc
Log:
Fix IMAP header fetch

Modified: branches/devel-api/program/lib/imap.inc
===================================================================
--- branches/devel-api/program/lib/imap.inc	2009-03-19 07:53:16 UTC (rev 2359)
+++ branches/devel-api/program/lib/imap.inc	2009-03-26 07:52:04 UTC (rev 2360)
@@ -1658,6 +1658,9 @@
 			}
 		}
 	}
+	
+	if ($add)
+	  $add = ' '.strtoupper(trim($add));
 
 	/* FETCH uid, size, flags and headers */
 	$key  	  = 'FH12';
@@ -1665,7 +1668,7 @@
 	$request .= "(UID RFC822.SIZE FLAGS INTERNALDATE BODY.PEEK[HEADER.FIELDS ";
 	$request .= "(DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC BCC ";
 	$request .= "CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID ";
-	$request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY ".strtoupper($add).")])";
+	$request .= "REFERENCES DISPOSITION-NOTIFICATION-TO X-PRIORITY".$add.")])";
 
 	if (!iil_PutLine($fp, $request)) {
 		return false;

_______________________________________________
http://lists.roundcube.net/mailman/listinfo/svn



More information about the Svn mailing list