fetch2gmail 1.1.2__tar.gz → 1.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fetch2gmail-1.1.2/src/fetch2gmail.egg-info → fetch2gmail-1.1.3}/PKG-INFO +1 -1
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/pyproject.toml +1 -1
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3/src/fetch2gmail.egg-info}/PKG-INFO +1 -1
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/web_ui.py +9 -5
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/LICENSE +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/README.md +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/setup.cfg +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetch2gmail.egg-info/SOURCES.txt +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetch2gmail.egg-info/dependency_links.txt +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetch2gmail.egg-info/entry_points.txt +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetch2gmail.egg-info/requires.txt +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetch2gmail.egg-info/top_level.txt +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/__init__.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/auth_server.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/auth_ui.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/cli.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/config.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/env_file.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/gmail_client.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/imap_client.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/log_buffer.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/run.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/state.py +0 -0
- {fetch2gmail-1.1.2 → fetch2gmail-1.1.3}/src/fetcher/ui_auth.py +0 -0
|
@@ -32,6 +32,9 @@ from .ui_auth import create_ui_auth, load_ui_auth, verify_ui_auth
|
|
|
32
32
|
|
|
33
33
|
logger = logging.getLogger(__name__)
|
|
34
34
|
|
|
35
|
+
# Prevents multiple "Copy all" runs from overlapping (manual button only).
|
|
36
|
+
_copy_all_lock = threading.Lock()
|
|
37
|
+
|
|
35
38
|
|
|
36
39
|
def _poller_loop(stop_event: threading.Event) -> None:
|
|
37
40
|
"""Background thread: every poll_interval_minutes run a fetch when config exists.
|
|
@@ -655,11 +658,12 @@ def api_fetch_copy_all(request: Request, body: CopyAllBody) -> dict[str, Any]:
|
|
|
655
658
|
setup_logging()
|
|
656
659
|
install_log_buffer()
|
|
657
660
|
try:
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
661
|
+
with _copy_all_lock:
|
|
662
|
+
result = run_copy_all(
|
|
663
|
+
config_path=str(_get_config_path()),
|
|
664
|
+
delete_after_import=body.delete_after,
|
|
665
|
+
dry_run=False,
|
|
666
|
+
)
|
|
663
667
|
return result
|
|
664
668
|
except FileNotFoundError as e:
|
|
665
669
|
raise HTTPException(status_code=404, detail=str(e))
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|