diff options
author | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-03-26 17:56:45 +0200 |
---|---|---|
committer | Jannis M. Hoffmann <jannis@fehcom.de> | 2023-03-26 17:56:45 +0200 |
commit | 97d10a54426d2df2de1c765948989dfc88a316eb (patch) | |
tree | c494fb654a7617f79058f7487b93b7a7908ee43c | |
parent | 0b588dff194f5dbf55ee49e88e0ca396b1bed858 (diff) |
1. corrected manifestmain
2. private node package
3. better error msg in Webmail/View
4. reduced send binaries on read
-rw-r--r-- | MANIFEST | 3 | ||||
-rw-r--r-- | MANIFEST.SKIP | 8 | ||||
-rw-r--r-- | lib/JWebmail/View/Webmail.pm | 8 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rwxr-xr-x | script/qmauth.py | 2 |
5 files changed, 17 insertions, 5 deletions
@@ -46,7 +46,8 @@ templates/displayheaders/_pagination3.html.ep templates/not_found.production.html.ep templates/exception_.html.ep -public/style.css +public/css/style.css +public/src/login_cram.js jwebmail.development.toml diff --git a/MANIFEST.SKIP b/MANIFEST.SKIP index de06795..6036ec7 100644 --- a/MANIFEST.SKIP +++ b/MANIFEST.SKIP @@ -5,3 +5,11 @@ log/ .vscode/settings.json .mypy_cache/ lang/ +node_modules/ +css/ +src/ +t/testdata/ +package.json +package-lock.json +b/extract.pl +__pycache__ diff --git a/lib/JWebmail/View/Webmail.pm b/lib/JWebmail/View/Webmail.pm index 464c97e..778253d 100644 --- a/lib/JWebmail/View/Webmail.pm +++ b/lib/JWebmail/View/Webmail.pm @@ -46,12 +46,14 @@ sub print_sizes2 { my sub dgt { "([[:digit:]]{$_[0]})" } sub parse_iso_date { - shift; + my ($_self, $in) = @_; + state $rx = do { my $re = dgt(4).'-'.dgt(2).'-'.dgt(2).'T'.dgt(2).':'.dgt(2).':'.dgt(2); qr/$re/a }; - my @d = shift =~ /$rx/; + + my @d = $in =~ /$rx/; if (@d != 6) { # TODO - warn "issue when parsing date"; + warn "issue when parsing date '$in'"; } return { year => $d[0], diff --git a/package.json b/package.json index 0a6933d..db91a3f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "type": "git", "url": "git+https://github.com/D1CED/JWebmail.git" }, + "private": true, "keywords": [ "webmail", "email" diff --git a/script/qmauth.py b/script/qmauth.py index c306e1f..c05e75f 100755 --- a/script/qmauth.py +++ b/script/qmauth.py @@ -219,7 +219,7 @@ def _get_body(mail): ret = mail.get_content() if ret.isascii(): return ret.decode(encoding='ascii') - elif len(ret) <= 512*1024: + elif len(ret) <= 128*1024: return b64encode(ret).decode(encoding='ascii') else: raise QMAuthError("non attachment part too large (>512kB)", size=len(ret)) |