feat: Implement AI classification and Web UI, refactor to IMAP

This commit is contained in:
hyungi
2025-12-29 15:50:35 +09:00
commit d3c9cd2c7f
13 changed files with 928 additions and 0 deletions

45
rules.json Normal file
View File

@@ -0,0 +1,45 @@
{
"ai_categories": ["청구서", "프로젝트 업데이트", "광고", "개인 용무", "기타"],
"rules": [
{
"rule_name": "AI 분류: 청구서 보관",
"conditions": {
"ai_classification_is": "청구서"
},
"action": {
"type": "DEVONTHINK",
"parameters": {
"devonthink_inbox_path": "/path/to/your/devonthink_inbox"
}
}
},
{
"rule_name": "키워드: Project-A 관련 메일",
"conditions": {
"from_contains": "manager@example.com",
"subject_contains": "[Project-A]"
},
"action": {
"type": "CATEGORIZE",
"parameters": {
"move_to_mailbox": "프로젝트/Project-A"
}
}
},
{
"rule_name": "키워드: 광고 메일 삭제",
"conditions": {
"from_contains": "ad@spam.com"
},
"action": {
"type": "TRASH"
}
}
],
"default_action": {
"type": "REVIEW",
"parameters": {
"move_to_mailbox": "검토할 메일"
}
}
}