Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added mailArchive source, script and app
- Loading branch information
Rob Lacey
committed
Oct 5, 2011
1 parent
024721a
commit 853b92e
Showing
9 changed files
with
71 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CFBundleAllowMixedLocalizations</key> | ||
<true/> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>English</string> | ||
<key>CFBundleExecutable</key> | ||
<string>applet</string> | ||
<key>CFBundleIconFile</key> | ||
<string>applet</string> | ||
<key>CFBundleInfoDictionaryVersion</key> | ||
<string>6.0</string> | ||
<key>CFBundleName</key> | ||
<string>mailArchive</string> | ||
<key>CFBundlePackageType</key> | ||
<string>APPL</string> | ||
<key>CFBundleSignature</key> | ||
<string>aplt</string> | ||
<key>LSMinimumSystemVersionByArchitecture</key> | ||
<dict> | ||
<key>x86_64</key> | ||
<string>10.6</string> | ||
</dict> | ||
<key>LSRequiresCarbon</key> | ||
<true/> | ||
<key>WindowState</key> | ||
<dict> | ||
<key>dividerCollapsed</key> | ||
<false/> | ||
<key>eventLogLevel</key> | ||
<integer>-1</integer> | ||
<key>name</key> | ||
<string>ScriptWindowState</string> | ||
<key>positionOfDivider</key> | ||
<real>329</real> | ||
<key>savedFrame</key> | ||
<string>227 141 715 737 0 0 1280 878 </string> | ||
<key>selectedTabView</key> | ||
<string>result</string> | ||
</dict> | ||
</dict> | ||
</plist> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
APPLaplt |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf1038\cocoasubrtf360 | ||
{\fonttbl} | ||
{\colortbl;\red255\green255\blue255;} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
set theAccounts to {"PledgeMusic"} | ||
set theMailboxes to {"INBOX", "Sent Messages"} | ||
|
||
tell application "Mail" | ||
repeat with theAccount in theAccounts | ||
display dialog theAccount | ||
repeat with theMailbox in theMailboxes | ||
set oldMessages to ((every message of mailbox theMailbox of account theAccount) whose (date sent < (current date) - 365 * days)) | ||
if (count oldMessages) is greater than 0 then | ||
set theAccountArchive to (theAccount & "Archive") | ||
display dialog "Archiving " & (count oldMessages) & " messages." | ||
if not (exists mailbox theAccountArchive) then | ||
make new mailbox with properties {name:theAccountArchive} | ||
end if | ||
if not (exists mailbox theMailbox of mailbox theAccountArchive) then | ||
make new mailbox with properties {name:(theAccountArchive & "/" & theMailbox)} | ||
end if | ||
move oldMessages to mailbox theMailbox of mailbox theAccountArchive | ||
end if | ||
end repeat | ||
end repeat | ||
end tell |
Binary file not shown.