Emails not processed by script

I wrote an AppleScript that moves attachment(s) of incoming emails to a folder belonging to the sender. It works well except when the mail app starts and at once has to read multiple e-mails. Then not all emails (usually the first) will be processed by the script. Does this sound familiar and is there a solution for? I have installed Mail Act-On but all rules disabled.