Hi!

As far as I understood

<mail:poller service="test:myMailService"
             endpoint="pollerEndpoint"
             targetService="test:myMailProcessor"
             period="10000"
             connection="imap://[EMAIL PROTECTED]:143/INBOX?password=myPass"
             deleteProcessedMessages="false"
             processOnlyUnseenMessages="true" />


mail:poller endpoint asks each time server for new e-mails period="10000", i.e. 10 sec.

What about if we have following situation:
    time
     0     5s       10s     15s ...

1.   CH  SD-M1            ED

2.  --------------->CH     SD-M1        ED

CH - check mail-server.
SD-M1 - start downloading mail-1 (big email/ speed of downloading is slow)
ED - end downloading and mark as "Seen".


Thread 2 start downloading Mail-1 because of Thread-1 has no yet downloaded Mail-1.

Is it possible to start thread-2 after thread-1 is finished downloading (failed downloading we mean as finished)?


  Truly yours,
  Ivan Pryvalov.

Reply via email to