Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Read Gmail message headers case-insensitively

Fei2411e555a327bb62
diff --git a/ds-bot/src/host/connectors/mail/transport.js b/ds-bot/src/host/connectors/mail/transport.js
index 1e374621..aa0c7786 100644
--- a/ds-bot/src/host/connectors/mail/transport.js
+++ b/ds-bot/src/host/connectors/mail/transport.js
@@ -218,7 +218,7 @@ export function connectGmail(account, deps = {}) {
if (!response.ok) throw new Error(`Gmail answered ${response.status}`)
return response.json().catch(() => ({}))
}
- const header = (list, name) => list?.find(h => h.name.toLowerCase() === name)?.value ?? ''
+ const header = (list, name) => list?.find(h => h.name.toLowerCase() === name.toLowerCase())?.value ?? ''
const decode = data => data === undefined ? '' : Buffer.from(data.replace(/-/g, '+').replace(/_/g, '/'), 'base64').toString('utf8')
const walk = (part, out = { text: '', attachments: [] }) => {
if (part === undefined) return out