Commit Graph
15 Commits
Author SHA1 Message Date
1sonhador d561de7d02 feat: filter WebDAV files by creation/modified date instead of folders
Use PROPFIND creationdate with getlastmodified fallback so min year 2025 applies by file date, not folder names.
2026-07-02 23:13:31 +01:00
1sonhador 1617be3aee fix: detect WebDAV year folder anywhere in path (Faturas/2025/…) 2026-07-02 23:11:15 +01:00
1sonhador d3c26a453e fix: WebDAV year filter uses min year (2025+) not fixed list
Include all year folders from 2025 onwards (2026, 2027, …) and skip or mark anything older.
2026-07-02 22:51:35 +01:00
1sonhador 28164ad9f4 feat: filter WebDAV sync by year folders (2025/2026)
Add webdav_include_years account setting, skip files outside allowed year folders during sync, and a setup tool to mark older paths as already forwarded.
2026-07-02 22:45:03 +01:00
1sonhador 0f4bb5f522 feat: BizDocs API delivery, WebDAV source, and invoice validation
Add optional API upload alongside SMTP, Nextcloud/WebDAV as a document source with the same dedup/retry flow as IMAP, stricter invoice file checks for images, and admin UI for source and delivery modes.
2026-07-02 19:21:01 +01:00
1sonhador 16816e9d4e feat: search emails by subject, sender, folder, Message-ID or id
API q parameter and debounced search field on the Emails admin page.
2026-07-01 14:44:00 +01:00
1sonhador 50b231caa6 feat: mark messages missing from IMAP and stop queue retries
New missing_from_mailbox status for deleted UIDs; migration backfills existing fetch failures.
2026-07-01 11:21:20 +01:00
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 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 f19886d78e fix: strip Cc/Bcc on forward to prevent mailbox loop
Re-sending the original MIME kept Cc/Bcc (e.g. faturas@) so copies
returned to the monitored inbox. Drop extra recipient headers and
send SMTP RCPT only to the BizDocs destination.
2026-07-01 09:51:00 +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