mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
When sending email using GMX pause for five minutes between books, to prevent GMX from blocking the account
This commit is contained in:
parent
a9ec36f916
commit
e62986fa41
@ -480,7 +480,7 @@ programs block calibre from opening a connection to send email. Try adding an ex
|
||||
antivirus program.
|
||||
|
||||
.. note::
|
||||
Microsoft/Google can disable your account if you use it to send large
|
||||
Microsoft/Google/Gmx can disable your account if you use it to send large
|
||||
amounts of email. So, when using Hotmail/Gmail to send mail calibre automatically
|
||||
restricts itself to sending one book every five minutes. If you don't mind
|
||||
risking your account being blocked you can reduce this wait interval by going
|
||||
|
@ -63,7 +63,7 @@ class Sendmail(object):
|
||||
opts = email_config().parse()
|
||||
rh = opts.relay_host
|
||||
if rh and (
|
||||
'gmail.com' in rh or 'live.com' in rh):
|
||||
'gmail.com' in rh or 'live.com' in rh or 'gmx.com' in rh):
|
||||
self.rate_limit = tweaks['public_smtp_relay_delay']
|
||||
|
||||
def __call__(self, attachment, aname, to, subject, text, log=None,
|
||||
@ -152,10 +152,8 @@ def email_news(mi, remove, get_fmts, done, job_manager):
|
||||
attachment = files[0]
|
||||
to_s = [account]
|
||||
subjects = [_('News:')+' '+mi.title]
|
||||
texts = [
|
||||
_('Attached is the %s periodical downloaded by calibre.')
|
||||
% (mi.title,)
|
||||
]
|
||||
texts = [_(
|
||||
'Attached is the %s periodical downloaded by calibre.') % (mi.title,)]
|
||||
attachment_names = [ascii_filename(mi.title)+os.path.splitext(attachment)[1]]
|
||||
attachments = [attachment]
|
||||
jobnames = [mi.title]
|
||||
|
Loading…
x
Reference in New Issue
Block a user