diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-09-17 20:46:08 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-09-17 20:46:08 +0000 |
commit | 510db4decd2a4db190ebb5d2a541bfd26b272ac1 (patch) | |
tree | a9f335e425aa004d08c50354e76994519db0fe9d | |
parent | e5b25e06bd8d3946a8168385b8d12cbe98f9550d (diff) | |
download | fetchmail-510db4decd2a4db190ebb5d2a541bfd26b272ac1.tar.gz fetchmail-510db4decd2a4db190ebb5d2a541bfd26b272ac1.tar.bz2 fetchmail-510db4decd2a4db190ebb5d2a541bfd26b272ac1.zip |
Don't double @.
svn path=/trunk/; revision=3724
-rwxr-xr-x | torturetest.py | 5 |
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` + ": " |