Revision: 12804
http://squirrelmail.svn.sourceforge.net/squirrelmail/?rev=12804&view=rev
Author: jangliss
Date: 2007-12-05 12:25:53 -0800 (Wed, 05 Dec 2007)
Log Message:
-----------
Some IMAP servers handle empty bodies different. NIL is a valid response for
the body, but we always expect a literal with a size. See RFC2180 sec 4.1.3.
Modified Paths:
--------------
trunk/squirrelmail/ChangeLog
trunk/squirrelmail/functions/mime.php
Modified: trunk/squirrelmail/ChangeLog
===================================================================
--- trunk/squirrelmail/ChangeLog 2007-12-05 20:21:46 UTC (rev 12803)
+++ trunk/squirrelmail/ChangeLog 2007-12-05 20:25:53 UTC (rev 12804)
@@ -236,7 +236,10 @@
- Added SquirrelMail debug mode.
- Handle PHP's insistence on setting the value to 'deleted' for destroyed
sessions
(#1829098).
+ - Some IMAP servers send nil for an empty email body (See RFC2180,
+ section 4.1.3 on empty strings).
+
Version 1.5.1 (branched on 2006-02-12)
--------------------------------------
- New reply citation to include date and author.
Modified: trunk/squirrelmail/functions/mime.php
===================================================================
--- trunk/squirrelmail/functions/mime.php 2007-12-05 20:21:46 UTC (rev
12803)
+++ trunk/squirrelmail/functions/mime.php 2007-12-05 20:25:53 UTC (rev
12804)
@@ -147,6 +147,8 @@
// }
} else if (ereg('"([^"]*)"', $topline, $regs)) {
$ret = $regs[1];
+ } else if ((stristr($topline, 'nil') !== false) && (empty($wholemessage)))
{
+ $ret = $wholemessage;
} else {
global $where, $what, $mailbox, $passed_id, $startMessage;
$par = 'mailbox=' . urlencode($mailbox) . '&passed_id=' .
$passed_id;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-----
squirrelmail-cvs mailing list
List address: squirrelmail-cvs-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx
List info (subscribe/unsubscribe/change options):
https://lists.sourceforge.net/lists/listinfo/squirrelmail-cvs
Repository: http://squirrelmail.org/svn
|