Hi all,
I've got a citadel email server running on my raspberry pi along with Node-Red running Pi OS Lite.
Node-Red v3.0.0
Node.js v18.6.0
Every time I try to read email from the local Citadel server via pop3 or imap node-red hard crashes with this error:
15 Jul 20:48:20 - [red] Uncaught Exception:
15 Jul 20:48:20 - [error] TypeError: Cannot set property errored of #<Readable> which has only a getter
at new MessageSplitter (/home/papershow/.node-red/node_modules/node-red-node-email-variable/node_modules/mailsplit/lib/message-splitter.js:28:22)
at new MailParser (/home/papershow/.node-red/node_modules/node-red-node-email-variable/node_modules/mailparser/lib/mail-parser.js:132:25)
at module.exports (/home/papershow/.node-red/node_modules/node-red-node-email-variable/node_modules/mailparser/lib/simple-parser.js:29:18)
at POP3Client.<anonymous> (/home/papershow/.node-red/node_modules/node-red-node-email-variable/variable-email.js:416:21)
at POP3Client.emit (node:events:513:28)
at /home/papershow/.node-red/node_modules/node-red-node-email-variable/node_modules/poplib/main.js:729:9
at Socket.onData (/home/papershow/.node-red/node_modules/node-red-node-email-variable/node_modules/poplib/main.js:239:5)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:297:9)
nodered.service: Main process exited, code=exited, status=1/FAILURE
nodered.service: Failed with result 'exit-code'.
nodered.service: Consumed 12.748s CPU time.
I've tested this on my Windows PC connecting to the mail server on my raspberry pi and it works fine. My pc is running Node-Red v2.1.4 and node.js v16.15.1
Does anyone have any idea how I could solve this bug, or is it impossible to run an email server and Node-Red on the same machine?
Thanks,
Toby