more mail stuff

- todo: alot, but mainly track new/read and get local working
This commit is contained in:
zefie
2021-11-15 00:51:31 -05:00
parent a088ea1e42
commit ee76fd5190
22 changed files with 882 additions and 104 deletions

View File

@@ -273,6 +273,10 @@ class WTVShared {
return this.fixPathSlashes(base + this.path.sep + targetPath);
}
makeSafeUsername(username) {
return username.replace(/^([A-Za-z0-9\-\_]{5,16})$/, '');
}
/**
* Corrects any / or \ differences, if any for file paths
* @param {string} path