summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--MANIFEST3
-rw-r--r--MANIFEST.SKIP8
-rw-r--r--lib/JWebmail/View/Webmail.pm8
-rw-r--r--package.json1
-rwxr-xr-xscript/qmauth.py2
5 files changed, 17 insertions, 5 deletions
diff --git a/MANIFEST b/MANIFEST
index 037007e..b5a7c96 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -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))