This repository has been archived on 2026-07-19 . You can view files and clone it. You cannot open issues or pull requests or push a commit.
a05b8114d43e16b454b4ff06f5736215f8fb6a51
Host: - FolderResolver: walks Outlook Stores/Folders by stored StoreId + backslash-separated FolderPath; RCWs released at each hop - FolderWatcher: rooted Items references in a Subscription list (preventing the GC from silently dropping the COM event sink), HashSet<EntryID> dedup, marshals category stamping back to the WPF dispatcher. Per-folder mode: AutoFile when MatchingService returns a confident unique match AND confidence ≥ ConfidenceThreshold; otherwise stamps "Needs filing" - FolderTreeBuilder: one-shot STA traversal (max depth 4, max 500 entries) into Core-side FolderTreeNode list UI: - FolderTreeNode in Core for cross-project transport - FolderRowViewModel: per-row IsWatched / Mode / ConfidenceThreshold - SettingsViewModel.LoadFolderTree(tree) merges existing AppSettings.WatchedFolders into the loaded list - Save now writes WatchedFolders alongside URL/creds - SettingsDialog: new "תיקיות" tab with a DataGrid (checkbox + mode combo per folder) AddInHost: - Builds FolderResolver + FolderWatcher inside TryInitializeCrm, applies Settings.WatchedFolders on startup and after Save - LaunchSettings: invokes FolderTreeBuilder, passes the flat list to the ViewModel, and re-applies the watch list after the dialog closes Core/UI/Tests green (38 tests). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
OutlookAddin — תוסף EspoCRM ל-Outlook Desktop
תוסף VSTO/COM ל-Outlook ל-Windows שמאפשר לעו"ד לתייק מיילים ל-EspoCRM ישירות מ-Outlook, בלי הגדרת BCC.
פיצ'רים
- תיוק מייל קיים לתיק/לקוח — Ribbon button "File to EspoCRM" עם דיאלוג חיפוש (Case/Contact/Lead/Account).
- חיפוש לקוח/תיק על מייל נכנס — Reading-pane sidebar שמזהה את השולח ומציג את התיקים הקיימים.
- כתיבת מייל חדש מתוך תיק — מ-Outlook (Ribbon ב-compose) או מ-EspoCRM (URL protocol
outlookaddin://compose?caseId=...). - סנכרון אוטומטי של תיקיות נבחרות — Auto-file למיילים שמגיעים לתיקיות שמוגדרות לניטור.
דרישות
- Windows 10/11
- Outlook desktop: Microsoft 365 / Office 2021 / Office 2019 (לא 2016)
- .NET Framework 4.8 (מובנה ב-Win10/11)
- API key ב-EspoCRM (מקבלים מאדמין)
התקנה
ClickOnce — לחץ על הלינק https://platform.dev.marcus-law.co.il/outlook-addin/setup.exe ועקוב אחר ההוראות. Outlook יעלה מחדש אוטומטית.
ארכיטקטורה
- Server-side: MailRouter v1.2.0 חושף
POST /api/v1/MailRouter/file. - Client-side: ה-Add-in מדבר עם MailRouter (file) + EspoCRM REST API (search/lookup).
- Auth:
Espo-Authorization: <base64(username:apiKey)>per-user.
מבנה ה-Solution: ראה docs/ARCHITECTURE.md.
פיתוח
# ב-Windows machine עם VS 2022 + VSTO workload
git clone https://gitea.dev.marcus-law.co.il/espocrm-extensions/OutlookAddin.git
cd OutlookAddin
nuget restore
msbuild /t:Build /p:Configuration=Debug
# F5 ב-VS מפעיל Outlook עם ה-Add-in טעון לדיבאג
CI build על Windows runner ב-Gitea Actions — ראה .gitea/workflows/build.yml.
רישיון
Internal use only — Marcus-Law.
Description
Languages
C#
99.2%
PowerShell
0.4%
Dockerfile
0.4%