mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Some tiny changes
This commit is contained in:
parent
21d3a9f401
commit
4321c11622
2
dev/prototype.js
vendored
2
dev/prototype.js
vendored
|
@ -71,7 +71,7 @@
|
|||
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat
|
||||
Date.prototype.fromNow = function() {
|
||||
let unit = 'second',
|
||||
value = (this.getTime() - Date.now()) / 1000,
|
||||
value = Math.round((this.getTime() - Date.now()) / 1000),
|
||||
t = [[60,'minute'],[3600,'hour'],[86400,'day'],[2628000,'month'],[31536000,'year']],
|
||||
i = 5,
|
||||
abs = Math.abs(value);
|
||||
|
|
|
@ -120,7 +120,7 @@ unlink($tar_destination);
|
|||
echo "\n{$zip_destination} created\n{$tar_destination}.gz created\n";
|
||||
|
||||
// Docker build
|
||||
if (readline("Build Docker image? (Y/N): ") === "Y") {
|
||||
if ($options['docker'] || readline("Build Docker image? (Y/N): ") === "Y") {
|
||||
copy($zip_destination, $docker_zip);
|
||||
|
||||
$docker = trim(`which docker`);
|
||||
|
|
|
@ -74,7 +74,7 @@ class Api
|
|||
\MailSo\Config::$ImapTimeout =
|
||||
(int) static::Config()->Get('labs', 'imap_timeout', 300);
|
||||
|
||||
\MailSo\Config::$BoundaryPrefix = '_RainLoop_';
|
||||
\MailSo\Config::$BoundaryPrefix = '_SnappyMail_';
|
||||
|
||||
\MailSo\Config::$SystemLogger = static::Logger();
|
||||
|
||||
|
|
Loading…
Reference in a new issue