[Unit] # Singleton: this automation must run on mainframe and nowhere else. # Structural guard is hosts/mainframe/ placement; this is the backstop. ConditionHost=mainframe Description=Archive stale unread mail out of the Proton inbox Documentation=file:///home/connor/docs/mail/deploy/README.md # Proton Bridge is a container, not a user unit, so this cannot Requires= it. # The script pushes a failure notification if Bridge is down or unauthenticated. After=network-online.target Wants=network-online.target [Service] Type=oneshot EnvironmentFile=-%h/.config/proton/bridge.env ExecStart=%h/.dotfiles/hosts/mainframe/bin/inbox_tidy # Classifying ~1200 messages means fetching that many header sets over # loopback IMAP. Slow, but nowhere near this ceiling. TimeoutStartSec=30min Nice=10