diff --git a/.claude/settings.json b/.claude/settings.json index c3720b2..1267dd3 100644 --- a/.claude/settings.json +++ b/.claude/settings.json @@ -15,7 +15,17 @@ "Bash(docker stop:*)", "WebFetch(domain:tomo1joy.com)", "Bash(bash wm-api.sh update-flow f/mail/mail_filter flows/mail_filter.flow.json)", - "Read(//c/Users/akira/Develop/windmill//**)" + "Read(//c/Users/akira/Develop/windmill//**)", + "Bash(node:*)", + "Bash(LOCAL_TOKEN=\"vumGZlOutdnH96hyLpjJgeZESQQBrMPy\")", + "Bash(LOCAL_URL=\"http://localhost\")", + "Bash(JOB_ID=\"019c897a-001f-9423-bcc2-4dd1513ca359\")", + "Bash(__NEW_LINE_28c5753346567a25__ curl -s -H \"Authorization: Bearer $LOCAL_TOKEN\" \"$LOCAL_URL/api/w/admins/jobs_u/get/$JOB_ID\")", + "Bash(__NEW_LINE_aebb361c1bf1f403__ curl -s -H \"Authorization: Bearer $LOCAL_TOKEN\" \"$LOCAL_URL/api/w/admins/jobs_u/get/$JOB_ID\")", + "Bash(__NEW_LINE_aebb361c1bf1f403__ node -e \":*)" + ], + "additionalDirectories": [ + "C:\\Users\\akira\\AppData\\Local\\Temp" ] } } diff --git a/CLAUDE.md b/CLAUDE.md index e38aa89..fa3f2cf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -221,7 +221,10 @@ Variety (品種マスタ) - ルール管理API(JWT認証): `GET/POST/DELETE /api/mail/senders/` - フィードバックページ: `/mail/feedback/[token]`(LINEからタップ一発、認証不要) - ルール管理ページ: `/mail/rules/` + - 処理履歴ページ: `/mail/history/` + - 対応アカウント: Gmail(有効)、infoseek.jp(Outlook→Gmail転送で対応、To:ヘッダで判別)、Hotmail/Xserver(flow.jsonでenable可能) - 仕様書: `document/メールフィルタ/mail_filter_spec.md` + - Windmill フロー: `f/mail/mail_filter`(ローカル: localhost, 本番: windmill.keinafarm.net — 本番デプロイ未実施) ### 🚧 既知の課題・技術的負債 diff --git a/backend/apps/mail/migrations/0004_rename_infoseek_to_gmail_service.py b/backend/apps/mail/migrations/0004_rename_infoseek_to_gmail_service.py new file mode 100644 index 0000000..ddd97ac --- /dev/null +++ b/backend/apps/mail/migrations/0004_rename_infoseek_to_gmail_service.py @@ -0,0 +1,18 @@ +# Generated by Django 5.0 on 2026-02-23 07:39 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('mail', '0003_add_infoseek_account'), + ] + + operations = [ + migrations.AlterField( + model_name='mailemail', + name='account', + field=models.CharField(choices=[('xserver', 'Xserver'), ('gmail', 'Gmail'), ('hotmail', 'Hotmail'), ('gmail_service', 'Gmail (サービス用)')], max_length=20, verbose_name='アカウント'), + ), + ] diff --git a/backend/apps/mail/models.py b/backend/apps/mail/models.py index 09cdd8f..618d68a 100644 --- a/backend/apps/mail/models.py +++ b/backend/apps/mail/models.py @@ -45,7 +45,7 @@ ACCOUNT_CHOICES = [ ('xserver', 'Xserver'), ('gmail', 'Gmail'), ('hotmail', 'Hotmail'), - ('infoseek', 'Infoseek (転送)'), + ('gmail_service', 'Gmail (サービス用)'), ] FEEDBACK_CHOICES = [ diff --git a/frontend/src/app/mail/history/page.tsx b/frontend/src/app/mail/history/page.tsx index 5d352e7..f1c2fc6 100644 --- a/frontend/src/app/mail/history/page.tsx +++ b/frontend/src/app/mail/history/page.tsx @@ -31,7 +31,7 @@ const ACCOUNT_LABELS: Record = { gmail: 'Gmail', hotmail: 'Hotmail', xserver: 'Xserver', - infoseek: 'Infoseek (転送)', + gmail_service: 'Gmail (サービス用)', }; export default function MailHistoryPage() { @@ -98,7 +98,7 @@ export default function MailHistoryPage() { - +