Revision: 28222
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 4, 2010 04:39 by pdxmph
Initial Code
#!/usr/bin/env ruby require "rubygems" require "appscript" include Appscript require "active_support" mail = app("Mail") accounts = {"Personal" => "INBOX", "Both Pieces IMAP" => "INBOX", "Exchange" => "INBOX"} accounts.each do |acct,box| account = mail.accounts[acct].get inbox = account.mailboxes[box].get messages = inbox.messages[its.flagged_status.eq(true).and( its.date_received.gt(Time.now - 3.days) )].get messages.each do |m| puts m.subject.get end end
Initial URL
Initial Description
Initial Title
Find Recently Flagged Messages in Mail.app with appscript
Initial Tags
mail, ruby
Initial Language
Ruby