Changeset 597 in subversion


Ignore:
Timestamp:
Jun 5, 2007 12:46:49 PM (6 years ago)
Author:
till
Message:

+ CS and debugging in rcube_imap

  • removing _old
Location:
branches/devel-vnext
Files:
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • branches/devel-vnext/program/include/rcube_imap.inc

    r595 r597  
    12381238 
    12391239 
    1240   /** 
    1241    * Fetch message body of a specific message from the server 
    1242    * 
    1243    * @param  int    Message UID 
    1244    * @return Message/part body 
    1245    * @see    ::get_message_part() 
    1246    */ 
    1247   function &get_body($uid, $part=1) 
    1248     { 
    1249     return $this->get_message_part($uid, $part); 
    1250     } 
    1251  
    1252  
    1253   /** 
    1254    * Returns the whole message source as string 
    1255    * 
    1256    * @param int  Message UID 
    1257    * @return Message source string 
    1258    */ 
    1259   function &get_raw_body($uid) 
    1260     { 
    1261     if (!($msg_id = $this->_uid2id($uid))) 
    1262       return FALSE; 
    1263  
    1264         $body = iil_C_FetchPartHeader($this->conn, $this->mailbox, $msg_id, NULL); 
    1265         $body .= iil_C_HandlePartBody($this->conn, $this->mailbox, $msg_id, NULL, 1); 
    1266  
    1267     return $body; 
    1268     } 
    1269  
    1270  
    1271   /** 
    1272    * Sends the whole message source to stdout 
    1273    * 
    1274    * @param int  Message UID 
    1275    */ 
    1276   function print_raw_body($uid) 
    1277     { 
    1278     if (!($msg_id = $this->_uid2id($uid))) 
    1279       return FALSE; 
    1280  
    1281         print iil_C_FetchPartHeader($this->conn, $this->mailbox, $msg_id, NULL); 
    1282         flush(); 
    1283         iil_C_HandlePartBody($this->conn, $this->mailbox, $msg_id, NULL, 2); 
     1240    /** 
     1241     * Fetch message body of a specific message from the server 
     1242     * 
     1243     * @param  int    Message UID 
     1244     * @return Message/part body 
     1245     * @see    ::get_message_part() 
     1246     */ 
     1247    function &get_body($uid, $part=1) 
     1248    { 
     1249        return $this->get_message_part($uid, $part); 
     1250    } 
     1251 
     1252 
     1253    /** 
     1254     * Returns the whole message source as string 
     1255     * 
     1256     * @param int  Message UID 
     1257     * @return Message source string 
     1258     */ 
     1259    function &get_raw_body($uid) 
     1260    { 
     1261        if (!($msg_id = $this->_uid2id($uid))) { 
     1262            return FALSE; 
     1263        } 
     1264        $body = iil_C_FetchPartHeader($this->conn, $this->mailbox, $msg_id, NULL); 
     1265        $body .= iil_C_HandlePartBody($this->conn, $this->mailbox, $msg_id, NULL, 1); 
     1266 
     1267        return $body; 
     1268    } 
     1269 
     1270 
     1271    /** 
     1272     * Sends the whole message source to stdout 
     1273     * 
     1274     * @param int  Message UID 
     1275     */ 
     1276    function print_raw_body($uid) 
     1277    { 
     1278        if (!($msg_id = $this->_uid2id($uid))) { 
     1279            return FALSE; 
     1280        } 
     1281        print iil_C_FetchPartHeader($this->conn, $this->mailbox, $msg_id, NULL); 
     1282            flush(); 
     1283            iil_C_HandlePartBody($this->conn, $this->mailbox, $msg_id, NULL, 2); 
    12841284    } 
    12851285 
Note: See TracChangeset for help on using the changeset viewer.