Skip to content

Commit

Permalink
assure cfg.headers section exists (#2862)
Browse files Browse the repository at this point in the history
  • Loading branch information
msimerson authored Nov 18, 2020
1 parent 4e4a005 commit 3145563
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Header = require('./mailheader').Header;
const body = require('./mailbody');
const MessageStream = require('./messagestream');

const cfg = config.get('smtp.ini');
const cfg = config.get('smtp.ini', { booleans: [ '+headers.add_received' ] });
if (!cfg.headers.max_lines) {
cfg.headers.max_lines = config.get('max_header_lines') || 1000;
}
Expand Down

0 comments on commit 3145563

Please sign in to comment.