Send encrypted messages to users with GPG key set
This commit is contained in:
parent
0f1bc6ab72
commit
ac8ac7c6d6
7 changed files with 17 additions and 26 deletions
|
@ -3,6 +3,7 @@
|
|||
let log = require('npmlog');
|
||||
|
||||
let nodemailer = require('nodemailer');
|
||||
let openpgpEncrypt = require('nodemailer-openpgp').openpgpEncrypt;
|
||||
let settings = require('./models/settings');
|
||||
let Handlebars = require('handlebars');
|
||||
let fs = require('fs');
|
||||
|
@ -108,6 +109,7 @@ function createMailer(callback) {
|
|||
rejectUnauthorized: !configItems.smtpSelfSigned
|
||||
}
|
||||
});
|
||||
module.exports.transport.use('stream', openpgpEncrypt());
|
||||
|
||||
return callback(null, module.exports.transport);
|
||||
});
|
||||
|
|
|
@ -99,6 +99,9 @@ module.exports.get = (id, callback) => {
|
|||
|
||||
segment.columns = [].concat(module.exports.defaultColumns);
|
||||
fieldList.forEach(field => {
|
||||
if (fields.genericTypes[field.type] === 'textarea') {
|
||||
return;
|
||||
}
|
||||
if (field.column) {
|
||||
segment.columns.push({
|
||||
column: field.column,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue