Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
drops all messages older than some date from a textsecure backup
(def cutoff
(clj-time.core/date-time 2015 4 3 5 54)))
(with-open [input (
output (
(-> input
(update-in [:content] (fn [messages]
(filter #(-> % :attrs :date Long/parseLong (> cutoff)) messages)))
( output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment