mirror of
https://github.com/moparisthebest/mail
synced 2024-12-24 08:18:48 -05:00
[WO-218] remove names from greeting and simplify message
This commit is contained in:
parent
c26c7c9698
commit
ada401efa9
@ -54,7 +54,7 @@ define(function(require) {
|
||||
fallbackSubject: '(no subject)',
|
||||
invitationSubject: 'Invitation to a private conversation',
|
||||
invitationMessage: 'I would like to invite you to a private conversation!\n\nIn order to read my encrypted message please install the Whiteout Mail application. This application is used to read and write messages securely with strong encryption applied.\n\nGo to the Whiteout Networks homepage to learn more and to download the application: https://whiteout.io',
|
||||
message: 'this is a private conversation. To read my encrypted message below, simply install Whiteout Mail for Chrome. The app is really easy to use and automatically encrypts sent emails, so that only the two of us can read them.\n\nOpen Whiteout Mail: https://chrome.google.com/webstore/detail/jjgghafhamholjigjoghcfcekhkonijg',
|
||||
message: 'this is a private conversation. To read my encrypted message below, simply open it in Whiteout Mail.\n\nOpen Whiteout Mail: https://chrome.google.com/webstore/detail/jjgghafhamholjigjoghcfcekhkonijg',
|
||||
cryptPrefix: '-----BEGIN PGP MESSAGE-----',
|
||||
cryptSuffix: '-----END PGP MESSAGE-----',
|
||||
signature: 'Sent securely from Whiteout Mail',
|
||||
|
@ -227,13 +227,12 @@ define(function(require) {
|
||||
|
||||
// send an invitation to the unregistered user, aka the recipient
|
||||
function sendInvitationMail(recipient, sender) {
|
||||
var to = (recipient.name || recipient.address).split('@')[0].split('.')[0].split(' ')[0],
|
||||
invitationMail = {
|
||||
from: [sender],
|
||||
to: [recipient],
|
||||
subject: str.invitationSubject,
|
||||
body: 'Hi ' + to + ',\n\n' + str.invitationMessage + '\n\n'
|
||||
};
|
||||
var invitationMail = {
|
||||
from: [sender],
|
||||
to: [recipient],
|
||||
subject: str.invitationSubject,
|
||||
body: 'Hi,\n\n' + str.invitationMessage + '\n\n'
|
||||
};
|
||||
|
||||
// send invitation mail
|
||||
self._emailDao.sendPlaintext({
|
||||
|
@ -954,8 +954,7 @@ define(function(require) {
|
||||
message = str.message + '\n\n\n',
|
||||
signature = '\n\n' + str.signature + '\n\n';
|
||||
|
||||
// get first name of recipient
|
||||
greeting = 'Hi ' + (email.to[0].name || email.to[0].address).split('@')[0].split('.')[0].split(' ')[0] + ',\n\n';
|
||||
greeting = 'Hi,\n\n';
|
||||
|
||||
// build encrypted text body
|
||||
email.body = greeting + message + ct + signature;
|
||||
|
Loading…
Reference in New Issue
Block a user