Skip to content

Instantly share code, notes, and snippets.

View peterwake's full-sized avatar

Peter Wake peterwake

  • Cowcross / StorIQ
  • London
View GitHub Profile
@peterwake
peterwake / sent-emails-summariser.scpt
Last active December 8, 2023 22:11
For Mac Mail users, summarises emails in your sent mailbox
-- Designed for Mac Mail users, this AppleScript program will search through the SENT items of your chosen mailbox
-- It is designed to help you (for example) if you are transitioning to a CRM system
-- run it by typing osascript sent-emails-summariser.scpt on the command line
-- It will produce summary csv file that shows:
-- How many emails were sent to each email address
-- How many emails were sent in total to all emails with the same domain ending
-- A domain rank whereby emails to domains ending .ac.uk, etc, rank higher
-- once you have the csv file, sort it in Excel e.g. by ascending DomainRank, descending DomainCount, Domain a-z, Count descending, Email a-z.