$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))returnfalse;
do{
$line=chop(iil_ReadLine($fp,200));
$a=explode(" ",$line);
if(($line[0]=="*")&&($a[2]=="FETCH")){
$id=$a[1];
$result[$id]=newiilBasicHeader;
$result[$id]->id=$id;
$result[$id]->subject="";
/*
Start parsing headers. The problem is, some header "lines" take up multiple lines.
So, we'll read ahead, and if the one we're reading now is a valid header, we'll
process the previous line. Otherwise, we'll keep adding the strings until we come