postfix-to-mailman.py does not recognize lists that end in a control extension

Bug #1290413 reported by Helge Willum Thingvad
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mailman (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Ubuntu 10.04.4
Version: 1:2.1.13-1ubuntu0.2

The postfix-to-mailman.py script does not recognize list names like "mylist-admin" or "mylist-request".

Currently it strips off the control extension (e.g. "-admin", "-owner", etc.) from mlist before checking if it actually exists.

This patch is very simple:
- Before checking for control extension, check if list_exists(mlist)
- Import list_exists from Mailman.Utils a little earlier.

Before applying this patch, trying to post to "mylist-admin" would result in bounce message: "user unknown"

Revision history for this message
Helge Willum Thingvad (helgesdk) wrote :
description: updated
summary: - postfix-to-mailman.py does not recognize lists than end in a command-
- name
+ postfix-to-mailman.py does not recognize lists that end in a control
+ extension
description: updated
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "Check if mlist exists before stripping control extension" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Robie Basak (racb) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.

The postfix-to-mailman.py script appears to come from packaging, rather than the upstream Mailman project. The packaging for mailman in Ubuntu is in sync with Debian at the moment, so this patch would best be forwarded there.

I also note that your patch appears to be against an old version of this script, and your patch doesn't currently apply to the current version. So some modification may be necessary.

Please could you update your patch and forward it to the Debian bug tracking system?

Changed in mailman (Ubuntu):
importance: Undecided → Medium
tags: added: needs-upstream-report
Revision history for this message
Helge Willum Thingvad (helgesdk) wrote :

The patch applies cleanly on the latest mailman for Lucid, mailman_2.1.13-1ubuntu0.2.
Yes, I know... I am running an old distro.

It seems this has been fixed in Debian Wheezy, currently mailman_2.1.15.
Same applies for the latest package in Precise.

I have attached a diff between the current Lucid and Precise versions.
As you can see, not much is different from the patch I made earlier.

Since the changes are minimal, couldn't we just copy the script from Precise and put it in an updated package for Lucid?

Revision history for this message
Thijs Kinkhorst (kink) wrote :

Has been fxed in 2.115-1 and up

Changed in mailman (Ubuntu):
status: New → Fix Released
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.