feat: support restoring single message to IMAP #77

This commit is contained in:
rustmailer
2025-12-31 22:56:06 +08:00
parent 1c58b516dd
commit a6216c2ce6
33 changed files with 618 additions and 25 deletions
+8 -1
View File
@@ -38,6 +38,7 @@ import { EnvelopeTags } from './tag-facet';
import { EditTagsDialog } from './add-tag-dialog';
import { useTranslation } from 'react-i18next';
import Logo from '@/assets/logo.svg'
import { RestoreMessageDialog } from './restore-message-dialog';
export default function Search() {
const { t } = useTranslation()
@@ -187,7 +188,7 @@ export default function Search() {
<EditTagsDialog
key='edit-tags-dialog'
open={open === 'edit-tags'}
onOpenChange={() => setOpen('edit-tags')} currentEnvelope={selectedEnvelope}
onOpenChange={() => setOpen('edit-tags')}
/>
<SearchFormDialog
@@ -196,6 +197,12 @@ export default function Search() {
open={open === 'search-form'}
onOpenChange={() => setOpen('search-form')}
/>
<RestoreMessageDialog
key='restore-mail-dialog'
open={open === 'restore'}
onOpenChange={() => setOpen('restore')}
/>
</SearchProvider>
</Main>
</>