Comments (4)
Interestingly that one comes because of the global process.on('uncaughtException') which I'm thinking of getting rid of anyway...
from haraka.
Ok - but my point was shouldn't it be up to the log plugin to strip LF's or not?
As for getting rid of the uncaughtException process event; for plugins with syntax errors - it's not very useful as vm.runInNewContextContext() exceptions do not show the file and line number of the actual error despite 'name' being provided to it.
I've just modified my plugins.js to this:
try {
vm.runInNewContext(code, sandbox, name);
}
catch (err) {
logger.logcrit('Loading plugin ' + name + ' failed: ', err.message);
if (config.get('smtp.ini', 'nolog', 'ini').main.ignore_bad_plugins) {
return;
}
else {
throw 'plugin_error';
}
}
That provides much briefer output on plugin errors and is no less useful than a full stack trace:
[root@vm3 Haraka]# node haraka.js
[DEBUG] no cluster available, running single-process
Starting up Haraka version 0.9.0
[INFO] Loading plugins
[INFO] Loading plugin: stats
[CRIT] Loading plugin stats failed: Unexpected token .
[CRIT] Caught exception: plugin_error
[CRIT] Server not ready yet. Stopping.
from haraka.
+1. No line breaks makes errors extremely difficult to read.
from haraka.
Please try 1.0.0. Closing this issue for now.
from haraka.
Related Issues (20)
- Gmail problem with empty Message-id HOT 1
- spamassassin: Cannot read properties of null (reading 'message_stream') HOT 2
- Calling .join() without parameter causes bad RegExp replacement on bounce HOT 2
- Need to build an email verification solution
- Allow configuring optional queue arguments in queue/rabbitmq_amqplib plugin
- TypeError: this.merge_redis_ini is not a function HOT 1
- queue/kafka plugin HOT 1
- npm install -g Haraka installs haraka-plugin-spf 1.2.0 when latest is 1.2.3 HOT 5
- Inconsistent user/group ownership when writing files in hooks HOT 11
- is it possible to use this as a util?
- Clarify state of SMTP smuggling attack prevention HOT 7
- DENY, DENYSOFT, and DISCONNECT are ignored in ehlo_hook HOT 4
- include package-lock.json, so that it could be easily shipped in e.g. nixos? HOT 1
- Use domain name for outbound TLS connections HOT 11
- Delivery queue Transcript: 550 I cannot deliver mail for <[email protected]> [215 ms] HOT 4
- Enforcing TLS for LMTP not possible
- Email sent but ended up in SPAM or JUNK folder even with SPF, DKIM, DMARC and PTR set HOT 2
- Changing connect timeout of outgoing connections HOT 1
- Error in Greylist Plugin HOT 2
- Hook can run twice if registered with register_hook HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haraka.