E-mailing has problems on French Windows installation

Bug #1256549 reported by Michel Iwaniec on 2013-11-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned

Bug Description

Calibre version: 1.13
Windows 7 family edition (64-bit)

Trying to use the functionality to e-mail files directly to a Kindle device fails. From reading the error log, it seems like the issue could be that the "administrator" account user name is called "propriétaire" on a French Windows installation, and the default name of the computer thus happens to be "propriétaire-PC", which has one non-ascii character.

Starting job: Email Calibre Quick Start Guide to <email address hidden>
connect: (u'smtp.wanadoo.fr', 25)
connect: (u'smtp.wanadoo.fr', 25)
reply: '220 mwinf5d66 ME ESMTP server ready\r\n'
reply: retcode (220); Msg: mwinf5d66 ME ESMTP server ready
connect: mwinf5d66 ME ESMTP server ready
send: 'ehlo propri\xe9taire-PC.home\r\n'
reply: '500 5.5.2 bad chars in command\r\n'
reply: retcode (500); Msg: 5.5.2 bad chars in command
send: 'helo propri\xe9taire-PC.home\r\n'
reply: '450 4.7.0 too many invalid commands (closing session)\r\n'
reply: retcode (450); Msg: 4.7.0 too many invalid commands (closing session)

Sending failed...

Traceback (most recent call last):
  File "site-packages\calibre\gui2\email.py", line 43, in run
  File "site-packages\calibre\gui2\email.py", line 124, in sendmail
  File "site-packages\calibre\utils\smtp.py", line 108, in sendmail
  File "site-packages\calibre\utils\smtplib.py", line 637, in starttls
  File "site-packages\calibre\utils\smtplib.py", line 539, in ehlo_or_helo_if_needed
SMTPHeloError: (450, '4.7.0 too many invalid commands (closing session)')

Retrying in 1 seconds...

Waiting 1 seconds before sending, to avoid being marked as spam.
You can control this delay via Preferences->Tweaks
connect: (u'smtp.wanadoo.fr', 25)
connect: (u'smtp.wanadoo.fr', 25)
reply: '220 mwinf5d66 ME ESMTP server ready\r\n'
reply: retcode (220); Msg: mwinf5d66 ME ESMTP server ready
connect: mwinf5d66 ME ESMTP server ready
send: 'ehlo propri\xe9taire-PC.home\r\n'
reply: '500 5.5.2 bad chars in command\r\n'
reply: retcode (500); Msg: 5.5.2 bad chars in command
send: 'helo propri\xe9taire-PC.home\r\n'
reply: '450 4.7.0 too many invalid commands (closing session)\r\n'
reply: retcode (450); Msg: 4.7.0 too many invalid commands (closing session)

Sending failed...

Traceback (most recent call last):
  File "site-packages\calibre\gui2\email.py", line 43, in run
  File "site-packages\calibre\gui2\email.py", line 124, in sendmail
  File "site-packages\calibre\utils\smtp.py", line 108, in sendmail
  File "site-packages\calibre\utils\smtplib.py", line 637, in starttls
  File "site-packages\calibre\utils\smtplib.py", line 539, in ehlo_or_helo_if_needed
SMTPHeloError: (450, '4.7.0 too many invalid commands (closing session)')

Job: "Email Calibre Quick Start Guide to <email address hidden>" failed with error:
Traceback (most recent call last):
  File "site-packages\calibre\gui2\threaded_jobs.py", line 83, in start_work
  File "site-packages\calibre\gui2\email.py", line 98, in __call__
SMTPHeloError: (450, '4.7.0 too many invalid commands (closing session)')

Called with args: (u'C:\\Users\\PROPRI~1\\AppData\\Local\\Temp\\calibre_sqkqxh\\pmcva0caltmpfmt.mobi', u'Calibre Quick Start Guide - John Schember.mobi', <email address hidden>', u'E-book: Calibre Quick Start Guide', u'Attached, you will find the e-book\n\nCalibre Quick Start Guide\n\tby John Schember\n\nin the MOBI format.') {u'notifications': <Queue.Queue instance at 0x06F9DBE8>, u'abort': <threading._Event object at 0x06F97F70>, u'log': <calibre.utils.logging.GUILog object at 0x06F97FB0>}

Fixed in branch master. The fix will be in the next release. calibre is usually released every Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers