###################################################### # This patch was written to add "Used : numused/limit" headers # to the show aliases/forwards/autoresponders/mailinglists screens. # # The show_users screen has had this functionality for a while # so I thought it would make sense to also add it to the other # screens. # # Apply the patch like this : # patch -p0 < qmailadmin-1.0.20-addcounts.diff.txt # # Michael Bowe 5th June 2003. ###################################################### --- ../qmailadmin-1.0.20/template.c Tue May 27 05:54:51 2003 +++ template.c Thu Jun 5 13:54:30 2003 @@ -257,6 +257,54 @@ check_user_forward_vacation(fgetc(fs)); break; + /* show number of aliases */ + /* Added by 5th June 2003 */ + case 'j': + load_limits(); + count_aliases(); + if(MaxAliases > -1) { + printf("%d/%d", CurAliases, MaxAliases); + } else { + printf("%d/%s", CurAliases, get_html_text("229")); + } + break; + + /* show number of forwards */ + /* Added by 5th June 2003 */ + case 'k': + load_limits(); + count_forwards(); + if(MaxForwards > -1) { + printf("%d/%d", CurForwards, MaxForwards); + } else { + printf("%d/%s", CurForwards, get_html_text("229")); + } + break; + + /* show number of autoresponders */ + /* Added by 5th June 2003 */ + case 'K': + load_limits(); + count_autoresponders(); + if(MaxAutoResponders > -1) { + printf("%d/%d", CurAutoResponders, MaxAutoResponders); + } else { + printf("%d/%s", CurAutoResponders, get_html_text("229")); + } + break; + + /* show number of mailing lists */ + /* Added by 5th June 2003 */ + case 'L': + load_limits(); + count_mailinglists(); + if(MaxMailingLists > -1) { + printf("%d/%d", CurMailingLists, MaxMailingLists); + } else { + printf("%d/%s", CurMailingLists, get_html_text("229")); + } + break; + /* show the aliases stuff */ case 'l': if (AdminType == DOMAIN_ADMIN) { --- ../qmailadmin-1.0.20/html/show_users.html Tue Apr 22 06:30:07 2003 +++ html/show_users.html Thu Jun 5 13:57:34 2003 @@ -12,7 +12,7 @@ ##X061 (##D)
- ##X255 ##B + [##X254 ##B]
--- ../qmailadmin-1.0.20/html/show_forwards.html Tue Apr 22 06:30:05 2003 +++ html/show_forwards.html Thu Jun 5 13:57:05 2003 @@ -11,6 +11,8 @@ ##X074/##X068 +
+ [##X122 ##X254 ##k, ##X121 ##X254 ##j]
--- ../qmailadmin-1.0.20/html/show_autorespond.html Tue Apr 22 06:30:04 2003 +++ html/show_autorespond.html Thu Jun 5 13:57:15 2003 @@ -11,6 +11,8 @@ ##X077 +
+ [##X254 ##K]
--- ../qmailadmin-1.0.20/html/show_mailinglist.html Tue Apr 22 06:30:06 2003 +++ html/show_mailinglist.html Thu Jun 5 13:56:54 2003 @@ -11,6 +11,8 @@ ##X080 +
+ [##X254 ##L]