What is this?
Suggest something like:
- send queued mail
- check mail
- repeat until not connection in progress
- end repeat
- RA disconnect
without the delay step the script is spinning the repeat loop very tight and would not be leaving much CPU time for Mailsmith to get the real work done.
For what it is worth here is a script I have developed (with help, thank you, from Christian Smith) to cycle through a list of email accounts. I have assumed the accounts have the "send mail when checking flag" set true so no separate command is used to send mail.
The motive was to allow each account to finish processing mail into the in box before starting another download of messages. This has improved the reliability of my mail in that I get less time out errors and therefore fewer repeat messages when the account is checked next time.
Adapt as needed.
Regards
Gavan
(see also the orginal version of the script)
|