feat: add debug logging for SMTP configuration and detailed mail delivery status
Build and Push Multi-Platform Images / build-and-push (push) Failing after 34s
Build and Push Multi-Platform Images / build-and-push (push) Failing after 34s
This commit is contained in:
@@ -26,6 +26,7 @@ import StarterKit from '@tiptap/starter-kit';
|
||||
import Underline from '@tiptap/extension-underline';
|
||||
import { inboxApi, type InboxBarcode, type InboxFile, type PostprocessActionResult } from '../api/inbox';
|
||||
import { paperlessApi } from '../api/paperless';
|
||||
import { userSettingsApi } from '../api/userSettings';
|
||||
|
||||
const ZOOM_MIN = 0.5;
|
||||
const ZOOM_MAX = 3;
|
||||
@@ -678,13 +679,17 @@ function SendEmailDialog({ open, fileId, fileName, documents, onClose }: SendEma
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
form.resetFields();
|
||||
editor?.commands.clearContent();
|
||||
const base = fileName.replace(/\.pdf$/i, '');
|
||||
setFilenames(
|
||||
documents.map((doc) =>
|
||||
doc.belegname || (documents.length === 1 ? base : `${base}_${doc.index + 1}`),
|
||||
),
|
||||
);
|
||||
userSettingsApi.get().then((settings) => {
|
||||
editor?.commands.setContent(settings.mailSignatureHtml ?? '');
|
||||
}).catch(() => {
|
||||
editor?.commands.clearContent();
|
||||
});
|
||||
}, [open, documents, fileName, form, editor]);
|
||||
|
||||
const handleOk = async () => {
|
||||
|
||||
Reference in New Issue
Block a user