[MlMt] ideas for analysing message subjects?

Bill Cole mmlist-20120120 at billmail.scconsult.com
Tue Nov 18 17:21:16 EST 2025


On 2025-11-18 at 14:59:16 UTC-0500 (Wed, 19 Nov 2025 08:59:16 +1300)
Rob Russell via mailmate <mailmate at lists.freron.com>
is rumored to have said:

> Hi all,
>
> I want to extract just the subjects for a year's worth of messages in 
> a particular smart mail box for analysis.
>
> I don't see any AppleScript commands that might do this and exporting 
> the messages to a folder and then writing a script to grep the subject 
> lines seems like a bit of a mission. Before I set off on that mission, 
> is there something obvious I am missing?

It strikes me as a very trivial "mission." An exported mailbox is just 
text, so if you have an exported mailbox named 2025.mbox:

   grep '^Subject: ' 2025.mbox | grep -o ' .*'

Will give you all the subjects without the leading "Subject:" tag



-- 
  Bill Cole
  bill at scconsult.com or billcole at apache.org
  (AKA @grumpybozo at toad.social and many *@billmail.scconsult.com 
addresses)
  Not Currently Available For Hire


More information about the mailmate mailing list