Wolfgang Beikircher
2009-01-29 13:03:41 UTC
Hey guys!
I'm trying to realize a synchronization application which keeps in sync
2 different mail server. Actually, I saw that javaMail supports the IDLE
command to get notified by the server if there are some changes.
Unfortuantely, the IDLE command is on a per-folder basis and blocks the
actual Thread. Therefore, if I want to use it, I would have to create a
thread for each folder. This solution has not really a good
performance.
I'm questioning myself now, if I'm using the command in the correct way.
Could you maybe help me? Are there other solutions?
By the way, I would also be notified if, for example, the flags change.
Therefore, a polling mechanism is not really the solution.
thanks for helping.
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".
I'm trying to realize a synchronization application which keeps in sync
2 different mail server. Actually, I saw that javaMail supports the IDLE
command to get notified by the server if there are some changes.
Unfortuantely, the IDLE command is on a per-folder basis and blocks the
actual Thread. Therefore, if I want to use it, I would have to create a
thread for each folder. This solution has not really a good
performance.
I'm questioning myself now, if I'm using the command in the correct way.
Could you maybe help me? Are there other solutions?
By the way, I would also be notified if, for example, the flags change.
Therefore, a polling mechanism is not really the solution.
thanks for helping.
===========================================================================
To unsubscribe, send email to ***@java.sun.com and include in the body
of the message "signoff JAVAMAIL-INTEREST". For general help, send email to
***@java.sun.com and include in the body of the message "help".