v. 20220808
more info at https://notes.sagredo.eu/en/qmail-notes-185/qmailadmin-23.html
* Roberto Puzzanghera's qmailadmin-skin patch
Provides a new responsive skin to the control panel.
It modifies everything under the html dir and many .c files in order to adjust the
html that the original author embedded into the source files.
Added a stylesheet style.css in the images folder and a couple of png files for the qmail logo.
Before compiling you may want to save the qmail logo png files into the "images" folder of your
source directory:
wget -O images/favicon-16x16.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/favicon-16x16.png
wget -O images/favicon-32x32.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/favicon-32x32.png
wget -O images/logo.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/logo.png
wget -O images/logo_big.png https://notes.sagredo.eu/files/qmail/patches/qmailadmin/skin/img/logo_big.png
== Changelog
* 2022.08.08
-user.c: cosmetics adjustments to the html output
-lang/it: minor corrections to the translations
* 2020.09.01
-mod_user.html: added value attribute to the name/gecos input tag
* 2020.08.10
-Makefile.in: added a line to install the css, as already done for Makefile.am
(tx Pablo Murillo)
* 2020.05.22
-mod_user.html: removed "required" attribute on password field, to allow modifications
in case of no password change
* 2020.05.05
First release of the patch
===================================================================================================
diff -ruN ../qmailadmin-1.2.16-original/Makefile.am qmailadmin-1.2.16/Makefile.am
--- ../qmailadmin-1.2.16-original/Makefile.am 2011-02-22 15:45:48.000000000 +0100
+++ qmailadmin-1.2.16/Makefile.am 2022-08-08 12:46:06.573819741 +0200
@@ -79,4 +79,4 @@
chmod 644 $(DESTDIR)@htmllibdir@/lang/*
$(mkinstalldirs) $(DESTDIR)@imagedir@
cp $(srcdir)/images/*.png $(DESTDIR)@imagedir@
-
+ cp $(srcdir)/images/*.css $(DESTDIR)@imagedir@
diff -ruN ../qmailadmin-1.2.16-original/alias.c qmailadmin-1.2.16/alias.c
--- ../qmailadmin-1.2.16-original/alias.c 2011-02-22 15:45:47.000000000 +0100
+++ qmailadmin-1.2.16/alias.c 2022-08-08 12:46:06.575819712 +0200
@@ -305,11 +305,11 @@
*/
printf ("%s", HTML_ALIAS_ROW_START);
- qmail_button (this_alias, "deldotqmail", user, dom, mytime, "trash.png");
+ qmail_button (this_alias, "deldotqmail", user, dom, mytime, "delete_forever");
if (*curalias->alias_command == '#')
printf ("%s", HTML_EMPTY_TD); /* don't allow modify on blackhole */
else
- qmail_button (this_alias, "moddotqmail", user, dom, mytime, "modify.png");
+ qmail_button (this_alias, "moddotqmail", user, dom, mytime, "create");
printh (HTML_ALIAS_NAME, this_alias);
printf (HTML_ALIAS_DEST_START);
@@ -715,7 +715,7 @@
*s = '\0';
if ((s = strrchr(user, '/')) == NULL) return NULL;
- if (b != NULL) { snprinth (user, sizeof(user), "%H (%H)", s+1, b); }
+ if (b != NULL) { snprinth (user, sizeof(user), "%H (%H)", s+1, b); }
else { snprinth (user, sizeof(user), "%H", s+1); }
return (user);
@@ -739,7 +739,7 @@
/* back up to pipe or first slash to remove path */
while (line[len] != '/' && line[len] != '|') len--;
len++; /* len is now first char of program name */
- snprinth (command, sizeof(command), "%H", &line[len]);
+ snprinth (command, sizeof(command), "%H", &line[len]);
return(command);
} else {
diff -ruN ../qmailadmin-1.2.16-original/autorespond.c qmailadmin-1.2.16/autorespond.c
--- ../qmailadmin-1.2.16-original/autorespond.c 2011-02-22 15:45:47.000000000 +0100
+++ qmailadmin-1.2.16/autorespond.c 2022-08-08 12:46:06.575819712 +0200
@@ -77,17 +77,17 @@
for (i = 0; (addr = sort_get_entry(i)); ++i) {
printf ("