EA for Apple Mail Users

jbestine
New Contributor III

Hello - we're looking for a way to report if a user us using Apple Mail vs. Outlook because we are going to be turning on two factor for all of our users in O365. In cases where they are using Apple Mail, we will need to upgrade some of the user's os to be able to do this. Unfortunately, we can't just upgrade everyone due to some application limitations. Can this be done?

1 REPLY 1

DBrowning
Valued Contributor II

Based on your post I am assuming you are not on Catalina yet. The below EA will tell you the last time Mail was used.

#!/bin/sh

#Get ItemUsedDates count
lastUsed=$(mdls /Applications/Mail.app -name kMDItemLastUsedDate | awk '/kMDItemLastUsedDate =/{print $3}')
echo "<result>$lastUsed</result>"