thanks for the advice.
I started an new thread there: Script for automatic email import from mail server
Vinz