diff options
| author | klm | 1998-04-11 18:38:31 +0000 |
|---|---|---|
| committer | klm | 1998-04-11 18:38:31 +0000 |
| commit | 58c2f18ce88f1d450a0e9c2e4b74780374ab34cd (patch) | |
| tree | d9b55f2e8da346324269f182471824928d5f878a /modules/mm_utils.py | |
| parent | 3966961a7e2172fb5d7029f0184af9c86ebe7fca (diff) | |
| download | mailman-58c2f18ce88f1d450a0e9c2e4b74780374ab34cd.tar.gz mailman-58c2f18ce88f1d450a0e9c2e4b74780374ab34cd.tar.zst mailman-58c2f18ce88f1d450a0e9c2e4b74780374ab34cd.zip | |
DeliverToUser(): Aha! 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.
Now i think i have to do the same thing with scripts/deliver, sigh -
it'd be good to get the direct SMTP based mechanism in, but i didn't
have time to work it through, uncover the ramifications...
Diffstat (limited to 'modules/mm_utils.py')
| -rw-r--r-- | modules/mm_utils.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/mm_utils.py b/modules/mm_utils.py index 4cc2d88ae..9dfd6bbdd 100644 --- a/modules/mm_utils.py +++ b/modules/mm_utils.py @@ -5,7 +5,7 @@ message and address munging, a handy-dandy routine to map a function on all the maillists, the Logging routines, and whatever else doesn't belong elsewhere.""" -__version__ = "$Revision: 399 $" +__version__ = "$Revision: 431 $" import sys, string, fcntl, os, random, regsub, re @@ -72,7 +72,8 @@ def DeliverToUser(msg, recipient, add_headers=[]): if os.fork(): return try: - file = os.popen(mm_cfg.SENDMAIL_CMD % (msg.GetSender(), recipient), + file = os.popen(mm_cfg.SENDMAIL_CMD % (msg.GetSender(), + repr(recipient)), 'w') try: msg.headers.remove('\n') |
