fix(lead): lead-inbox nach Trockenlauf und Einrichtung geschärft

Prüfung der gesendeten Mails vor Antwortvorschlägen, Sammelposten über
gefilterte Suche mit Trefferzahl, neue Muster (Asset Management, Metabase).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
m3ta-chironandClaude Fable 5.2 committed 2026-11-13 18:15:47 +01:00
1 parent f485eb958f
commit 41175b6cf3
4 files changed
+22 -5

No files matched your search

+9 -4
View File
@@ -15,18 +15,18 @@ Before step 1 note `manage_mail_folder(action='get_details')` for `Inbox` and `A
Everything received before the cut-off date goes to `Archive` unseen. The connector moves at most one fetch (100 mails) at a time, so loop:
1. `search_emails(folder='Inbox', inference_classification='all', start_date='2015-01-01', end_date='<day before cut-off>T23:59')`.
2. Read all pages with `browse_email_cache(mode='llm')`; collect every cache number and note the first mail (received time, subject).
3. `manage_emails(action='archive_multiple', cache_numbers=[…all numbers of this fetch…])`.
2. The cache numbers are 1..`count`; no browsing needed. Note `Inbox`'s total from `get_details`.
3. `manage_emails(action='archive_multiple', cache_numbers=[1 … count])`.
4. Compare the returned count of moved mails with the fetch's `count`.
5. Next fetch.
Stop and report when `failed_count > 0`, or when two fetches in a row start with the same first mail (the move did not take effect). Tell Sascha the progress every five batches. With about 3,500 mails expect about 35 batches.
Stop and report when `failed_count > 0`, or when `Inbox`'s total did not drop by the batch size (the move did not take effect). Tell Sascha the progress every five batches. With about 3,500 mails expect about 35 batches.
**Done when** the search returns `count: 0`, and `Inbox` + `Archive` totals equal the totals noted before the step (name any difference; new mail arriving meanwhile explains a few).
## 3. Presort from the cut-off date
Read the mails from the cut-off date to today day by day, as in step 1 of `SKILL.md`. Every mail matching a row in `muster.md` with a target folder becomes part of one batch item per folder. Present the batch items (count plus the list of subjects per folder), and after approval move them with `manage_emails(action='move_single', cache_number=<n>, destination_folder='Inbox/<Name>')`, finding each day's mails again first as `ausfuehren.md` describes. Rows marked "stays in `Inbox`" are left alone.
Read the mails from the cut-off date to today day by day, as in step 1 of `SKILL.md`. Every mail matching a row in `muster.md` with a target folder becomes part of one batch item per folder. Present the batch items (count plus the list of subjects per folder), and after approval move them per pattern with the search-scoped batch method in `ausfuehren.md` ("Batch items without browsing"). If Sascha has created the Outlook rules, ask him to run them once on the inbox first (Regeln → "Regel jetzt ausführen"): that sorts the stock in one go. Rows marked "stays in `Inbox`" are left alone.
**Done when** no mail with `[Ticket#` in the subject is left in `Inbox`, and a sample of ten mails per target folder fits its pattern. What remains is the input of the first triage run.
@@ -38,7 +38,12 @@ The connector cannot create rules, and the skill runs none of the commands below
- the Exchange Online PowerShell block below, filled from that table. The table decides; if it differs from this block, follow the table and say so.
```powershell
# Once per machine, if Connect-ExchangeOnline is "not recognized":
Install-Module ExchangeOnlineManagement -Scope CurrentUser
Import-Module ExchangeOnlineManagement
Connect-ExchangeOnline -UserPrincipalName sascha.koenig@azintec.com
# "A window handle must be configured" (seen 13.11.2026, module 3.11.1): add -DisableWAM
$mb = "sascha.koenig@azintec.com"
# Folder names depend on the mailbox language. Check the real paths first:
Get-MailboxFolderStatistics $mb -FolderScope Inbox | ft Name,FolderPath