From b41d731c6c657d350f7b03bc231c16b69a9b7084 Mon Sep 17 00:00:00 2001 From: ClaraCrazy Date: Thu, 2 Nov 2023 07:41:52 +0100 Subject: [PATCH] Cleanup --- app.json | 4 ++-- application/imap-service.js | 2 +- application/mail-processing-service.js | 1 - .../web/public/images/{icon.ico => logo.ico} | Bin .../web/public/images/{logo.gif => logo.png} | Bin .../web/public/javascripts/notifications.js | 2 +- infrastructure/web/views/layout.twig | 6 +++--- 7 files changed, 7 insertions(+), 8 deletions(-) rename infrastructure/web/public/images/{icon.ico => logo.ico} (100%) rename infrastructure/web/public/images/{logo.gif => logo.png} (100%) diff --git a/app.json b/app.json index c92ea6d..4461eaf 100644 --- a/app.json +++ b/app.json @@ -2,7 +2,7 @@ "name": "48hr.email | disposable email", "description": "a simple and fast disposable mail service that works directly with your imap server. No database required.", "repository": "https://github.com/Crazyco-xyz/48hr.email", - "logo": "https://github.com/Crazyco-xyz/48hr.email/blobl/main/infrastructure/web/public/images/logo.gif", + "logo": "https://github.com/Crazyco-xyz/48hr.email/blobl/main/infrastructure/web/public/images/logo.png", "keywords": [ "node", "disposable-mail" @@ -24,7 +24,7 @@ "description": "How often to refresh the imap messages manually" }, "DELETE_MAILS_OLDER_THAN_DAYS": { - "description": "How many days to to wait before deleting messages. (default: `30`)" + "description": "How many days to to wait before deleting messages." } } } diff --git a/application/imap-service.js b/application/imap-service.js index 4aa3b21..5c8dda2 100644 --- a/application/imap-service.js +++ b/application/imap-service.js @@ -46,7 +46,7 @@ imaps.ImapSimple.prototype.deleteMessage = function (uid, callback) { /** * Close a mailbox * - * @param {boolean} [autoExpunge=true] If autoExpunge is true, any messages marked as Deleted in the currently open mailbox will be remove + * @param {boolean} [autoExpunge=true] If autoExpunge is true, any messages marked as Deleted in the currently open mailbox will be removed * @param {function} [callback] Optional callback, receiving signature (err) * @returns {undefined|Promise} Returns a promise when no callback is specified, resolving to `boxName` * @memberof ImapSimple diff --git a/application/mail-processing-service.js b/application/mail-processing-service.js index bcb2100..228d305 100644 --- a/application/mail-processing-service.js +++ b/application/mail-processing-service.js @@ -67,7 +67,6 @@ class MailProcessingService extends EventEmitter { onMailDeleted(uid) { debug('mail deleted with uid', uid) this.mailRepository.removeUid(uid) - // No client notification required, as nobody can hold a connection for 30+ days. } async _deleteOldMails() { diff --git a/infrastructure/web/public/images/icon.ico b/infrastructure/web/public/images/logo.ico similarity index 100% rename from infrastructure/web/public/images/icon.ico rename to infrastructure/web/public/images/logo.ico diff --git a/infrastructure/web/public/images/logo.gif b/infrastructure/web/public/images/logo.png similarity index 100% rename from infrastructure/web/public/images/logo.gif rename to infrastructure/web/public/images/logo.png diff --git a/infrastructure/web/public/javascripts/notifications.js b/infrastructure/web/public/javascripts/notifications.js index d3efec9..fb075c1 100644 --- a/infrastructure/web/public/javascripts/notifications.js +++ b/infrastructure/web/public/javascripts/notifications.js @@ -6,7 +6,7 @@ function showNewMailsNotification(address, reloadPage) { const notification = new Notification(address, { body: 'You have new messages', - icon: '/images/logo.gif', + icon: '/images/logo.png', tag: '48hr-email-replace-notification', renotify: true }) diff --git a/infrastructure/web/views/layout.twig b/infrastructure/web/views/layout.twig index 7314833..9573e82 100644 --- a/infrastructure/web/views/layout.twig +++ b/infrastructure/web/views/layout.twig @@ -7,9 +7,9 @@ - + - + @@ -20,7 +20,7 @@
- + {% block body %}{% endblock %}