redirect script with time delay?

Hello! Just want to say hi to everyone first! Very nice resource your have here!

First, I’ll explain my delema: I want to redirect all my mail to a new Gmail address that I created for my domain hosted with Google. I’ve already tried and failed with iGmail and various other IMAP gateways (I gave up trying to fix various python and perl problems), plus Mark Lyon’s Gmail Loader (failed because every smtp server I tried was rejecting the script’s attempt at an smtp relay to my email address).

Second, the solution I want to try: I want to keep it simple and use’s Redirect. But when I try this on a large number of selected messages, Google starts rejecting my sent messages (as a good mail server should). I was wondering if it would be possible to make a redirect script that waits, say, 3 seconds after redirecting each message, in order to alleviate the load on Google’s mail server so it doesn’t think my efforts are just a flood of spam.

Being a novice to AppleScript, I searched the net for “ redirect applescript” and came up with the following code:

using terms from application "Mail"
on perform mail action with messages theSelectedMessages
tell application "Mail"
set acc to ""
set mssgs to count of theSelectedMessages
if mssgs is equal to 0 then
display dialog "Please select a message in Mail first, then run this script again."
repeat with m in theSelectedMessages
--?? redirect m(acc)
--?? send m
end repeat
end if
end tell
end perform mail action with messages
end using terms from

I haven’t tested this yet, but I was wondering is someone would be gracious enough to either rewrite it and encorporate a time delay somewhere, or perhaps tell me how to do myself.

Thanks for any suggestions!

~ Trip

Browser: Firefox
Operating System: Mac OS X (10.4)