From 839ef633352283de006f00eab0ecef45bbd954cd Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Wed, 18 Feb 2026 03:14:25 +0100 Subject: [PATCH] change return type --- core/src/command/CommandExecutor.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/core/src/command/CommandExecutor.ts b/core/src/command/CommandExecutor.ts index 0c5301d6c..31cb7e245 100644 --- a/core/src/command/CommandExecutor.ts +++ b/core/src/command/CommandExecutor.ts @@ -24,8 +24,15 @@ export class CommandExecutor { } methodLogger.debug(`executeCommand() executing command=${command.constructor.name}`) const result = await command.execute(); - methodLogger.debug(`executeCommand() executed result=${JSON.stringify(result)}`) - return { success: true, data: result }; + // "accepted":["stage5@gradido.net"],"rejected":[],"ehlo":["PIPELINING","SIZE 25600000","ETRN","AUTH DIGEST-MD5 CRAM-MD5 PLAIN LOGIN","ENHANCEDSTATUSCODES","8BITMIME","DSN","CHUNKING"],"envelopeTime":25,"messageTime":146,"messageSize":37478,"response":"250 2.0.0 Ok: queued as 14B46100B7F","envelope":{"from":"stage5@gradido.net","to":["stage5@gradido.net"]} + const resultMsg = { + accepted: result.accepted, + messageSize: result.messageSize, + response: result.response, + envelope: result.envelope, + } + methodLogger.debug(`executeCommand() executed result=${JSON.stringify(resultMsg)}`) + return { success: true, data: JSON.stringify(resultMsg) }; } catch (error) { methodLogger.error(`executeCommand() error=${error}`) return {