Skip to content

Commit f9db9c0

Browse files
committed
added agentmail domain for mailer
1 parent 5ad1808 commit f9db9c0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ const SidebarTaskItem = memo(function SidebarTaskItem({
132132
</div>
133133
{task.id !== 'new' && (
134134
<div className='relative flex h-[18px] w-[18px] flex-shrink-0 items-center justify-center'>
135+
{isActive && !isCurrentRoute && (
136+
<span className='absolute h-[7px] w-[7px] animate-ping rounded-full bg-[#33C482] opacity-30 group-hover:hidden' />
137+
)}
135138
{(isActive || isUnread) && !isCurrentRoute && (
136139
<span className='absolute h-[7px] w-[7px] rounded-full bg-[#33C482] group-hover:hidden' />
137140
)}

apps/sim/lib/core/config/env.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,7 @@ export const env = createEnv({
300300

301301
// AgentMail - Mothership Email Inbox
302302
AGENTMAIL_API_KEY: z.string().min(1).optional(), // AgentMail API key for mothership email inbox
303+
AGENTMAIL_DOMAIN: z.string().optional(), // Custom domain for AgentMail inboxes (default: agentmail.to)
303304
INBOX_ENABLED: z.boolean().optional(), // Enable inbox (Sim Mailer) on self-hosted (bypasses hosted requirements)
304305

305306
// E2B Remote Code Execution

apps/sim/lib/mothership/inbox/agentmail-client.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ export async function createInbox(opts: {
5252
username?: string
5353
displayName?: string
5454
}): Promise<AgentMailInbox> {
55+
const domain = env.AGENTMAIL_DOMAIN
5556
return request<AgentMailInbox>('/inboxes', {
5657
method: 'POST',
5758
body: JSON.stringify({
5859
username: opts.username,
5960
display_name: opts.displayName,
61+
...(domain ? { domain } : {}),
6062
}),
6163
})
6264
}

0 commit comments

Comments
 (0)