Commit Graph

91 Commits

Author SHA1 Message Date
Christian Krakau-Louis e4101f690b added gravatar to user and added /api/whoami call 2025-03-25 21:31:32 +01:00
Christian Krakau-Louis 657861db26 removed fancy 404 2025-03-25 21:20:32 +01:00
Christian Krakau-Louis 2c7a185315 changed 404.html code 2025-03-25 21:18:25 +01:00
Christian Krakau-Louis b95d13df1f add 404.html and new upload page 2025-03-25 21:16:02 +01:00
Christian Krakau-Louis ff12e733ea made function async to include auth 2025-03-25 17:35:00 +01:00
Christian Krakau-Louis 6139a168d0 added fixes to frontend.py 2025-03-25 17:31:27 +01:00
Christian Krakau-Louis d00ee8cc3d added auth flag and auth to /upload 2025-03-25 16:22:59 +01:00
Christian Krakau-Louis 6beaa30e25 improved redirect upon login 2025-03-25 14:57:49 +01:00
Christian Krakau-Louis 398663595d Merge branch 'main' into auth-for-ui 2025-03-25 14:49:19 +01:00
Christian Krakau-Louis 5005f65f17 changes to the Authentik integration 2025-03-25 14:45:45 +01:00
Christian Krakau-Louis b814c88818 Merge pull request #18 from christianlouis/duplicate-checker
added duplicate check and database
2025-03-25 14:44:01 +01:00
Christian Krakau-Louis ae674e8fc4 added robust code to create the sqlite file 2025-03-25 14:33:46 +01:00
Christian Krakau-Louis 260358a78b added ForeignKey object 2025-03-25 13:58:54 +01:00
Christian Krakau-Louis 5eb8fa586b added duplicate check and database 2025-03-25 13:55:15 +01:00
Christian Krakau-Louis 8aa667fd48 removed proxymiddleware and moved to uvicorn startup command 2025-03-25 12:44:41 +01:00
Christian Krakau-Louis b9be5af407 adding starlette to requirements.txt 2025-03-25 12:26:33 +01:00
Christian Krakau-Louis bf4aa95f52 added support for correct url detection 2025-03-25 12:23:21 +01:00
Christian Krakau-Louis 1f510a18ca added authlib to requirements 2025-03-25 12:09:36 +01:00
Christian Krakau-Louis 6ca68126ed added Authentik config 2025-03-25 11:34:22 +01:00
Christian Krakau-Louis 19c763e595 added a favicon, updated the README.md file 2025-03-25 10:48:55 +01:00
Christian Krakau-Louis 50ba7989c5 added imports for FastAPI 2025-03-24 17:11:49 +01:00
Christian Krakau-Louis f4cacacd3a fixed typo 2025-03-24 17:04:53 +01:00
Christian Krakau-Louis 2891b335b0 added ui upload route 2025-03-24 17:02:56 +01:00
Christian Krakau-Louis 09db93f353 added frontend dir to Dockerfile 2025-03-24 16:57:35 +01:00
Christian Krakau-Louis e526f691ef added first draft of upload interface 2025-03-24 16:52:47 +01:00
Christian Krakau-Louis 97dfe27113 Merge pull request #16 from christianlouis/christianlouis-patch-1
Update imap_tasks.py
2025-03-13 02:14:10 +01:00
Christian Krakau-Louis 4c95e6ec6c Update imap_tasks.py
Refactor IMAP Tasks: Filter Allowed Attachment Types & Improve Code Quality

- Filter attachments to process only office files, PDFs, plain text, CSV, and RTF,
  explicitly skipping common image MIME types.
- Use an explicit elif for clarity in attachment processing logic.
- Remove dead code by not reassigning the result of fetch_attachments_and_enqueue.
- Reformat log messages, docstrings, and break long lines to comply with PEP 8.
- Add clarifying comments for excluded image MIME types.
2025-03-13 02:08:21 +01:00
Christian Krakau-Louis 473ae3a20a Update imap_tasks.py
Added some filtering for file types to avoid your usual image attachment to trigger a conversion task and clutter my documents
2025-03-13 01:51:46 +01:00
Christian Krakau-Louis d8aacebce1 Update README.md 2025-02-21 14:22:02 +01:00
Christian Krakau-Louis 8848fece2f added correct endpoints and file type detection 2025-02-19 14:14:49 +01:00
Christian Krakau-Louis c40e9f034e Added better GMail handling and multi file type support 2025-02-19 14:03:29 +01:00
Christian Krakau-Louis 2241c1de6c fixed errors 2025-02-18 04:36:04 +01:00
Christian Krakau-Louis f234a55b52 Added locking for IMAP tasks 2025-02-18 04:29:33 +01:00
Christian Krakau-Louis 03ac92d931 Only process unread mail 2025-02-18 03:55:29 +01:00
Christian Krakau-Louis 3ebedbb016 Added better IMAP handling 2025-02-18 03:39:29 +01:00
Christian Krakau-Louis de7050a162 Shorter pull period for mails, added a bit of different handling for paperless 2025-02-18 03:09:54 +01:00
Christian Krakau-Louis c0c5ca3a67 Merge branch 'main' of https://github.com/christianlouis/document-processor 2025-02-14 23:23:38 +01:00
Christian Krakau-Louis 17fc8fae17 restore unread 2025-02-14 23:23:24 +01:00
Christian Krakau-Louis 9156c62264 Merge pull request #14 from christianlouis/azure-ocr
Azure ocr
2025-02-14 23:07:59 +01:00
Christian Krakau-Louis 9ebac992e6 changed required.txt 2025-02-14 22:53:03 +01:00
Christian Krakau-Louis 65beea89cf First try for Azure API 2025-02-14 22:49:22 +01:00
Christian Krakau-Louis 9fc27d6a8e Merge pull request #13 from christianlouis/only-mark-mail-unread-with-attachments
added skipping for mail without attachments and already processed mail
2025-02-14 16:28:57 +01:00
Christian Krakau-Louis 99684f9650 added skipping for mail without attachments and already processed mail 2025-02-14 16:22:43 +01:00
Christian Krakau-Louis 230c59f5ae Merge pull request #12 from christianlouis/skip-ocr-for-pdf-with-text
Added text detection in upload_to_s3
2025-02-14 12:07:15 +01:00
Christian Krakau-Louis 40fe288230 Added text detection in upload_to_s3 2025-02-14 12:00:44 +01:00
Christian Krakau-Louis e0365e5268 Rename README to README.md 2025-02-12 12:30:04 +01:00
Christian Krakau-Louis 3eb65fc940 Merge branch 'main' of https://github.com/christianlouis/document-processor 2025-02-12 12:12:35 +01:00
Christian Krakau-Louis b42b395915 removed .env from dir and added README and demo env file 2025-02-12 12:12:29 +01:00
Christian Krakau-Louis 32ec5cdc50 Update docker-compose.yaml 2025-02-12 11:52:41 +01:00
Christian Krakau-Louis 937b8018f8 made paperless upload more robust 2025-02-12 02:56:28 +01:00