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.
- {fetch2gmail-1.1.7/src/fetch2gmail.egg-info → fetch2gmail-1.1.8}/PKG-INFO +1 -1
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/pyproject.toml +1 -1
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8/src/fetch2gmail.egg-info}/PKG-INFO +1 -1
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/web_ui.py +13 -1
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/LICENSE +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/README.md +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/setup.cfg +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/SOURCES.txt +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/dependency_links.txt +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/entry_points.txt +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/requires.txt +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetch2gmail.egg-info/top_level.txt +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/__init__.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/auth_server.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/auth_ui.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/cli.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/config.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/env_file.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/gmail_client.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/imap_client.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/log_buffer.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/run.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/state.py +0 -0
- {fetch2gmail-1.1.7 → fetch2gmail-1.1.8}/src/fetcher/ui_auth.py +0 -0
|
@@ -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
|
-
|
|
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
|
|
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
|