diff options
| author | Barry Warsaw | 2011-06-10 20:03:16 -0400 |
|---|---|---|
| committer | Barry Warsaw | 2011-06-10 20:03:16 -0400 |
| commit | 56e3d0431002758bf8fa395ae607674a50024157 (patch) | |
| tree | ad8f2826b6e7d8b74ee83ff0fb55230f511a4f6e /src/mailman/mta/postfix.py | |
| parent | f8596ce463863dc6defb5dac84f5b226c45cb419 (diff) | |
| download | mailman-56e3d0431002758bf8fa395ae607674a50024157.tar.gz mailman-56e3d0431002758bf8fa395ae607674a50024157.tar.zst mailman-56e3d0431002758bf8fa395ae607674a50024157.zip | |
Diffstat (limited to 'src/mailman/mta/postfix.py')
| -rw-r--r-- | src/mailman/mta/postfix.py | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/mailman/mta/postfix.py b/src/mailman/mta/postfix.py index a4fe0f331..b52ce20a6 100644 --- a/src/mailman/mta/postfix.py +++ b/src/mailman/mta/postfix.py @@ -120,12 +120,8 @@ class LMTP: for mlist in sorted(by_domain[domain], key=sort_key): utility = getUtility(IMailTransportAgentAliases) aliases = list(utility.aliases(mlist)) - longest = max(len(alias) for alias in aliases) - print >> fp, ALIASTMPL.format( - aliases.pop(0), config, - # Add 1 because the bare list name has no dash. - longest + 3) + width = max(len(alias) for alias in aliases) + 3 + print >> fp, ALIASTMPL.format(aliases.pop(0), config, width) for alias in aliases: - print >> fp, ALIASTMPL.format( - alias, config, longest + 3) + print >> fp, ALIASTMPL.format(alias, config, width) print >> fp |
