Commit Graph

15 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] d08040ac4a style: fix all flake8 linter errors across app/ directory
- Run Black formatter and isort on all app/ files
- Remove unused imports (F401) across multiple files
- Add # noqa: F401 for intentional re-exports in celery_worker.py,
  tasks/__init__.py, utils.py, frontend.py, views/base.py
- Fix f-strings without placeholders (F541) in azure.py, notification.py,
  check_credentials.py, upload_to_onedrive.py, settings.py
- Fix bare except (E722) in upload_to_sftp.py
- Fix block comment format (E265) in models.py
- Move imports to top of file to fix E402 in celery_app.py, celery_worker.py
- Fix line-too-long (E501) by wrapping strings in multiple files
- Remove unused variable (F841) in upload_to_nextcloud.py

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
2026-02-08 17:42:33 +00:00
Christian Krakau-Louis 1d028c7a84 feat: enhance attachment processing to accept PDF files by extension or MIME type 2025-03-28 16:04:07 +01:00
Christian Krakau-Louis de06fd1286 refactor: rename upload_to_s3 to process_document
- Rename upload_to_s3.py to process_document.py to better reflect its purpose
- Update all import statements across the codebase to use new module name
- Remove S3-specific code and references
- Keep the core document processing logic intact
- Update docstrings and comments to reflect new functionality

This change is part of removing AWS S3 dependencies and simplifying the
document processing pipeline.
2025-03-27 14:50:51 +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 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 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 17fc8fae17 restore unread 2025-02-14 23:23:24 +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 5a834ff690 added IMAP pull 2025-02-12 01:54:41 +01:00