summaryrefslogtreecommitdiff
path: root/program/lib
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-01-20 17:58:55 +0000
committerthomascube <thomas@roundcube.net>2006-01-20 17:58:55 +0000
commit0284c23b3440c685e519389573284626a76ea0ef (patch)
tree40beb632fc9af1682295e7f9c791d1ed3bb80c22 /program/lib
parent5cbdff598e4ca960835fbc5ceaeba80fcc6bd46c (diff)
Added change notice
Diffstat (limited to 'program/lib')
-rw-r--r--program/lib/imap.inc25
1 files changed, 16 insertions, 9 deletions
diff --git a/program/lib/imap.inc b/program/lib/imap.inc
index daacb03b4..e03abe49f 100644
--- a/program/lib/imap.inc
+++ b/program/lib/imap.inc
@@ -23,9 +23,24 @@
Function containing "_C_" in name require connection handler to be
passed as one of the parameters. To obtain connection handler, use
iil_Connect()
+ VERSION:
+ IlohaMail-0.9-20050415
+ CHANGES:
+ File altered by Thomas Bruederli <roundcube@gmail.com>
+ to fit enhanced equirements by the RoundCube Webmail:
+ - Added list of server capabilites and check these before invoking commands
+ - Added junk flag to iilBasicHeader
+ - Enhanced error reporting on fsockopen()
+ - Additional parameter for SORT command
+ - Removed Call-time pass-by-reference because deprecated
+ - Parse charset from content-type in iil_C_FetchHeaders()
+ - Enhanced heaer sorting
+ - Pass message as reference in iil_C_Append (to save memory)
+ - Removed some debuggers (echo ...)
********************************************************/
+
// changed path to work within roundcube webmail
include_once("lib/icl_commons.inc");
@@ -619,7 +634,6 @@ function iil_C_Sort(&$conn, $mailbox, $field, $add=''){
$fp = $conn->fp;
$command = 's SORT ('.$field.') US-ASCII ALL '."$add\r\n";
- //$command = 's SORT ('.$field.') US-ASCII ALL UNDELETED'."\r\n";
$line = $data = '';
if (!fputs($fp, $command)) return false;
@@ -1195,8 +1209,6 @@ function iil_C_FetchHeaders(&$conn, $mailbox, $message_set){
$key="fh".($c++);
$request=$key." FETCH $message_set (BODY.PEEK[HEADER.FIELDS (DATE FROM TO SUBJECT REPLY-TO IN-REPLY-TO CC CONTENT-TRANSFER-ENCODING CONTENT-TYPE MESSAGE-ID)])\r\n";
- // echo "// $request\n\n";
-
if (!fputs($fp, $request)) return false;
do{
$line=chop(iil_ReadLine($fp, 200));
@@ -1904,16 +1916,12 @@ function iil_C_Append(&$conn, $folder, &$message){
if (!$len) return false;
$request="A APPEND \"".$folder."\" (\\Seen) {".$len."}\r\n";
- // echo $request.'<br>';
if (fputs($fp, $request)){
- $line=iil_ReadLine($fp, 100);
- // echo $line.'<br>';
-
+ $line=iil_ReadLine($fp, 100);
$sent = fwrite($fp, $message."\r\n");
flush();
do{
$line=iil_ReadLine($fp, 1000);
- //echo $line.'<br>';
}while($line[0]!="A");
$result = (iil_ParseResult($line)==0);
@@ -1961,7 +1969,6 @@ function iil_C_AppendFromFile(&$conn, $folder, $path){
//read response
do{
$line=iil_ReadLine($fp, 1000);
- //echo $line.'<br>';
}while($line[0]!="A");
$result = (iil_ParseResult($line)==0);