fetch2gmail 1.1.7__tar.gz → 1.1.8__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.
Files changed (24) hide show
  1. {fetch2gmail-1.1.7/src/fetch2gmail.egg-info → fetch2gmail-1.1.8}/PKG-INFO +1 -1
  2. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/pyproject.toml +1 -1
  3. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8/src/fetch2gmail.egg-info}/PKG-INFO +1 -1
  4. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/web_ui.py +13 -1
  5. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/LICENSE +0 -0
  6. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/README.md +0 -0
  7. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/setup.cfg +0 -0
  8. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/SOURCES.txt +0 -0
  9. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/dependency_links.txt +0 -0
  10. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/entry_points.txt +0 -0
  11. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/requires.txt +0 -0
  12. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/top_level.txt +0 -0
  13. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/__init__.py +0 -0
  14. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/auth_server.py +0 -0
  15. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/auth_ui.py +0 -0
  16. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/cli.py +0 -0
  17. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/config.py +0 -0
  18. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/env_file.py +0 -0
  19. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/gmail_client.py +0 -0
  20. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/imap_client.py +0 -0
  21. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/log_buffer.py +0 -0
  22. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/run.py +0 -0
  23. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/state.py +0 -0
  24. {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/ui_auth.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fetch2gmail
3
- Version: 1.1.7
3
+ Version: 1.1.8
4
4
  Summary: Self-hosted email fetcher: IMAP to Gmail API import with idempotent state tracking
5
5
  Author: Fetch2Gmail Contributors
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "fetch2gmail"
7
- version = "1.1.7"
7
+ version = "1.1.8"
8
8
  description = "Self-hosted email fetcher: IMAP to Gmail API import with idempotent state tracking"
9
9
  readme = "README.md"
10
10
  license = "MIT"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: fetch2gmail
3
- Version: 1.1.7
3
+ Version: 1.1.8
4
4
  Summary: Self-hosted email fetcher: IMAP to Gmail API import with idempotent state tracking
5
5
  Author: Fetch2Gmail Contributors
6
6
  License-Expression: MIT
@@ -1163,11 +1163,23 @@ _APP_JS = r"""
1163
1163
  document.getElementById('gmailStatus').innerHTML = c.gmail_connected ? '<span class="ok">Gmail connected</span>' : '<span class="error">Not connected (add token.json from fetch2gmail auth)</span>';
1164
1164
  document.getElementById('gmailEmail').textContent = '';
1165
1165
  if (c.gmail_connected) {
1166
+ var configuredPaths = {};
1167
+ var accounts = ensureGmailAccounts(c);
1168
+ for (var ai = 0; ai < accounts.length; ai++) {
1169
+ var tp = (accounts[ai].token_path || '').trim();
1170
+ if (tp) configuredPaths[tp] = true;
1171
+ var base = tp.split(/[/\\\\]/).pop();
1172
+ if (base) configuredPaths[base] = true;
1173
+ }
1166
1174
  api('/api/gmail/discover-tokens').then(function(tokens) {
1167
1175
  if (!Array.isArray(tokens) || !tokens.length) return;
1168
1176
  var emails = [];
1169
1177
  for (var i = 0; i < tokens.length; i++) {
1170
- if (tokens[i].email) emails.push(tokens[i].email);
1178
+ var t = tokens[i];
1179
+ if (!t.email) continue;
1180
+ var path = (t.token_path || '').trim();
1181
+ var base = path.split(/[/\\\\]/).pop();
1182
+ if (configuredPaths[path] || configuredPaths[base]) emails.push(t.email);
1171
1183
  }
1172
1184
  if (!emails.length) return;
1173
1185
  var uniq = [];
File without changes
File without changes
File without changes