diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2005-07-10 22:34:08 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2005-07-10 22:34:08 +0000 |
commit | 67e8ccf0353e5dacbdb4b925471e00bf53f12285 (patch) | |
tree | 009fae47e35e5e1ed3c782750ffdfce629ef39ac /dist-tools | |
parent | 97a4f74adfc1b26a065253aae2a9190385a6c3f8 (diff) | |
download | fetchmail-67e8ccf0353e5dacbdb4b925471e00bf53f12285.tar.gz fetchmail-67e8ccf0353e5dacbdb4b925471e00bf53f12285.tar.bz2 fetchmail-67e8ccf0353e5dacbdb4b925471e00bf53f12285.zip |
Override LC_ALL so that a parsable Date results.
Override formatting, don't start mbox entry with a blank line.
Bump delay to 30 s. Update localuser/fromaddr.
svn path=/trunk/; revision=4109
Diffstat (limited to 'dist-tools')
-rwxr-xr-x | dist-tools/test/torturetest.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/dist-tools/test/torturetest.py b/dist-tools/test/torturetest.py index 0b557382..e55907a2 100755 --- a/dist-tools/test/torturetest.py +++ b/dist-tools/test/torturetest.py @@ -1,17 +1,20 @@ #!/usr/bin/env python import sys, getopt, os, smtplib, commands, time, gtk, gtk.glade +os.environ['LC_ALL'] = 'C' ### CUSTOMIZE THESE! # Mail address to use in From: header, user@host.domain format -fromaddr = "esr@thyrsus.com" +fromaddr = "ma+fetchmail@dt.e-technik.uni-dortmund.de" # local user name to receive mail as -localuser = "esr" +localuser = "emma" # server to inject mail into smtpserver = "localhost" # delay after sending mail -delay = 5 +delay = 30 +### END OF REQUIRED CUSTOMIZATION +# only used for the GUI: protocols = ('POP3', 'APOP', 'IMAP',) class TestSite: @@ -107,7 +110,7 @@ class TestSite: try: ofp = open(TestSite.temp, "w") if logfile: - mda = "(echo; echo \'From torturetest\' `date`;cat) >>TEST.LOG" + mda = "(echo \'From torturetest\' `date`;cat -;echo) >>TEST.LOG" else: mda = 'cat' ofp.write('defaults mda "%s"\n' % mda) @@ -291,9 +294,9 @@ if __name__ == "__main__": site.testmail(i) i+= 1 # Send test mail to each site - sys.stdout.write("Delaying to give the test mail time to land...") + print "Delaying to give the test mail time to land..." time.sleep(delay) - sys.stdout.write("here we go:\n") + print "Here we go:" # Fall through elif switch == "-v": # Display the test output |