Help coderanch get a
new server
by contributing to the fundraiser

Sumanth R Prasad

Greenhorn
+ Follow
since Aug 14, 2003
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sumanth R Prasad

Hi,

Can anyone plz suggest me the best way to check for new messages in a mail Folder at regular intervals.

I know that a message can be checked if its new using the Flags.Flag.RECENT or SEEN flags.
But in a folder of 500 messages, checking each & every msg wouldn't be the best method I suppose.

Anything more efficient?? Would really appreciate it.

(P.S : I need to do this on an IMAP server, just FYI.)

Thanx,
Sumanth
19 years ago
Is there any way to know what exit value represents what?
I know that 0 represents normal termination, but for abnormal stuff ...??
I'm trying to copy a file using Runtime.exec.. and for some reason its failing but I can't seem to know why...coz its not throwing an exception...
I have an if else condition i.e. if exitvalue=0 print(success) else print(failure)... and its always printing failure...
Kindly help me regarding this..
20 years ago
Hi...
I have about 100000 records which is returned in a resultset through a query...
I have to scan each row and append the first field onto a file..
Right now, I'm doing this..

The Problem is that the process is taking about 6-7 minutes, which is way too long for my requirement...
Can anyone plz suggest a better (faster) solution ??
The situation is :
I'm trying to write something onto a socket.... during the process, the connection is lost ( cable is disconnected)... Is there anyway to detect the failure, by catching an exception?
Currently, i'm executing the write statements inside a try block and catching any exception which would be thrown.... but it's not throwing any exception and continuing to write as if the connection is still intact...
this is resulting in data loss....
Is there anyway to detect this and solve the problem???
without actually displaying it in the window itself....
(since text is a displayable format....the browser opens it directly in the window..)
Is there any way to make the browser ask the user to "whether oen or save" as it does for most other file formats....
If not.... at least is there a way to display the contents of the text file in its original format in a new window...??
Thanx in advance....
21 years ago
JSP
Hi !
Plz lemme know if there's a way of determining the size of a zip file in bytes...
(can I use RandomAccessFile.length() for zip files?)
Thanx in advance
Sumanth
21 years ago