warnquota mail template stored in static strings within the executable, impossible to customize or translate
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quota (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
The quota package shows signs of age, and could do with some adoption and maintenance. The most obvious sign is that the mails sent out by the warnquota(8) tool are built from a template stored in static strings within the executable.
The trouble with this is that it makes a few outdated assumptions (namely that the best way to deal with quota overages on an accountholder's part is to make a local telephone call) and it probably makes translation unnecessarily difficult.
The code does have its own template variable substitution logic, so a naïve approach of simply slurping in the base strings from files would bring the code a long way forward. Beyond that, I'm not versed in the current state of C templating engines so I'm not sure what The Right Thing would be.
Description: Ubuntu 8.04.2
Release: 8.04
quota:
Installed: 3.15-6
Candidate: 3.15-6
Version table:
*** 3.15-6 0
500 http://
100 /var/lib/
Changed in quota (Ubuntu): | |
status: | New → Confirmed |
Changed in quota (Ubuntu): | |
status: | Confirmed → Fix Committed |
Changed in quota (Ubuntu): | |
status: | Confirmed → New |
status: | New → Incomplete |
status: | Incomplete → New |
Changed in quota (Ubuntu): | |
status: | New → Triaged |
Hi,
I looked at the source <http:// linuxquota. cvs.sourceforge .net/viewvc/ linuxquota/ quota-tools/ warnquota. c?revision= 1.32&view= markup> of the warnquota command, and it seems to support customizations in the warnquota.conf file <http:// linuxquota. cvs.sourceforge .net/viewvc/ linuxquota/ quota-tools/ warnquota. conf?revision= 1.9&view= markup>. Is this not what you're looking for? (the l10n and l18n problems nonwithstanding)