(js) Fix mail filters with flags prefixed with $

Fixes #4461
This commit is contained in:
Francis Lachapelle
2018-05-14 23:18:30 -04:00
parent 31d7926304
commit 65812424d6
5 changed files with 38 additions and 18 deletions
@@ -17,7 +17,7 @@
this.timeZonesList = $window.timeZonesList;
this.timeZonesSearchText = '';
this.sieveVariablesCapability = ($window.sieveCapabilities.indexOf('variables') >= 0);
this.mailLabelKeyRE = new RegExp("^[^(){} %*\"\\\\]*$");
this.mailLabelKeyRE = new RegExp(/^(?!^_\$)[^(){} %*\"\\\\]*?$/);
if (sgSettings.activeUser('path').mail) {