Repository navigation
Expand file tree
/
Copy pathconfig.txt
More file actions
436 lines (436 loc) · 15.6 KB
/
Copy pathconfig.txt
File metadata and controls
436 lines (436 loc) · 15.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
{
"ApiSettings": {
"ApiKey": "your_api_key_here",
"ApiEndpoint": "your_api_endpoint_here",
"ModelName": "YOUR_MODELNAME_HERE",
"TimeoutSeconds": 60,
"MessageRole": "user",
"StreamPrefix": "data:",
"StreamEndMarker": "[DONE]",
"ResponseContentPath": "choices[0].message.content",
"ApiUrl": "your_api_endpoint_here",
"RequestHeaders": {
"Authorization": "Bearer {API_KEY}",
"Accept": "application/json",
"Content-Type": "application/json"
},
"RequestParameters": {
"model": "{MODEL_NAME}",
"messages": "{MESSAGES}",
"stream": true,
"max_tokens": 2000,
"temperature": 0.1
}
},
"RibbonSettings": {
"Ribbon1": {
"Button1Text": "📄 Summarize",
"Button1Tooltip": "Generate a summary of the selected email",
"Button2Text": "🌍 Translate",
"Button2Tooltip": "Translate the selected email to the configured language",
"Button3Text": "💬 Smart Reply",
"Button3Tooltip": "Generate an intelligent reply suggestion",
"Button4Text": "📂 Classify Emails",
"Button4Tooltip": "Classify unread emails"
},
"Ribbon2": {
"Button5Text": "🤖 AI Classify",
"Button5Tooltip": "Classify all unread emails in the current folder using AI and rules"
}
},
"OutlookSettings": {
"MapiNamespace": "MAPI",
"DefaultFolders": {
"PrimaryFolder": "olFolderInbox",
"FallbackFolder": "olFolderInbox",
"SupportedFolderTypes": [
"olFolderInbox",
"olFolderSentMail",
"olFolderOutbox",
"olFolderDeletedItems",
"olFolderDrafts"
]
},
"ItemRestrictions": {
"UnreadFilter": "[Unread] = true",
"ReadFilter": "[Unread] = false",
"TodayFilter": "[ReceivedTime] >= '{TODAY}'",
"ThisWeekFilter": "[ReceivedTime] >= '{WEEK_START}'",
"CustomFilters": [
"[Importance] = 2",
"[HasAttachments] = true"
]
},
"ViewSettings": {
"ResetViewAfterClassification": true,
"RefreshViewAfterChanges": true,
"ViewUpdateDelayMs": 1000
},
"DefaultFallbackFolder": "olFolderInbox"
},
"UiSettings": {
"Fonts": {
"Default": "Segoe UI,14,Regular",
"DefaultRtl": "Traditional Arabic,20,Regular",
"Arabic": "Traditional Arabic,20,Regular",
"Hebrew": "Arial,14,Regular",
"Persian": "Arial,14,Regular",
"Urdu": "Nafees Web,14,Regular",
"Pashto": "Arial,14,Regular"
},
"Colors": {
"DarkBackground": "45,45,48",
"TextColor": "245,245,245",
"TextBoxBackground": "60,60,63",
"RetryButtonColor": "70,130,70",
"SendButtonColor": "0,120,215",
"GenerateAnywayButtonColor": "255,140,0",
"CloseButtonColor": "70,70,73"
},
"ButtonSettings": {
"PanelHeight": 50,
"ButtonWidth": 120,
"LargeButtonWidth": 180,
"ForceReplySendButtonWidth": 200,
"ButtonSpacing": 15,
"CloseButtonSpacing": 30,
"CustomActions": {}
},
"LoadingSettings": {
"AnimationInterval": 500,
"LoadingStates": [
"Loading",
"Loading.",
"Loading..",
"Loading..."
]
},
"StreamingSettings": {
"CharacterDelay": 15
}
},
"WindowSettings": {
"MainWindow": {
"Width": 850,
"Height": 650
},
"ProgressWindow": {
"Width": 520,
"Height": 220,
"MinHeight": 180,
"HeightDivisor": 3,
"FormBorderStyle": "FixedDialog",
"StartPosition": "CenterScreen",
"MaximizeBox": false,
"MinimizeBox": false
}
},
"EmailSettings": {
"MessageSeparators": [
"\nFrom:",
"\nSent:",
"\nTo:",
"\nSubject:",
"\n-----Original Message-----",
"\n________________________________",
"\nGet Outlook for",
"\nOn",
"\nwrote:"
],
"SignaturePrefixes": [
"--",
"__",
"Disclaimer:",
"This email",
"Confidential",
"Best regards",
"Sincerely",
"Thanks"
],
"DefaultFolders": {
"Primary": "Inbox",
"Fallback": "Inbox"
},
"ContentLimits": {
"MaxOriginalBodyPreview": 1000,
"MaxProcessedBodyPreview": 800,
"MinimalContentLength": 50,
"FallbackBodyLength": 200
},
"EmptyContentDefaults": {
"NoSubject": "[No Subject]",
"NoSender": "[No Sender]",
"NoBody": "[No Body Content]"
}
},
"LanguageSettings": {
"DefaultTranslationLanguage": "arabic",
"FallbackLanguage": "English",
"RightToLeftLanguages": [
"Arabic",
"Hebrew",
"Persian",
"Urdu",
"Pashto"
]
},
"ReplySettings": {
"NoReplyTriggers": [
"no need to reply",
"no response required",
"for your information",
"fyi",
"announcement:",
"this is a notification"
]
},
"Messages": {
"Loading": "Processing...",
"Retry": "Try Again",
"Close": "Done",
"SendReply": "Send Response",
"GenerateAnyway": "Force Reply",
"Complete": "Finished",
"Error": "Error",
"ClickRetry": "Click 'Try Again' to retry.",
"NoReplyNeeded": "No response needed",
"DefaultReplyText": "Thank you for your email.",
"ApiError": "API Error",
"GeneratingReply": "Creating Reply...",
"ErrorCreatingReply": "Error creating reply",
"NoEmailSelected": "Please select an email first.",
"NoEmailSelectedTitle": "No Email Selected",
"EmptyEmailBody": "Email body is empty.",
"EmptyEmailTitle": "Empty Email",
"GeneratingSummary": "Creating Summary...",
"ErrorGeneratingSummary": "Error generating summary",
"Translating": "Translating Email...",
"ErrorTranslating": "Error translating email",
"AnalyzingEmail": "AI Classification in Progress",
"ErrorAnalyzing": "Error analyzing email",
"InitializationError": "Initialization error",
"CheckConfigFile": "Please check your config file.",
"ConfigurationError": "Configuration Error",
"MissingApiKey": "API key is missing in configuration"
},
"Prompts": {
"Summarize": "CREATE SUMMARY:\n• Focus on key points\n• Maximum 5 bullets\n• Remove signatures\n\nCONTENT:\n{EMAIL_CONTENT}",
"Translate": "Translate the following email to {TARGET_LANGUAGE} (keep names unchanged):\n\n{EMAIL_CONTENT}",
"Reply": "STRICT REPLY GENERATION PROTOCOL - FOLLOW EXACTLY:\n\n1. FIRST ANALYZE if a response is needed:\n - NO REPLY (0:) if: FYI, announcement, notification, calendar invite, or already resolved\n - REPLY (1:) if: question, request, or requires acknowledgment\n\n2. OUTPUT RULES:\n - FIRST LINE MUST BE: '0:' OR '1:' ONLY\n - IF '1:', NEXT LINE MUST BE THE COMPLETE REPLY\n - DO NOT STREAM PARTIAL RESPONSES\n - REPLY MUST BE FINAL VERSION\n\n3. REPLY REQUIREMENTS:\n - Professional tone\n - 1-2 sentences max\n - Address key points only\n - No explanations or prefixes\n\n4. EXAMPLE OUTPUTS:\n0:\n(No other text)\n\n1:\nThank you for the update, I'll review the documents by EOD.\n\n1:\nUnderstood, I've scheduled the meeting for Thursday at 2PM.\n\n5. STRICT NO-REPLY SCENARIOS:\n- Mass emails\n- System notifications\n- Informational broadcasts\n- Already acknowledged items\n- Calendar invites without questions\n\nMESSAGE TO ANALYZE:\n{EMAIL_CONTENT}",
"ForceReply": "GENERATE REPLY (STRICT RULES):\n1. Provide ONLY the reply text (1 line)\n2. Professional tone\n3. Never include prefixes or explanations\n4. Sample responses:\n - 'Thank you for confirming'\n - 'I'll follow up on this'\n - 'Noted, will proceed accordingly'\n\nMESSAGE:\n{MESSAGE}"
},
"ClassificationSettings": {
"Prompt": "CLASSIFY THIS EMAIL - RESPOND WITH EXACTLY ONE WORD:\n\nRULES:\n- PANCAKES: Any email that mentions pancakes, breakfast foods, or maple syrup\n- URGENT: Time-sensitive requests, deadlines, immediate action required\n- FUN: Funny emails, jokes, memes, entertaining content\n- WORK: Regular work-related emails, projects, tasks\n- SOCIAL: Social invitations, events, parties, gatherings\n\nRESPOND WITH ONLY: PANCAKES, URGENT, FUN, WORK, or SOCIAL\n\nEMAIL:\n{EMAIL_CONTENT}",
"Classifications": {
"PANCAKES": {
"CategoryPrefix": "A-Pancakes",
"Importance": "olImportanceHigh",
"FlagIcon": "olRedFlagIcon",
"FlagRequest": "Pancakes - AI Classified",
"SubjectPrefix": "[🥞PANCAKES]",
"CategoryColor": "olCategoryColorOrange"
},
"URGENT": {
"CategoryPrefix": "B-Urgent",
"Importance": "olImportanceHigh",
"FlagIcon": "olRedFlagIcon",
"FlagRequest": "Urgent - AI Classified",
"SubjectPrefix": "[🔴URGENT]",
"CategoryColor": "olCategoryColorRed"
},
"FUN": {
"CategoryPrefix": "C-Fun",
"Importance": "olImportanceNormal",
"FlagIcon": "olBlueFlagIcon",
"FlagRequest": "Fun - AI Classified",
"SubjectPrefix": "[😄FUN]",
"CategoryColor": "olCategoryColorBlue"
},
"WORK": {
"CategoryPrefix": "D-Work",
"Importance": "olImportanceNormal",
"FlagIcon": "olGreenFlagIcon",
"FlagRequest": "Work - AI Classified",
"SubjectPrefix": "[💼WORK]",
"CategoryColor": "olCategoryColorGreen"
},
"SOCIAL": {
"CategoryPrefix": "E-Social",
"Importance": "olImportanceNormal",
"FlagIcon": "olPurpleFlagIcon",
"FlagRequest": "Social - AI Classified",
"SubjectPrefix": "[🎉SOCIAL]",
"CategoryColor": "olCategoryColorPurple"
}
},
"PreProcessingRules": {
"EnableRuleBasedClassification": true,
"Rules": [
{
"Name": "Pancakes Rule",
"Classification": "PANCAKES",
"Priority": 100,
"Conditions": {
"MatchType": "ANY",
"SubjectKeywords": ["pancakes", "breakfast", "syrup", "maple", "waffles"],
"BodyKeywords": ["pancakes", "breakfast", "syrup", "maple", "waffles", "flapjacks"]
}
},
{
"Name": "Urgent Rule",
"Classification": "URGENT",
"Priority": 95,
"Conditions": {
"MatchType": "ANY",
"SubjectKeywords": ["URGENT", "ASAP", "deadline", "immediately", "emergency"],
"BodyKeywords": ["urgent", "asap", "deadline", "immediately", "emergency"]
}
}
]
},
"AiClassification": {
"EnableAiClassification": true,
"UseAiForUnmatched": true,
"DynamicPrompts": {
"IncludeAvailableCategories": true,
"PromptTemplate": "CLASSIFY THIS EMAIL - RESPOND WITH EXACTLY ONE WORD:\n\nAVAILABLE CATEGORIES: {AVAILABLE_CATEGORIES}\n\nCLASSIFICATION RULES:\n{CATEGORY_DESCRIPTIONS}\n\nRESPOND WITH ONLY ONE OF: {AVAILABLE_CATEGORIES}\n\nEMAIL:\n{EMAIL_CONTENT}",
"CategoryDescriptions": {
"PANCAKES": "Any email that mentions pancakes, breakfast foods, or maple syrup",
"URGENT": "Time-sensitive requests, deadlines, immediate action required",
"FUN": "Funny emails, jokes, memes, entertaining content",
"WORK": "Regular work-related emails, projects, tasks",
"SOCIAL": "Social invitations, events, parties, gatherings"
}
}
},
"RateLimiting": {
"MaxConsecutiveFailures": 5,
"RequestsPerMinute": 30,
"BaseCooldownSeconds": 30,
"MaxCooldownMinutes": 5,
"MinDelayBetweenRequestsMs": 2000,
"DefaultMinDelayBetweenRequestsMs": 1500,
"RequestTimeoutSeconds": 45,
"DefaultRequestTimeoutSeconds": 45
},
"EmailProcessing": {
"ContentSeparators": [
"\nFrom:",
"\nSent:",
"\nTo:",
"\nSubject:",
"\n-----Original Message-----",
"\n________________________________",
"\nGet Outlook for",
"\nOn",
"\nwrote:"
],
"MaxBodyLength": 1000,
"DefaultMaxBodyLength": 800
},
"Messages": {
"NoUnreadEmails": "No unread emails found in '{FOLDER}' folder.",
"ConfirmClassification": "Found {COUNT} unread emails in '{FOLDER}'.\n\nAI Classification: {AI_STATUS}\nRule-based Classification: {RULE_STATUS}\n\nProceed with AI classification?\n\nNote: Processing includes intelligent rate limiting to respect API limits.",
"CompletionSummary": "Classification complete!\n\n• Total processed: {PROCESSED}\n• Successfully classified: {SUCCESS}\n• Failed: {FAILED}\n\nEmails are now classified with custom categories!",
"HowToSeeClassifications": "To see classification colors in your email list:\n\n1. Right-click on any column header in the email list\n2. Click 'Field Chooser' or 'View Settings'\n3. Add the 'Categories' column\n4. You'll see colored bars next to classified emails",
"ProcessingStatus": "Processing {CURRENT}/{TOTAL}: {SUBJECT}",
"CooldownStatus": "[COOLDOWN: {TIME} remaining]",
"RetryStatus": "Retry {ATTEMPT}/{TOTAL} after {REASON}",
"WaitStatus": "{REASON}: {TIME} remaining"
},
"Debug": {
"EnableLogging": true,
"ContentPreviewLength": 100,
"DefaultContentPreviewLength": 100,
"TruncationIndicator": "...",
"DefaultTruncationIndicator": "..."
},
"Retry": {
"MaxAttempts": 3,
"DefaultFallbackOrder": ["WORK", "PANCAKES", "FUN"],
"BackoffMultipliers": {
"TimeoutRetryBase": 5,
"ErrorRetryBase": 10,
"ExponentialBase": 2,
"ExtendedCooldownFactor": 6
}
},
"Content": {
"AiTagPatterns": [
"\\[🥞PANCAKES\\]\\s*",
"\\[🔴URGENT\\]\\s*",
"\\[😄FUN\\]\\s*",
"\\[💼WORK\\]\\s*",
"\\[🎉SOCIAL\\]\\s*",
"\\[AI:\\s*\\w+\\]\\s*",
"\\[AI\\]\\s*"
],
"FallbackContentTemplate": "[Email with subject: {SUBJECT}]",
"ClassificationKeywords": ["PANCAKES", "URGENT", "FUN", "WORK", "SOCIAL", "A-PANCAKES", "AI"],
"DefaultSeparators": [
"-----Original Message-----",
"From:",
"On ",
"________________________________"
],
"EmptyContentFallbackLength": 200,
"MinimalContentFromSubjectTemplate": "[Email with subject: {SUBJECT}]"
},
"ApiResponse": {
"FallbackContentPaths": [
"choices[0].message.content",
"choices[0].delta.content",
"response",
"text",
"content"
],
"NoContentIndicators": [
"NO EMAIL CONTENT PROVIDED",
"PLEASE PROVIDE",
"NO CONTENT",
"EMPTY",
"NULL"
]
},
"Progress": {
"TimeFormatString": "mm\\:ss",
"StatusTemplate": "{CURRENT}/{TOTAL}: {SUBJECT}",
"CooldownTemplate": " [Cooldown {TIME}]",
"PercentageTemplate": "{PERCENTAGE}% ({CURRENT}/{TOTAL})",
"UpdateIntervalMs": 100,
"ProgressBarStyle": "Continuous"
},
"Normalization": {
"ImportanceSynonyms": {
"high": "olImportanceHigh",
"low": "olImportanceLow",
"normal": "olImportanceNormal",
"medium": "olImportanceNormal"
},
"FlagIconSynonyms": {
"red": "olRedFlagIcon",
"yellow": "olYellowFlagIcon",
"blue": "olBlueFlagIcon",
"green": "olGreenFlagIcon",
"orange": "olOrangeFlagIcon",
"purple": "olPurpleFlagIcon"
},
"CategoryColorSynonyms": {
"red": "olCategoryColorRed",
"blue": "olCategoryColorBlue",
"yellow": "olCategoryColorYellow",
"green": "olCategoryColorGreen",
"orange": "olCategoryColorOrange",
"purple": "olCategoryColorPurple"
},
"DefaultImportance": "olImportanceNormal",
"DefaultCategoryColor": "olCategoryColorNone",
"DefaultFlagIcon": "olNoFlagIcon"
},
"SecurityProtocol": {
"PrimaryProtocol": "Tls12",
"FallbackProtocol": "Tls12",
"TryTls13": true
}
}
}