2
0
Pascal Peridont 19 жил өмнө
parent
commit
10cf75c2d4

+ 2 - 2
std/mtwin/mail/imap/Connection.hx

@@ -330,7 +330,7 @@ class Connection {
 					}else if( REG_FETCH_PART.match( s ) ){
 						var len = Std.parseInt(REG_FETCH_PART.matched(2));
 						
-						o.body = cnx.input.readBytes( len );
+						o.body = cnx.input.read( len );
 						o.bodyType = REG_FETCH_PART.matched(1);
 						
 						cnx.input.readLine();
@@ -454,7 +454,7 @@ class Connection {
 		var reg = ~/(?<!\] )\{([0-9]+)\}$/;
 		while( reg.match( s ) ){
 			var len = Std.parseInt( reg.matched(1) );
-			var t = cnx.input.readBytes( len );
+			var t = cnx.input.read( len );
 			var e = cnx.input.readLine();
 			s = s.substr(0,-reg.matchedPos().len)+"\""+t.split("\"").join("\\\"")+"\"" +e;
 		}