v. 20200901
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.
== Changelog
* 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 2020-05-22 16:10:32.877023997 +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/Makefile.in qmailadmin-1.2.16/Makefile.in
--- ../qmailadmin-1.2.16-original/Makefile.in 2011-02-22 15:45:47.000000000 +0100
+++ qmailadmin-1.2.16/Makefile.in 2020-08-10 19:04:07.472045178 +0200
@@ -713,6 +713,7 @@
chmod 644 $(DESTDIR)@htmllibdir@/lang/*
$(mkinstalldirs) $(DESTDIR)@imagedir@
cp $(srcdir)/images/*.png $(DESTDIR)@imagedir@
+ cp $(srcdir)/images/*.css $(DESTDIR)@imagedir@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
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 2020-05-22 16:10:32.878023987 +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 2020-05-22 16:37:27.916450314 +0200
@@ -77,17 +77,17 @@
for (i = 0; (addr = sort_get_entry(i)); ++i) {
printf ("