feat: Implement AI classification and Web UI, refactor to IMAP
This commit is contained in:
45
rules.json
Normal file
45
rules.json
Normal 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": "검토할 메일"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user