Sha256: 2b4d6b5e5083f3516e28c517510b18ff804533ba801cb0969281214ed8e93e66

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

on run argv
  set window_from to date (item 1 of argv)
  set window_to   to date (item 2 of argv)

  tell application "Mail"
    set results to {}

    set msgs to (messages of sent mailbox whose date sent >= window_from and date sent <= window_to)
    repeat with msg in msgs
      set the end of results to {subject:subject of msg, datetime:date sent of msg as string}
    end repeat

    results
  end tell
end run

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
waddup-0.2.2 lib/waddup/sources/apple_mail/sent_mail.applescript