cfinke/OSX-Messages-Exporter

Feature suggestion: split html by year

omueller opened this issue · 3 comments

Thanks a lot for this great tool, it works exactly as expected, even with a quite large iMessage history (~35GB).

I just have a small suggestion: for some large and old chats (over 10 years of messages), it would be nice to have an option to have an automatic split by year for example, so example_2009.html, example_2010.html, etc, as even Safari is having some issues displaying a 15MB large archive file.

(a workaround would be to use --date-start + --date-stop and an some shell lines to have this too, but an integrated option would be simpler).

Best regards & merci encore!

Funny you should ask this. I actually emailed cfinke a similar request, last week. Your post inspired me to add it, here.

I think what I'm going to do is add a command-line option for the chat filename that supports all of the strftime formatting strings for dates, so you could export daily chats by doing something like --filename-prefix="%Y-%m-%d" or yearly chats with --filename-prefix="%Y"

Fixed in 26d7495. To get yearly exports, use this setting:

--path-template "_CHAT_TITLE_%Y"