mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-11-20 23:43:26 +03:00
squash merge #1058 - add the ability to bulk delete forwards from the alias list, thanks @knofte
see https://github.com/postfixadmin/postfixadmin/pull/1058
This commit is contained in:
39 files changed
+274
-3
No files matched your search
@@ -92,6 +92,10 @@ $PALANG['pOverview_alias_address'] = 'От';
|
||||
$PALANG['active'] = 'Активен';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'Е-мейл';
|
||||
|
||||
@@ -90,6 +90,10 @@ $PALANG['pOverview_alias_address'] = 'De';
|
||||
$PALANG['active'] = 'Actiu';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-mail'; # XXX
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = '前往';
|
||||
$PALANG['active'] = '活动';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = '邮件地址';
|
||||
|
||||
@@ -99,6 +99,10 @@ $PALANG['pOverview_alias_address'] = 'Od';
|
||||
$PALANG['active'] = 'Aktivní';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[a %s dalších...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -95,6 +95,10 @@ $PALANG['pOverview_alias_address'] = 'Alias';
|
||||
$PALANG['active'] = 'Aktiv';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[og %s til...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Emailadresse';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = 'Von';
|
||||
$PALANG['active'] = 'Aktiv';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[und %s weitere...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -99,6 +99,10 @@ $PALANG['pOverview_alias_address'] = 'From';
|
||||
$PALANG['active'] = 'Active';
|
||||
$PALANG['inactive'] = 'Inactive';
|
||||
$PALANG['alias_active_filter'] = 'Forward status:';
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards';
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.';
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).';
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).';
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'De';
|
||||
$PALANG['active'] = 'Activo';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'SMTP';
|
||||
$PALANG['and_x_more'] = '[y %s más...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-mail';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Kellelt';
|
||||
$PALANG['active'] = 'Aktiivne';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-posti aadress';
|
||||
|
||||
@@ -90,6 +90,10 @@ $PALANG['pOverview_alias_address'] = 'Igorlea';
|
||||
$PALANG['active'] = 'Aktibatua';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-mail';
|
||||
|
||||
@@ -92,6 +92,10 @@ $PALANG['pOverview_alias_address'] = 'Keneltä';
|
||||
$PALANG['active'] = 'Aktiivinen';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[ja %s lisää...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Sähköposti';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Frá';
|
||||
$PALANG['active'] = 'Virkin';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-post';
|
||||
|
||||
@@ -95,6 +95,10 @@ $PALANG['pOverview_alias_address'] = 'De';
|
||||
$PALANG['active'] = 'Actif';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[et %s en plus...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'courriel';
|
||||
|
||||
@@ -89,6 +89,10 @@ $PALANG['pOverview_alias_address'] = 'De';
|
||||
$PALANG['active'] = 'Activo';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[e %s máis...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-mail';
|
||||
|
||||
@@ -90,6 +90,10 @@ $PALANG['pOverview_alias_address'] = 'Od';
|
||||
$PALANG['active'] = 'Aktivan';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-pota';
|
||||
|
||||
@@ -92,6 +92,10 @@ $PALANG['pOverview_alias_address'] = 'Honnan';
|
||||
$PALANG['active'] = 'Aktív';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Póstur fyrir';
|
||||
$PALANG['active'] = 'Virkt';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'Póstfang';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = 'Da';
|
||||
$PALANG['active'] = 'Attivo';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[più %s altri...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = '転送元';
|
||||
$PALANG['active'] = 'アクティブ';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[その他 %s 個]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'メールアドレス';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Iš';
|
||||
$PALANG['active'] = 'Įjungtas'; # XXX check text - should be 'Active'
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[ir %s daugiau...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'El.paštas';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Од';
|
||||
$PALANG['active'] = 'Активен';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'Адреса';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = 'Fra';
|
||||
$PALANG['active'] = 'Aktiv';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[og %s flere...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-post';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = 'Van';
|
||||
$PALANG['active'] = 'Actief';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[en %s meer...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'e-mail';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Fra';
|
||||
$PALANG['active'] = 'Aktiv'; # XXX check text - should be 'Active'
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-post';
|
||||
|
||||
@@ -94,6 +94,10 @@ $PALANG['pOverview_alias_address'] = 'Od';
|
||||
$PALANG['active'] = 'Aktywny';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[i %s wiecej...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = 'De';
|
||||
$PALANG['active'] = 'Habilitado';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[e %s mais...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = 'De';
|
||||
$PALANG['active'] = 'Activado';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[e %s mais...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -92,6 +92,10 @@ $PALANG['pOverview_alias_address'] = 'De la';
|
||||
$PALANG['active'] = 'Activ';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[inca %s ...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -95,6 +95,10 @@ $PALANG['pOverview_alias_address'] = 'От';
|
||||
$PALANG['active'] = 'Активен';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[и еще %s...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Ящик';
|
||||
|
||||
@@ -92,6 +92,10 @@ $PALANG['pOverview_alias_address'] = 'Od';
|
||||
$PALANG['active'] = 'Aktívny';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[a %s ďalších...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Email';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Od';
|
||||
$PALANG['active'] = 'Aktiven';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-pošta';
|
||||
|
||||
@@ -94,6 +94,10 @@ $PALANG['pOverview_alias_address'] = 'Från';
|
||||
$PALANG['active'] = 'Aktiv';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[och %s mer...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-post';
|
||||
|
||||
@@ -91,6 +91,10 @@ $PALANG['pOverview_alias_address'] = 'Kimden';
|
||||
$PALANG['active'] = 'Aktif';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[ve %s daha fazla...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'E-posta';
|
||||
|
||||
@@ -92,6 +92,10 @@ $PALANG['pOverview_alias_address'] = '前往';
|
||||
$PALANG['active'] = '生效';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[and %s more...]'; # XXX
|
||||
$PALANG['pOverview_mailbox_username'] = '郵件地址';
|
||||
|
||||
@@ -93,6 +93,10 @@ $PALANG['pOverview_alias_address'] = 'Від кого';
|
||||
$PALANG['active'] = 'Активний';
|
||||
$PALANG['inactive'] = 'Inactive'; # XXX
|
||||
$PALANG['alias_active_filter'] = 'Forward status:'; # XXX
|
||||
$PALANG['delete_inactive_button'] = 'Delete all inactive forwards'; # XXX
|
||||
$PALANG['delete_inactive_confirm'] = 'Delete ALL inactive forwards in this domain? This cannot be undone.'; # XXX
|
||||
$PALANG['pDelete_inactive_success'] = 'Deleted %s inactive forward(s).'; # XXX
|
||||
$PALANG['pDelete_inactive_skipped'] = 'Skipped %s forward(s) that could not be deleted (protected or mailbox aliases).'; # XXX
|
||||
$PALANG['smtp_active'] = 'Smtp';
|
||||
$PALANG['and_x_more'] = '[та ще %s...]';
|
||||
$PALANG['pOverview_mailbox_username'] = 'Поштова адреса (Email)';
|
||||
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Postfix Admin
|
||||
*
|
||||
* LICENSE
|
||||
* This source file is subject to the GPL license that is bundled with
|
||||
* this package in the file LICENSE.TXT.
|
||||
*
|
||||
* Further details on the project are available at https://github.com/postfixadmin/postfixadmin
|
||||
*
|
||||
* @license GNU GPL v2 or later.
|
||||
*
|
||||
* File: delete-inactive.php
|
||||
* Bulk-delete every inactive (active = 0) alias/forward of a single domain.
|
||||
* This is the "delete by filter" companion to the inactive filter on
|
||||
* list-virtual.php. See https://github.com/postfixadmin/postfixadmin/issues/1038
|
||||
*
|
||||
* Template File: none
|
||||
*/
|
||||
|
||||
require_once('common.php');
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] != 'POST') {
|
||||
header('Location: list-virtual.php');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
CsrfToken::assertValid(safepost('CSRF_Token'));
|
||||
|
||||
$username = authentication_get_username(); # enforce login
|
||||
authentication_require_role('admin');
|
||||
$is_admin = authentication_has_role('admin');
|
||||
|
||||
$domain = safepost('fDomain');
|
||||
|
||||
# only allow domains this admin actually owns
|
||||
if (!is_string($domain) || $domain === '' || !in_array($domain, list_domains_for_admin($username))) {
|
||||
flash_error(Config::Lang('invalid_parameter'));
|
||||
header('Location: list-virtual.php');
|
||||
exit(0);
|
||||
}
|
||||
|
||||
# enumerate the inactive aliases; getList() is already restricted to the
|
||||
# admin's allowed domains, so this cannot reach other domains' aliases.
|
||||
$handler = new AliasHandler(0, $username, $is_admin);
|
||||
$handler->getList(array('domain' => $domain, 'active' => 0));
|
||||
$inactive = $handler->result();
|
||||
|
||||
$deleted = 0;
|
||||
$skipped = 0;
|
||||
|
||||
foreach (array_keys($inactive) as $address) {
|
||||
# delete each alias through its handler so per-alias checks (ownership,
|
||||
# protected/default aliases, mailbox aliases) are all honoured.
|
||||
$one = new AliasHandler(0, $username, $is_admin);
|
||||
if ($one->init($address) && $one->delete()) {
|
||||
$deleted++;
|
||||
} else {
|
||||
$skipped++;
|
||||
}
|
||||
}
|
||||
|
||||
flash_info(Config::Lang_f('pDelete_inactive_success', $deleted));
|
||||
if ($skipped > 0) {
|
||||
flash_error(Config::Lang_f('pDelete_inactive_skipped', $skipped));
|
||||
}
|
||||
|
||||
header('Location: list-virtual.php?domain=' . urlencode($domain));
|
||||
exit;
|
||||
@@ -57,6 +57,8 @@ if (isset($_POST['search']) && is_array($_POST['search'])) {
|
||||
// Active-status filter for the alias list (all|active|inactive). Persisted in
|
||||
// $_SESSION like the 'tab' selector below, so it survives pagination (whose
|
||||
// links only carry &limit=...).
|
||||
|
||||
|
||||
$fAliasActive = safeget('alias_active', safesession('list-virtual:alias_active', 'all'));
|
||||
if (!in_array($fAliasActive, ['all', 'active', 'inactive'], true)) {
|
||||
$fAliasActive = 'all';
|
||||
|
||||
@@ -66,15 +66,26 @@
|
||||
{if $tab=='alias' || $tab=='all'}
|
||||
<div class="text-center mb-2">{$PALANG.alias_active_filter}
|
||||
{if $alias_active=='all'}<span class='active'>{$PALANG.all}</span>
|
||||
{else}<a href="?domain={$fDomain|escape:"url"}&tab={$tab|escape:"url"}&alias_active=all&limit=0{$searchsuffix}">{$PALANG.all}</a>{/if}
|
||||
{else}<a href="?domain={$smarty.get.domain}&tab={$tab}&alias_active=all&limit=0{$searchsuffix}">{$PALANG.all}</a>{/if}
|
||||
{if $alias_active=='active'}<span class='active'>{$PALANG.active}</span>
|
||||
{else}<a href="?domain={$fDomain|escape:"url"}&tab={$tab|escape:"url"}&alias_active=active&limit=0{$searchsuffix}">{$PALANG.active}</a>{/if}
|
||||
{else}<a href="?domain={$smarty.get.domain}&tab={$tab}&alias_active=active&limit=0{$searchsuffix}">{$PALANG.active}</a>{/if}
|
||||
{if $alias_active=='inactive'}<span class='active'>{$PALANG.inactive}</span>
|
||||
{else}<a href="?domain={$fDomain|escape:"url"}&tab={$tab|escape:"url"}&alias_active=inactive&limit=0{$searchsuffix}">{$PALANG.inactive}</a>{/if}
|
||||
{else}<a href="?domain={$smarty.get.domain}&tab={$tab}&alias_active=inactive&limit=0{$searchsuffix}">{$PALANG.inactive}</a>{/if}
|
||||
</div>
|
||||
{$nav_bar_alias.top}
|
||||
{include file="list-virtual_alias.tpl"}
|
||||
{$nav_bar_alias.bottom}
|
||||
{if $alias_active=='inactive' && $tAlias}
|
||||
<div class="text-center mb-2">
|
||||
<form method="post" action="delete-inactive.php" style="display:inline">
|
||||
<input type="hidden" name="fDomain" value="{$fDomain|escape:"quotes"}">
|
||||
{CSRF_Token}
|
||||
<button class="btn btn-sm btn-danger"
|
||||
onclick="return confirm('{$PALANG.delete_inactive_confirm|escape:"javascript"}')"><span
|
||||
class="bi bi-trash" aria-hidden="true"></span> {$PALANG.delete_inactive_button}</button>
|
||||
</form>
|
||||
</div>
|
||||
{/if}
|
||||
{/if}
|
||||
{if $tab=='all'}
|
||||
<div class="clearfix"></div>
|
||||
|
||||
@@ -432,4 +432,52 @@ class AliasHandlerTest extends \PHPUnit\Framework\TestCase
|
||||
$this->assertEquals(['inact@example.com'], array_keys($inactiveList));
|
||||
$this->assertEquals(0, $inactiveList['inact@example.com']['active']);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* delete-inactive.php enumerates the inactive aliases and deletes each one
|
||||
* through its handler. Verify that removes only the inactive aliases and
|
||||
* leaves active ones untouched.
|
||||
* @see https://github.com/postfixadmin/postfixadmin/issues/1057
|
||||
*/
|
||||
public function testDeletingInactiveAliasesLeavesActiveOnes()
|
||||
{
|
||||
$this->addDomain('example.com', 'admin');
|
||||
|
||||
foreach (['keep@example.com' => 1, 'drop1@example.com' => 0, 'drop2@example.com' => 0] as $addr => $active) {
|
||||
$x = new AliasHandler(1, 'admin', true);
|
||||
$this->assertTrue($x->init($addr));
|
||||
$x->set([
|
||||
'localpart' => explode('@', $addr)[0],
|
||||
'domain' => 'example.com',
|
||||
'active' => $active,
|
||||
'address' => $addr,
|
||||
'goto' => ['dest@example.com'],
|
||||
]);
|
||||
$this->assertTrue($x->save(), json_encode($x->errormsg));
|
||||
}
|
||||
|
||||
// Enumerate + delete the inactive ones, exactly as delete-inactive.php does.
|
||||
$handler = new AliasHandler(0, 'admin', true);
|
||||
$this->assertTrue($handler->getList(['domain' => 'example.com', 'active' => 0]));
|
||||
$inactive = array_keys($handler->result());
|
||||
sort($inactive);
|
||||
$this->assertEquals(['drop1@example.com', 'drop2@example.com'], $inactive);
|
||||
|
||||
foreach ($inactive as $addr) {
|
||||
$one = new AliasHandler(0, 'admin', true);
|
||||
$this->assertTrue($one->init($addr));
|
||||
$this->assertTrue($one->delete(), json_encode($one->errormsg));
|
||||
}
|
||||
|
||||
// No inactive aliases remain.
|
||||
$handler = new AliasHandler(0, 'admin', true);
|
||||
$this->assertTrue($handler->getList(['domain' => 'example.com', 'active' => 0]));
|
||||
$this->assertEmpty($handler->result());
|
||||
|
||||
// The active alias (and the active default aliases) are still there.
|
||||
$handler = new AliasHandler(0, 'admin', true);
|
||||
$this->assertTrue($handler->getList(['domain' => 'example.com', 'active' => 1]));
|
||||
$this->assertArrayHasKey('keep@example.com', $handler->result());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user