Mail: unified inbox, snooze, templates, and saving attachments to Files
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
54d18594a3
commit
808274b4fe
7 files changed
+101
-14
No files matched your search
@@ -89,6 +89,10 @@ async function tick(now = new Date(), force = false) {
|
||||
}
|
||||
} catch (e) { console.warn('[push] task times failed:', e.message); }
|
||||
}
|
||||
if (checkEvents && users.can(u, 'mail')) { // snoozed mail whose time has come is back in the inbox: say so
|
||||
try { const due = mail.snoozeDue(u.id); if (due.length) await send(dir, st, u.id, { title: due.length === 1 ? 'Back in your inbox: ' + (due[0].subject || 'a message') : due.length + ' snoozed messages are back', body: due.length === 1 ? due[0].from || '' : due.slice(0, 3).map(x => x.subject).filter(Boolean).join(', '), url: '#/mail', tag: 'snooze' }); }
|
||||
catch (e) { console.warn('[push] snooze check failed:', e.message); }
|
||||
}
|
||||
if (st.tasks && users.can(u, 'contacts') && st.datesDay !== lt.day && lt.hm >= st.tasksAt) { // birthdays and anniversaries from Contacts, with the gift ideas, with the morning summary
|
||||
st.datesDay = lt.day; dirty = true;
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user