The new MailTags data is a bit more convoluted. At the end of the mail emlx file there is a reference to a MailTags file which contains the tags proper.
This gives you an account identifier (MN etc). A numbered path (9430) from user/Library/Mail/SmallCubed/TagData and then the file with the identifier qt etc.
[quote=428955:@Beatrix Willius]I need to convert dates information from unix epoch date to Xojo date. According to my Goggle foo this should be
dim s as Integer = 1551222016
dim d as new Date
d.TotalSeconds = s + 2082844800
After running the code I get 26.02.2019. The original data shows 24.02.2019. Did I miss something or is the bug in my data (MailTags)?[/quote]
“UNIX time” is based on a starting date of January 1, 1970. Here’s how I did it on Windows:
[code]Function Public Function UnixToDate(UnixTime As Double) as Date
// NOTE: THIS ROUTINE USES THE OLD FRAMEWORK DATE CLASS
// time value is in UNIX time (totalseconds) from 01/01/1970
// conversion is to set a Date object to 01/01/1970 and
// add the time value to the Date object’s totalseconds.
Dim tme As Double
Dim dte As New date(1970, 1, 1)
tme = UnixTime
tme = dte.TotalSeconds + tme
dte.TotalSeconds = tme
Return dte