Skip to content

Commit

Permalink
Merge branch 'Cypht-delay-send-later-scheduled-sending' of https://gi…
Browse files Browse the repository at this point in the history
…thub.com/amaninyumu1/cypht into Cypht-delay-send-later-scheduled-sending
  • Loading branch information
amaninyumu1 committed Jul 29, 2024
2 parents 6e842ec + 2da4ff4 commit bdf9d5d
Show file tree
Hide file tree
Showing 21 changed files with 277 additions and 122 deletions.
1 change: 1 addition & 0 deletions language/az.php
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,7 @@
'Current password is incorrect' => 'Cari parol doğru deyil',
'Details' => 'Detallar',
'Don\'t save account passwords between logins' => 'Girişlərin arasında hesabın şifrəni saxlamamaq',
'Do you want to log out?' => 'Çıxmaq istəyirsiniz?',
'Drafts' => 'Layihələr',
'Enter your passwords below to gain access to these services during this session.' => 'Seansın zamanı bu xidmətlərə giriş əldə etmək üçün şifrəni daxil edin.',
'Failed to authenticate to the SMTP server' => 'SMTP-serverdə əslliyin yoxlamasını yerinə yetirmək müvəffəq olmadı',
Expand Down
1 change: 1 addition & 0 deletions language/de.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
'Current password is incorrect' => 'Aktuelles Passwort ist falsch',
'Details' => 'Details',
'Don\'t save account passwords between logins' => 'Passwort nicht speichern zwischen den Logins',
'Do you want to log out?' => 'Möchten Sie sich abmelden?',
'Drafts' => 'Entwürfe',
'Enter your passwords below to gain access to these services during this session.' => 'Gebe dein Passwort ein um Zugriff auf die Dienste während dieser Sitzung zu erhalten',
'Failed to authenticate to the SMTP server' => 'Authentifizierung am SMTP Server fehlgeschlagen',
Expand Down
4 changes: 2 additions & 2 deletions language/en.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
return array(
'interface_lang' => 'en',
'interface_direction' => 'ltr',

'Main' => false,
'Username' => false,
'Password' => false,
Expand Down Expand Up @@ -455,6 +454,7 @@
'Current password is incorrect' => false,
'Details' => false,
'Don\'t save account passwords between logins' => false,
'Do you want to log out?' => false,
'Drafts' => false,
'Enter your passwords below to gain access to these services during this session.' => false,
'Failed to authenticate to the SMTP server' => false,
Expand Down Expand Up @@ -646,4 +646,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
1 change: 1 addition & 0 deletions language/es.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
'Current password is incorrect' => 'La contraseña en curso es incorrecta',
'Details' => 'Detalles',
'Don\'t save account passwords between logins' => 'No salvar contraseñas de cuenta entre ingresos',
'Do you want to log out?' => '¿Desea cerrar sesión?',
'Drafts' => 'Borradores',
'Enter your passwords below to gain access to these services during this session.' => 'Digite su contraseña de abajo para ganar acceso a estos servicios durante la sesión',
'Failed to authenticate to the SMTP server' => 'No pude autenticar con el servidor SMTP',
Expand Down
3 changes: 2 additions & 1 deletion language/et.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,7 @@
'Current password is incorrect' => 'Praegune salasõna ei ole õige',
'Details' => 'Detailne teave',
'Don\'t save account passwords between logins' => 'Ära salvesta salasõnu sisselogimiste vahel',
'Do you want to log out?' => 'Kas soovite välja logida?',
'Drafts' => 'Kavandid',
'Enter your passwords below to gain access to these services during this session.' => 'Selleks et saada selles sessioonis ligipääsu nendele teenustele sisesta alljärgnevalt oma salasõna',
'Failed to authenticate to the SMTP server' => 'Autentimine SMTP serveris ebaõnnestus',
Expand Down Expand Up @@ -636,4 +637,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
1 change: 1 addition & 0 deletions language/fa.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@
"Hide From Combined Pages"=>"پنهان کردن از صفحات ترکیبی",
"Save Settings"=>"تنظیمات را ذخیره کن",
"Settings are not saved permanently on the server unless you explicitly allow it. If you don\'t save your settings, any changes made since you last logged in will be deleted when your session expires or you logout. You must re-enter your password for security purposes to save your settings permanently."=>"تنظیمات برای همیشه در سرور ذخیره نمی شوند ، مگر اینکه صریحاً اجازه آن را بدهید. اگر تنظیمات خود را ذخیره نکنید ، با اتمام جلسه یا خارج شدن از سیستم ، هر تغییری که از آخرین ورود به سیستم انجام داده اید ، حذف خواهد شد. برای ذخیره تنظیمات خود باید دوباره رمز ورود خود را برای اهداف امنیتی وارد کنید.",
"Do you want to log out?" => "می‌خواهید خارج شوید؟",
"Add a Repository"=>"مخزن اضافه کنید",
"Disconnect"=>"قطع شدن",
"Already connected"=>"قبلاً متصل شده اید",
Expand Down
1 change: 1 addition & 0 deletions language/fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
'Current password is incorrect' => 'Le mot de passe actuel est incorrect',
'Details' => 'Détails',
'Don\'t save account passwords between logins' => 'Ne pas sauvegarder les mots de passe des comptes entre les connexions',
'Do you want to log out?' => 'Voulez-vous vous déconnecter ?',
'Drafts' => 'Brouillons',
'Enter your passwords below to gain access to these services during this session.' => 'Entrez vos mots de passe ci-dessous pour accéder à ces services pendant cette session',
'Failed to authenticate to the SMTP server' => 'Échec de l\'authentification auprès du serveur SMTP',
Expand Down
3 changes: 2 additions & 1 deletion language/hu.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
'Current password is incorrect' => 'A jelenlegi jelszó hibás',
'Details' => 'Részletek',
'Don\'t save account passwords between logins' => 'Ne mentse el a jelszavakat bejelentkezések között',
'Do you want to log out?' => 'Ki akar jelentkezni?',
'Drafts' => 'Piszkozatok',
'Enter your passwords below to gain access to these services during this session.' => 'Adja meg jelszavát, hogy hozzáférjen ezekhez a szolgáltatásokhoz a munkamenet során.',
'Failed to authenticate to the SMTP server' => 'Sikertelen azonosítás az SMTP kiszolgálón',
Expand Down Expand Up @@ -628,4 +629,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
3 changes: 2 additions & 1 deletion language/id.php
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@
'Details' => 'Rincian',
'Don\'t save account passwords between logins' => 'Jangan menyimpan kata sandi akun diantara sesi masuk',
'Drafts' => 'Konsep',
'Do you want to log out?' => 'Apakah Anda ingin keluar?',
'Enter your passwords below to gain access to these services during this session.' => 'Masukkan kata sandi Anda di bawah untuk mendapatkan akses ke layanan berikut selama sesi ini.',
'Failed to authenticate to the SMTP server' => 'Gagal untuk meng-otentikasi ke server SMTP',
'Feed deleted' => 'Feed dihapus',
Expand Down Expand Up @@ -635,4 +636,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
1 change: 1 addition & 0 deletions language/it.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
'Current password is incorrect' => 'La password attuale non è corretta',
'Details' => 'Dettagli',
'Don\'t save account passwords between logins' => 'Non salvare le password degli account tra un accesso e l\'altro',
'Do you want to log out?' => 'Vuoi uscire?',
'Drafts' => 'Bozze',
'Enter your passwords below to gain access to these services during this session.' => 'Inserisci le tue password di seguito per accedere a questi servizi durante questa sessione.',
'Failed to authenticate to the SMTP server' => 'Impossibile autenticarsi al server SMTP',
Expand Down
3 changes: 2 additions & 1 deletion language/ja.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
'Current password is incorrect' => false,
'Details' => false,
'Don\'t save account passwords between logins' => 'ログインパスワードを保存しない',
'Do you want to log out?' => 'ログアウトしますか?',
'Drafts' => false,
'Enter your passwords below to gain access to these services during this session.' => false,
'Failed to authenticate to the SMTP server' => 'SMTPサーバーの認証に失敗しました',
Expand Down Expand Up @@ -628,4 +629,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
3 changes: 2 additions & 1 deletion language/nl.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,7 @@
'Current password is incorrect' => 'Huidige wachtwoord is fout',
'Details' => 'Details',
'Don\'t save account passwords between logins' => 'Account wachtwoord niet opslaan tussen logins',
'Do you want to log out?' => 'Wilt u uitloggen?',
'Drafts' => false,
'Enter your passwords below to gain access to these services during this session.' => 'Geef uw wachtwoord hieronder in om toegang tot deze services te krijgen tijdens de sessie',
'Failed to authenticate to the SMTP server' => 'Authenticatie met de SMPT-server mislukt',
Expand Down Expand Up @@ -628,4 +629,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
3 changes: 2 additions & 1 deletion language/pt-BR.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@
'Current password is incorrect' => 'Senha atual está incorreta',
'Details' => 'Detalhes',
'Don\'t save account passwords between logins' => 'Não salvar senhas de contas entre sessões',
'Do you want to log out?' => 'Deseja sair?',
'Drafts' => 'Rascunhos',
'Enter your passwords below to gain access to these services during this session.' => 'Entre abaixo suas senhas para ter acesso a esses serviços durante esta sessão.',
'Failed to authenticate to the SMTP server' => 'Falha ao autenticar no servidor de SMTP',
Expand Down Expand Up @@ -627,4 +628,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
3 changes: 2 additions & 1 deletion language/ro.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,7 @@
'Current password is incorrect' => false,
'Details' => false,
'Don\'t save account passwords between logins' => 'Nu salvați parolele între conectări',
'Do you want to log out?' => 'Doriți să vă deconectați?',
'Drafts' => 'Ciorne',
'Enter your passwords below to gain access to these services during this session.' => false,
'Failed to authenticate to the SMTP server' => 'Eroare de autentificare la serverul SMTP',
Expand Down Expand Up @@ -627,4 +628,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
3 changes: 2 additions & 1 deletion language/ru.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@
'Current password is incorrect' => 'Текущий пароль не верен',
'Details' => 'Детали',
'Don\'t save account passwords between logins' => 'Не сохранять пароль аккаунта между входами',
'Do you want to log out?' => 'Вы хотите выйти?',
'Drafts' => 'Черновики',
'Enter your passwords below to gain access to these services during this session.' => 'Введите Ваш пароль ниже чтобы получить пароль к этим службам во время этого сеанса',
'Failed to authenticate to the SMTP server' => 'Невозможно аутентифицироваться на SMTP сервере',
Expand Down Expand Up @@ -629,4 +630,4 @@
'Junk' => false,
'Trash' => false,
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
5 changes: 3 additions & 2 deletions language/zh-Hans.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

/*
/*
language :Chinese_simplified
languageNative :简体中文(中国)
translators :PJ568
Expand Down Expand Up @@ -473,6 +473,7 @@
'Current password is incorrect' => '当前密码错误',
'Details' => '详情',
'Don\'t save account passwords between logins' => '不要保存登录密码',
'Do you want to log out?' => '您是否要退出?',
'Drafts' => '草稿',
'Enter your passwords below to gain access to these services during this session.' => '在下方键入密码以获得在本次会话中对这些服务的使用权限。',
'Failed to authenticate to the SMTP server' => '验证 SMTP 服务器失败',
Expand Down Expand Up @@ -649,4 +650,4 @@
'Junk' => '垃圾',
'Trash' => '已删除',
'You have %d scheduled messages that won\'t be executed if you quit' => false,
);
);
31 changes: 23 additions & 8 deletions modules/core/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,8 @@ function Message_List() {
}
});
}
if (element) {
// apply JS pagination only on aggregate folders; imap ones already have the messages sorted
if (hm_list_path().substring(0, 5) != 'imap_' && element) {
$(row, msg_rows).insertBefore(element);
}
else {
Expand Down Expand Up @@ -1291,7 +1292,7 @@ var Hm_Folders = {
},

folder_list_events: function() {
$('.imap_folder_link').on("click", function() { return expand_imap_folders($(this).data('target')); });
$('.imap_folder_link').on("click", function() { return expand_imap_folders($(this)); });
$('.src_name').on("click", function() {
var class_name = $(this).data('source');
var icon_element = $(this).find('.bi');
Expand Down Expand Up @@ -1434,7 +1435,7 @@ var Hm_Utils = {
},

confirm_logout: function() {
if ($('#unsaved_changes').val() == 0) {
if (! $('#unsaved_changes').length || $('#unsaved_changes').val() == 0) {
document.getElementById('logout_without_saving').click();
}
else {
Expand Down Expand Up @@ -1987,6 +1988,9 @@ $(function() {

/* fire up the job scheduler */
Hm_Timer.fire();

/* show any pending notices */
Hm_Utils.show_sys_messages();

/* load folder list */
if (hm_is_logged() && (!reloaded && !Hm_Folders.load_from_local_storage())) {
Expand Down Expand Up @@ -2034,6 +2038,13 @@ $(function() {
$('form:not(.search_terms)').areYouSure();
}

$(document).on('paste', '.warn_on_paste', function (e) {
const paste = (e.clipboardData || window.clipboardData).getData('text');
if (hasLeadingOrTrailingSpaces(paste)) {
Hm_Utils.add_sys_message(hm_trans('Pasted text has leading or trailing spaces'), 'danger');
}
});

fixLtrInRtl()
});

Expand Down Expand Up @@ -2707,27 +2718,31 @@ const observeMessageTextMutationAndHandleExternalResources = (inline) => {
};

var setup_nexter_date = function(callback) {
var scopedElement = function (el, selector) {
return $(el).parent().parent().find(selector);
}
$(document).on('click', '.nexter_date_picker', function(e) {
document.querySelector('.nexter_input_date').showPicker();
});
$(document).on('click', '.nexter_date_helper', function(e) {
e.preventDefault();
$('.nexter_input').val($(this).attr('data-value')).trigger('change');
scopedElement(this, '.nexter_input').val($(this).attr('data-value')).trigger('change');
});
$(document).on('input', '.nexter_input_date', function(e) {
var now = new Date();
now.setMinutes(now.getMinutes() + 1);
$(this).attr('min', now.toJSON().slice(0, 16));
var date_picker = scopedElement(this, '.nexter_date_picker');
if (new Date($(this).val()).getTime() <= now.getTime()) {
$('.nexter_date_picker').css('border', '1px solid red');
date_picker.css('border', '1px solid red');
} else {
$('.nexter_date_picker').css({'border': 'unset', 'border-top': '1px solid #ddd'});
date_picker.css({'border': 'unset', 'border-top': '1px solid #ddd'});
}
});
$(document).on('change', '.nexter_input_date', function(e) {
if ($(this).val() && new Date().getTime() < new Date($(this).val()).getTime()) {
$('.nexter_input').val($(this).val()).trigger('change');
scopedElement(this, '.nexter_input').val($(this).val()).trigger('change');
}
});
$(document).on('change', '.nexter_input', callback);
}
}
Loading

0 comments on commit bdf9d5d

Please sign in to comment.