Re: Moving (to) Mail....
Re: Moving (to) Mail....
- Subject: Re: Moving (to) Mail....
- From: martin schiller <email@hidden>
- Date: Mon, 26 Aug 2002 13:05:09 -0700
I had two scripts that I used in Emailer that I'd like to try to
duplicate for 'Mail'. The first was my connection script. (I repeated
the first account to be checked because it was the easiest way to remedy
the timeout problem that resulted from using a 'dial-on-demand' internet
connection.)
I sense that 'Mail' is designed for 'always-on' connections,
particularly for .mac accounts. But I'm hoping that there are
workarounds. If someone can provide me with some pointers to how to
achieve similar functionality...I'm able to get my connection up with a
'ping' in terminal and then a delay, although not having OkeyDokey
dismissing dialogues is unsettling...
Connection script (was run on emailer schedule)
set acctlist to ["timebender", "cybcon", "timebender"] --
tell application "Claris Emailer"
repeat with acct in acctlist
connect to acct with checking
connect to acct with sending
end repeat
end tell
The second script deleted messages over two days old from a list of
folders. It was named 'shutdown script' and consequently ran on 'quit'.
set striplist to ["ascript", "air-l", "sf", "x", "x-l", "x-unix",
"eudora", "powermail", "tidbits", "ipnrtalk", "mactalk"]
tell application "Claris Emailer"
set thefolderlist to the entire folder hierarchy
repeat with TheFolder in thefolderlist
if the name of TheFolder is in striplist then
set themessages to the messages of TheFolder
repeat with themessage in themessages
if the time sent of themessage is less than (current
date) - 2 * days then
set storage of themessage to deleted mail folder
end if
end repeat
end if
end repeat
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.