mail-news gatewaying
![](https://secure.gravatar.com/avatar/9267830be0ab4ed8346548680e4cc0bc.jpg?s=120&d=mm&r=g)
[Please cc: me since I'm not subscribed to this list]
I installed 1.0b6 on a Solaris 2.5.1 machine (running python 1.5.1), running a mailing list that was getting gateway'ed to a local newsgroup.
I was having problems with the getting posts to the associated newsgroup relayed back to the mailing lists. Eventually the problem was tracked down to the PollNewsGroup subroutine in the GatewayManager.py script. When this is opening a pipe to the "post" script using
file = os.popen("%s %s nonews" %
(os.path.join(mm_cfg.SCRIPTS_DIR,
"post"), self._internal_name), "w")
it wouldn't work (the pipe, that is), and the "post" script would never get called. The way we currently have it workin is by calling it through the python executable:
file = os.popen("%s %s nonews" %
("/usr/local/bin/python /mail/mailman/scripts/post",
self._internal_name), "w")
Currently the paths to python and post are hardcoded, but they don't have to be. Is this something that is a general problem, or one that is specific to our install?
Thanks Viren
Viren R. Shah, {viren @ rstcorp . com} "Hi, I'm a hero, but I can't tell you why. It's classified." -- Miles muses on one of the disadvantages of a double life (Lois McMaster Bujold, Cetaganda)
![](https://secure.gravatar.com/avatar/ab1c33fc0fd591a0ea174155233a6a51.jpg?s=120&d=mm&r=g)
"VRS" == Viren R Shah <viren@rstcorp.com> writes:
VRS> I was having problems with the getting posts to the
VRS> associated newsgroup relayed back to the mailing
VRS> lists. Eventually the problem was tracked down to the
VRS> PollNewsGroup subroutine in the GatewayManager.py
VRS> script. When this is opening a pipe to the "post" script
VRS> using
| file = os.popen("%s %s nonews" %
| (os.path.join(mm_cfg.SCRIPTS_DIR,
| "post"), self._internal_name), "w")
VRS> it wouldn't work (the pipe, that is), and the "post" script
VRS> would never get called. The way we currently have it workin
VRS> is by calling it through the python executable:
| file = os.popen("%s %s nonews" %
| ("/usr/local/bin/python /mail/mailman/scripts/post",
| self._internal_name), "w")
VRS> Currently the paths to python and post are hardcoded, but
VRS> they don't have to be. Is this something that is a general
VRS> problem, or one that is specific to our install?
I believe the problem is that scripts/post is generally *not* installed with execute bit set. You chnge will work, or you could just turn on the execute bit on the script. I'm going to install your change into the source, but I'll generalize the path calculations (and probably do some reformmatting and general cleanup of the code).
Thanks. -Barry
participants (2)
-
Barry A. Warsaw
-
Viren R. Shah