On 11/05/2015 12:31 PM, Mark Sapiro wrote: > On 11/05/2015 08:41 AM, Ruben Safir wrote: >> >> Which file am I patching? Is this a normal setup? I pulled it from >> opensuse. >> >> >> ruben@www:~> locate Mailman/Message.py >> /usr/lib/mailman/Mailman/Message.py >> /usr/lib/mailman/Mailman/Message.pyc > > The above two are probably what you want. > /usr/lib/mailman/Mailman/Message.py is the source to patch. After you > apply the patch and restart Mailman, Python will automatically detect > that the .py is newer and recompile it into the .pyc. > > >> /usr/local/apache/conf/mailman/Mailman/Message.py >> /usr/local/apache/conf/mailman/Mailman/Message.pyc > > This is very strange. I've never seen anything like it. My best guess is > that for some reason, the openSUSE package installs a separate Mailman/ > directory for use by the web server. If that is the case, this one > doesn't need to be patched because the patch doesn't affect anything in > the web UI. > > To be sure, I'd need to see the apache configuration, the MTA > configuration and the contents of the directories. > > I did quickly look at > <https://build.opensuse.org/package/view_file/openSUSE:Leap:42.1/mailman/mailman-apache2.conf?expand=1>, > <https://build.opensuse.org/package/view_file/server:mail/mailman/mailman-apache2.conf?expand=1>, > etc. and they all refer to /usr/lib/mailman so I have no idea what > /usr/local/apache/conf/mailman/ is about. > > The bottom line is the Message.py you need to patch is the one that's > imported by the qrunners, IncomingRunner and OutgoingRunner in > particular. Is there even a > /usr/local/apache/conf/mailman/Mailman/Queue/ directory at all? > > If the two Message.py files are the same, it wouldn't hurt to patch both. > www:/etc/postfix # grep mailman main.cf #alias_maps = "hash:/etc/aliases, hash:/var/lib/mailman/data/aliases" alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
www:/etc/postfix # grep mailman ./* ./main.cf:#alias_maps = "hash:/etc/aliases, hash:/var/lib/mailman/data/aliases" ./main.cf:alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases ./master.cf:#mailman unix - n n - - pipe ./master.cf:# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ./master.cf.rpmnew:#mailman unix - n n - - pipe ./master.cf.rpmnew:# flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py evidently it is under /usr/lib/mailman/bin/ ? ------------------------------------------------------ Mailman-Users mailing list [email protected] https://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://wiki.list.org/x/AgA3 Security Policy: http://wiki.list.org/x/QIA9 Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ Unsubscribe: https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
