From 0e1ed2edbccbbbbdf34ebf21b841df49e1e8b7fe Mon Sep 17 00:00:00 2001 From: Ivan Alejandro Date: Wed, 22 Jan 2014 11:54:53 -0300 Subject: Start sending from the first subject. --- src/send-mail-batch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/send-mail-batch.py b/src/send-mail-batch.py index fceea74..17c9543 100755 --- a/src/send-mail-batch.py +++ b/src/send-mail-batch.py @@ -191,10 +191,10 @@ gmail = GMail(FROM, SECRET) print "Sending {0} mails batch...".format(MAX_MAILS) -count = 1 -while count <= MAX_MAILS: +count = 0 +while count < MAX_MAILS: idx = (count % len(lorem_subjects)) - subject = "[TEST] {0:03} - {1}".format(count, lorem_subjects[idx]) + subject = "[TEST] {0:03} - {1}".format(count+1, lorem_subjects[idx]) print "Sending '{0}' ... ".format(subject), try: problems = send_test_mail(subject) -- cgit v1.2.3