diff options
| author | viega | 1998-06-02 13:35:09 +0000 |
|---|---|---|
| committer | viega | 1998-06-02 13:35:09 +0000 |
| commit | b8e1c7a4f1f3772937316a84e035ea8d5c83b9d7 (patch) | |
| tree | ecf693a6ed4dfa53a338cbcd48a01aba6c28cb6e | |
| parent | 4e00b9279fada70126ee6d23bdced2991ee947a8 (diff) | |
| download | mailman-b8e1c7a4f1f3772937316a84e035ea8d5c83b9d7.tar.gz mailman-b8e1c7a4f1f3772937316a84e035ea8d5c83b9d7.tar.zst mailman-b8e1c7a4f1f3772937316a84e035ea8d5c83b9d7.zip | |
Fixed a typo which only is a problem if there is 1 group.
Also, fixed the popen to contact transport to invoke python
instead of relying on the file to be executable.
| -rwxr-xr-x | mail/deliver | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/deliver b/mail/deliver index 250022e25..32c86972e 100755 --- a/mail/deliver +++ b/mail/deliver @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -import sys +#import sys #sys.stderr = open("/home/mailman/mailman/logs/debug","a+") #sys.stdout = sys.stderr """Partition a mass delivery into a suitable set of subdeliveries.""" @@ -32,7 +32,7 @@ if not os.fork(): import mm_cfg def ContactTransport(sender, recip, text): cmd = os.path.join(mm_cfg.SCRIPTS_DIR, "contact_transport") - file = os.popen(string.join([cmd,sender]+recip," "), 'w') + file = os.popen(string.join([mm_cfg.PYTHON,cmd,sender]+recip," "), 'w') file.write(text) file.close() domain_info = {} @@ -74,7 +74,7 @@ if not os.fork(): def ContactTransportForEachGroup(sender, groups, text): if len(groups) == 1: - ContactTransport(sender,group,text) + ContactTransport(sender,groups[0],text) return for group in groups: if not os.fork(): |
