removed migration

This commit is contained in:
Yanxin Lu
2026-02-26 21:05:27 -08:00
parent 1e3faa0b20
commit e8c8256967
4 changed files with 2 additions and 68 deletions

View File

@@ -19,7 +19,6 @@ Subcommands:
python main.py review all <action> # act on all pending
python main.py review accept # accept all suggestions
python main.py stats # show decision history
python main.py migrate # import old decisions
Action mapping (what each classification does to the email):
delete -> himalaya message delete <id> (moves to Trash)
@@ -632,19 +631,6 @@ def cmd_stats():
print(f"\nKnown labels: {', '.join(sorted(labels))}")
# ---------------------------------------------------------------------------
# Subcommand: migrate
# ---------------------------------------------------------------------------
def cmd_migrate():
"""Import old pending_emails.json 'done' entries into decision history.
Run once after upgrading from the old system. Converts old action
names (archived/kept/deleted) to new ones (archive/keep/delete).
"""
decision_store.migrate_pending()
# ---------------------------------------------------------------------------
# Entry point & argument parsing
#
@@ -703,10 +689,7 @@ if __name__ == "__main__":
elif subcommand == "stats":
cmd_stats()
elif subcommand == "migrate":
cmd_migrate()
else:
print(f"Unknown subcommand: {subcommand}")
print("Usage: python main.py [scan|review|stats|migrate] [--recent N] [--dry-run]")
print("Usage: python main.py [scan|review|stats] [--recent N] [--dry-run]")
sys.exit(1)