This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# After some strange combination of OfflineIMAP & mbsync/isync created a whole | |
# bunch of duplicate messages in my Fastmail account I had to start cleaning things | |
# up. I discovered that the duplicates all had X-TUID headers and were showing up | |
# totally out of order in the Fastmail UI. I now run mbsync with `CopyArrivalDate yes` | |
# which appears prevents this from occurring again. | |
# | |
# I found that every message with an X-TUID header had a matching message without |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
tuids = {} | |
xtuids_filename = sys.argv[1] | |
dupes1_filename = sys.argv[2] | |
dupes_filename = sys.argv[3] | |
origs_filename = sys.argv[4] |