• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Moving (to) Mail....
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: Moving (to) Mail....
      • From: cricket <email@hidden>
References: 
 >Moving Mail.... (From: Jim Burton <email@hidden>)

  • Prev by Date: Re: Applescript 1.9
  • Next by Date: Re: Date problems
  • Previous by thread: Re: Moving Mail....
  • Next by thread: Re: Moving (to) Mail....
  • Index(es):
    • Date
    • Thread