Better aliases generation for Postfix (webmin)

Bug #266095 reported by Wombachi
2
Affects Status Importance Assigned to Milestone
GNU Mailman
New
Medium
Unassigned

Bug Description

The data/aliases file generated by MTA/Postfix.py can be
slightly improved, notably when using webmin
(little patch below). I didnt check if alias generation
with other MTAs have the same problem.

Postfix.py generates lines like
# STANZA START: <listname>
# CREATED: <date>
(...)
# STANZA END:

Problem is the "# CREATED:" line. To disable a mail alias,
some admin simply put a '# ' in front of that alias.
So that line could be interpreted as a user 'CREATED'
that has been disabled. And webmin (v1.150, last one)
just do that in the postfix module, displaying wrong infos
for postfix aliases.

That webmin module use a regex to check these
'disabled' aliases with this Perl code (sorry, not
Python:)
   if (/^(#*)\s*([^:$ \t]+)\s*:\s*(.*)$/)
The '# STANZA' lines dont match, so it's ok.
But the '# CREATED:' line do match, causing wrong
results in webmin. A simple solution is to replace the
'CREATED:' word with two word, by example
'ALIASES CREATED:'

MTA/Postfix.py line 108 (mailman-2.1.5)
    print >> fp, '# CREATED:', time.ctime(time.time())
proposed change
    print >> fp, '# ALIASES CREATED:',
time.ctime(time.time())

[http://sourceforge.net/tracker/index.php?func=detail&aid=979631&group_id=103&atid=100103]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.