1sonhador
5b841a8850
fix: skip known Message-IDs on sync and clarify email list UI
...
Sync ignores any message already in DB (queue handles retries). UI shows email date, folder, and Message-ID snippet.
2026-07-01 10:45:50 +01:00
1sonhador
2ee2306c3e
fix: route retry-batch through forward queue instead of bulk SMTP
...
all=true only confirms failed messages are queued; each tick respects 5/min and 200/h limits.
2026-07-01 10:19:39 +01:00
1sonhador
9b966cf325
feat: forward queue drains failed messages at 5/min within 200/h cap
...
Worker ticks every 60s; API and UI expose queue status and requeue of forwarded messages for gradual BizDocs resend.
2026-07-01 10:14:18 +01:00
1sonhador
66d7189aa5
feat: cap SMTP forwards at 200 per rolling hour
...
Count successful forward_attempts in the last hour and stop sync/retry
when MAX_FORWARDS_PER_HOUR is reached to protect domain sending limits.
2026-07-01 10:09:52 +01:00
1sonhador
95edd74d9f
fix: send clean invoice-only emails to avoid MailChannels spam blocks
...
Stop relaying the original RFC822 (SendGrid headers, Fwd: subject, etc.).
Send a new message with PDF/XML/ZIP attachments and minimal metadata body.
2026-07-01 09:56:38 +01:00
1sonhador
ea88e8833d
feat: retry all failed messages from emails page
...
Add "Repetir todas as falhadas" with batched API calls and progress
feedback; raise retry-batch limit to 100 and support all=true on API.
2026-07-01 09:44:19 +01:00
1sonhador
bd2d04aba7
feat: batch retry for failed messages and visible retry errors
...
Show API errors when single retry fails and add POST /messages/retry-batch
plus a "Repetir 5 falhadas" button for post-deploy testing.
2026-07-01 09:23:41 +01:00
1sonhador
f55a38c032
feat: paginate emails list in API and admin UI
...
Return total count with offset/limit from GET /messages and add
Anterior/Seguinte controls showing 25 rows per page.
2026-07-01 09:19:17 +01:00
1sonhador
b070af8503
fix: forward original email via SMTP instead of .eml attachment
...
Re-send the received RFC822 message with normal Fwd headers (To, From,
Subject). The previous code wrapped the message in message/rfc822 with
filename original-email.eml, which the relay rejected.
2026-07-01 09:18:11 +01:00
1sonhador
f664cca6b5
fix: forward invoice PDF/XML/ZIP attachments instead of .eml wrapper
...
The outbound SMTP relay rejects message/rfc822 attachments named .eml.
Send the matched invoice files directly to BizDocs, which aligns with
the allowed relay extensions and the product filter rules.
2026-07-01 09:15:01 +01:00
1sonhador
87b1ad4b8a
feat: sync UI controls, message retry, and worker schedule guard
...
Add manual sync buttons with batch limit, nginx timeouts for long syncs,
message retry endpoint, and fix worker to skip disabled accounts and
refresh schedules from the database every 2 minutes.
2026-07-01 09:10:04 +01:00
1sonhador
df016a1e34
fix(deploy): use repo deploy script + expose git_sha in health
...
Webhook now runs /opt/forwarder/deploy/deploy-pull.sh from git (not stale
image copy). Rolling rebuild api then web; health reports FORWARDER_GIT_SHA.
2026-07-01 01:40:43 +01:00
1sonhador
eb4a95dfc2
fix(admin-ui): add destination_email field to account form
...
The API requires destination_email for BizDocs SMTP forwarding; the UI
still sent legacy bizdocs_api_key fields. Default [email protected] .
2026-07-01 01:29:44 +01:00
1sonhador
f6b276511a
fix(connection): fail-fast IMAP/SMTP tests; add Gitea webhook autodeploy
...
Connection tests use 5s timeouts and run IMAP/SMTP in parallel so the UI
gets a clear error instead of nginx 504. Add deploy-hook service (:9090) and
deploy-pull.sh for push-to-main deploys on CT 243.
2026-07-01 01:09:53 +01:00
Xika and Paperclip
d476cb0204
feat(admin-ui): add login page and HTTP Basic auth
...
- AuthProvider + useAuth hook (sessionStorage, base64 creds)
- Login.tsx validates credentials against /api/stats before accepting
- api.ts injects Authorization: Basic header on all requests
- App.tsx gates all routes behind login, redirects unknown paths
- Layout.tsx adds logout button
- .gitignore: allow admin-ui/src/lib/ (was blocked by root lib/ rule)
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 23:50:01 +00:00
Xika and Paperclip
6e6f1a44e4
fix(nginx): use hostname variable in proxy_pass to fix DNS + path rewriting
...
Using $variable:port with no path appended forces DNS re-resolution
while nginx still forwards the full original request URI unchanged.
Previous attempt ($upstream/api/) was dropping the request path.
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 23:46:47 +00:00
Xika and Paperclip
3436611714
fix(api+nginx): fix 502 proxy, add /stats + /connection/test, align UI schema
...
- nginx: add resolver 127.0.0.11 + $upstream var to fix Docker DNS caching
- Add GET /api/stats (accounts/messages counts, last_sync_at)
- Add POST /api/connection/test (IMAP+SMTP inline test)
- AccountResponse: computed active/email aliases, bizdocs stub fields
- MessageResponse: account_name, message_uid, sender, received_at, forwarded_at
- AccountCreate/Update: accept extra UI fields without validation error
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 23:43:11 +00:00
1sonhador
d1e4725ac3
Add Python API, worker, MySQL migrations and wire admin-ui in Docker.
...
Backend FastAPI + APScheduler worker with Alembic schema; admin-ui served
via nginx with /api proxy. Unifies Paperclip UI scaffold with local platform code.
2026-07-01 00:04:57 +01:00
Xika and Paperclip
acbb1d9be4
feat(admin-ui): add Vite+React admin UI (BIT-26126)
...
Dashboard, Contas, Emails, Teste de Ligação pages built with
React Router, Tailwind CSS, and lucide-react icons. Typed API
client covers accounts CRUD, messages list/retry, stats, and
connection testing (IMAP/SMTP/BizDocs). Clean TypeScript build.
Co-Authored-By: Paperclip <[email protected] >
2026-06-30 22:54:31 +00:00