mailcellar 0.9.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. mailcellar/__init__.py +16 -0
  2. mailcellar/__main__.py +7 -0
  3. mailcellar/backup/__init__.py +5 -0
  4. mailcellar/backup/commands.py +849 -0
  5. mailcellar/backup/gyb.py +314 -0
  6. mailcellar/backup/schedule.py +414 -0
  7. mailcellar/backup/sidecar.py +580 -0
  8. mailcellar/backup/verify.py +314 -0
  9. mailcellar/cli.py +345 -0
  10. mailcellar/dedup/__init__.py +55 -0
  11. mailcellar/dedup/apply.py +290 -0
  12. mailcellar/dedup/cli.py +327 -0
  13. mailcellar/dedup/db.py +152 -0
  14. mailcellar/dedup/index.py +113 -0
  15. mailcellar/dedup/match.py +118 -0
  16. mailcellar/dedup/paths.py +24 -0
  17. mailcellar/dedup/plan.py +135 -0
  18. mailcellar/dedup/report.py +136 -0
  19. mailcellar/dedup/rules.py +150 -0
  20. mailcellar/gmailapi.py +797 -0
  21. mailcellar/message.py +323 -0
  22. mailcellar/offload/__init__.py +5 -0
  23. mailcellar/offload/apply.py +377 -0
  24. mailcellar/offload/cli.py +283 -0
  25. mailcellar/offload/plan.py +382 -0
  26. mailcellar/offload/review.py +262 -0
  27. mailcellar/offload/rules.py +221 -0
  28. mailcellar/paths.py +135 -0
  29. mailcellar/report/__init__.py +23 -0
  30. mailcellar/report/bulk.py +358 -0
  31. mailcellar/report/cli.py +269 -0
  32. mailcellar/report/correspondents.py +329 -0
  33. mailcellar/report/db.py +119 -0
  34. mailcellar/report/health.py +291 -0
  35. mailcellar/report/labels.py +145 -0
  36. mailcellar/report/output.py +99 -0
  37. mailcellar/report/senders.py +275 -0
  38. mailcellar/report/storage.py +413 -0
  39. mailcellar/report/threads.py +198 -0
  40. mailcellar/report/volume.py +121 -0
  41. mailcellar/restore/__init__.py +5 -0
  42. mailcellar/restore/apply.py +666 -0
  43. mailcellar/restore/cli.py +372 -0
  44. mailcellar/restore/export.py +302 -0
  45. mailcellar/restore/mbox.py +129 -0
  46. mailcellar/restore/sources.py +149 -0
  47. mailcellar/search/__init__.py +1 -0
  48. mailcellar/search/cli.py +123 -0
  49. mailcellar/search/db.py +86 -0
  50. mailcellar/search/index.py +221 -0
  51. mailcellar/search/query.py +161 -0
  52. mailcellar-0.9.0.dist-info/METADATA +623 -0
  53. mailcellar-0.9.0.dist-info/RECORD +58 -0
  54. mailcellar-0.9.0.dist-info/WHEEL +5 -0
  55. mailcellar-0.9.0.dist-info/entry_points.txt +2 -0
  56. mailcellar-0.9.0.dist-info/licenses/LICENSE +202 -0
  57. mailcellar-0.9.0.dist-info/licenses/NOTICE +8 -0
  58. mailcellar-0.9.0.dist-info/top_level.txt +1 -0
mailcellar/__init__.py ADDED
@@ -0,0 +1,16 @@
1
+ """
2
+ mailcellar: Gmail backups kept as an archive. One command, `mailcellar`
3
+ (cli.py), over these modules:
4
+
5
+ paths.py where the config folder and the data root are
6
+ gmailapi.py the Gmail API: accounts, OAuth tokens, batched calls
7
+ message.py message parsing (parse_message, content_hash, header_key)
8
+ backup/ backup, count, meta and sync (commands.py); gyb's on-disk
9
+ format (gyb.py); the per-message sidecar (sidecar.py)
10
+ dedup/ duplicates within and across accounts
11
+ offload/ old mail out of Gmail, kept in the backup
12
+ restore/ backed-up mail back into Gmail
13
+ report/ reports over the sidecars, and the sender report
14
+
15
+ How it fits together: docs/architecture.md.
16
+ """
mailcellar/__main__.py ADDED
@@ -0,0 +1,7 @@
1
+ """python -m mailcellar <command>"""
2
+
3
+ import sys
4
+
5
+ from mailcellar.cli import main
6
+
7
+ sys.exit(main())
@@ -0,0 +1,5 @@
1
+ """
2
+ Backups in gyb's format: the commands (commands.py: backup, count, meta,
3
+ sync), the format itself (gyb.py) and the per-message sidecar,
4
+ meta.sqlite (sidecar.py).
5
+ """