removed migration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user