more escaping

This commit is contained in:
Girish Ramakrishnan 2016-06-24 13:01:16 -05:00
parent 17c5cfc44f
commit db3e9ccbc3
1 changed files with 3 additions and 3 deletions

View File

@ -659,8 +659,8 @@ Cloudron.prototype.checkMail = function (account, callback) {
});
imap.probe({
subject: new RegExp('^Hi from e2e test - ' + this._box.domain + '$'),
to: new RegExp((account.to || account.username) + '@' + this._box.domain),
body: /This release depends on you/
subject: common.regexp('Hi from e2e test - ' + this._box.domain),
to: common.regexp((account.to || account.username) + '@' + this._box.domain),
body: common.regexp('This release depends on you')
}, callback);
};