mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 04:03:52 +02:00
...
This commit is contained in:
parent
f8509fe826
commit
86691f22a2
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ def __call__(self, attachment, aname, to, subject, text, log=None,
|
|||
def sendmail(self, attachment, aname, to, subject, text, log):
|
||||
logged = False
|
||||
while time.time() - self.last_send_time <= self.rate_limit:
|
||||
if not logged:
|
||||
if not logged and self.rate_limit > 0:
|
||||
log('Waiting %s seconds before sending, to avoid being marked as spam.\nYou can control this delay via Preferences->Tweaks' % self.rate_limit)
|
||||
logged = True
|
||||
time.sleep(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue