#!/usr/bin/env python3 """Run the mail sets here that aren't sorting (sets/task_sets_real.py) through the app's own code, and score them. python3 mail/run_tasks.py --base-url http://127.0.0.1:8000/v1 --model gemma-4-26b [--api-key KEY] [--task draft,...] python3 mail/run_tasks.py --hub SOCKET --label "..." # through 螺壳主控 (a hub named, never found on its own) python3 mail/run_tasks.py --rescore RESULT.json [...] # judge saved draft results again, no model Tasks here (the default): draft (回复邮件·写回信), digest-read and digest-pick (订阅管理·精选), cleanup-real and senders-real (more 收件箱清理 and 订阅管理·退订建议). A hard failure: a contact detail the mail didn't give in a draft; an advert or what the user isn't interested in shown or picked; something to keep suggested for the trash; a bank or a person suggested for unsubscribing. luoke-mail's release sets (cleanup, senders, learn-sent, learn-orgs, thread, in its bench/task_sets.py) can be named with --task too, for comparison; they are scored the same way. The app under test: the luoke-mail checkout named by LUOKE_MAIL (default ../luoke-mail next to this repository). Results -> mail/results/tasks//