diff options
| author | klm | 1998-04-11 18:50:13 +0000 |
|---|---|---|
| committer | klm | 1998-04-11 18:50:13 +0000 |
| commit | 771b1446412ce81c21b9a3704e9ca3a1840aa797 (patch) | |
| tree | a647691a4807cadde6e0e06d673d7d705e801354 | |
| parent | 233d7021ea7946ca03ae329df3723a1e19193ef6 (diff) | |
| download | mailman-771b1446412ce81c21b9a3704e9ca3a1840aa797.tar.gz mailman-771b1446412ce81c21b9a3704e9ca3a1840aa797.tar.zst mailman-771b1446412ce81c21b9a3704e9ca3a1840aa797.zip | |
Resolved elusive bug - addresses containing quotes - eg,
gordon_o'hara@vanguard.com - was losing the quote when passed on the
command line to sendmail. Fixed by doing a repr() of th recipient, so
eg gordon_o\'hara@vanguard.com was being passed - and accepted
properly by sendmail.
| -rwxr-xr-x | mail/deliver | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/deliver b/mail/deliver index 134ee35f1..756a6387e 100755 --- a/mail/deliver +++ b/mail/deliver @@ -2,7 +2,7 @@ """Partition a mass delivery into a suitable set of subdeliveries.""" -__version__ = "$Revision: 391 $" +__version__ = "$Revision: 433 $" # Heh, heh, heh, this partition reminds me of the knapsack problem ;-) # Ie, the optimal distribution here is NP Complete. @@ -23,6 +23,7 @@ if not os.fork(): "Collect addrs by major subdomain - e.g. the 'python' in python.org." parts = regsub.split(addr, '[.@]') key = string.join(parts[-2:]) + addr = repr(addr) if not domain_info.has_key(key): domain_info[key] = [addr] else: |
