aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-09-17 20:46:08 +0000
committerEric S. Raymond <esr@thyrsus.com>2002-09-17 20:46:08 +0000
commit510db4decd2a4db190ebb5d2a541bfd26b272ac1 (patch)
treea9f335e425aa004d08c50354e76994519db0fe9d
parente5b25e06bd8d3946a8168385b8d12cbe98f9550d (diff)
downloadfetchmail-510db4decd2a4db190ebb5d2a541bfd26b272ac1.tar.gz
fetchmail-510db4decd2a4db190ebb5d2a541bfd26b272ac1.tar.bz2
fetchmail-510db4decd2a4db190ebb5d2a541bfd26b272ac1.zip
Don't double @.
svn path=/trunk/; revision=3724
-rwxr-xr-xtorturetest.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/torturetest.py b/torturetest.py
index 48bf4881..9f5d86cc 100755
--- a/torturetest.py
+++ b/torturetest.py
@@ -63,7 +63,10 @@ class TestSite:
"Send test mail to the site."
server = smtplib.SMTP("localhost")
fromaddr = "esr@thyrsus.com"
- toaddr = "%s@%s" % (self.mailname, self.host)
+ if string.find(self.mailname, "@") > -1:
+ toaddr = self.mailname
+ else:
+ toaddr = "%s@%s" % (self.mailname, self.host)
msg = ("From: %s\r\nTo: %s\r\n\r\n" % (fromaddr, toaddr))
if n != None:
msg += `n` + ": "