Show
Ignore:
Timestamp:
07/13/07 10:05:37 PM (18 months ago)
Author:
octorian
Message:

Initial implementation of showing unread counts in the folder tree #27 using a manual refresh menu item.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/LogicMail/src/org/logicprobe/LogicMail/util/Connection.java

    r128 r129  
    258258    } 
    259259     
     260    /** 
     261     * Sends a string to the server. This method is used to bypass all 
     262     * the processing done by the normal send method, and is most useful 
     263     * for bulk transmissions.  It writes the provided string to the socket 
     264     * in a single command, followed by a flush. 
     265     * 
     266     * @see #send 
     267     */ 
     268    public void sendRaw(String s) throws IOException { 
     269        byte[] bytes = s.getBytes(); 
     270        int length = bytes.length; 
     271         
     272        if (debug) { 
     273            System.out.println("[SEND] " + s); 
     274        } 
     275 
     276        output.write(bytes, 0, bytes.length); 
     277         
     278        output.flush(); 
     279    } 
     280 
    260281    /** 
    261282     * Receives a string from the server. This method is used internally for