Posted on 12-06-2019 07:45 AM
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?
Posted on 12-06-2019 07:55 AM
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>"