Commit 200c362
fix: cap email trigger UID fetch and use teamCtx for audit events
Cap UIDs fetched per poll cycle to 200 to prevent memory exhaustion on
large mailboxes. Fix audit event in fireWorkflow to use teamCtx (which
carries TeamID) instead of the bare ctx.
Note: go-imap v2 client.Store() already issues UID STORE automatically
when passed an imap.UIDSet (via uidCmdName dispatch) — no UIDStore method
exists in this API version.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 491070f commit 200c362
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
309 | 309 | | |
310 | 310 | | |
311 | 311 | | |
| 312 | + | |
| 313 | + | |
312 | 314 | | |
313 | 315 | | |
314 | 316 | | |
315 | 317 | | |
316 | 318 | | |
317 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
318 | 329 | | |
319 | 330 | | |
320 | 331 | | |
| |||
409 | 420 | | |
410 | 421 | | |
411 | 422 | | |
412 | | - | |
| 423 | + | |
413 | 424 | | |
414 | 425 | | |
415 | 426 | | |
| |||
0 commit comments