hpk42 / muacrypt

Autocrypt and more for Mail User Agents
Other
36 stars 15 forks source link

muacrypt can't send emails to IDN email addresses #74

Closed gfa closed 6 years ago

gfa commented 6 years ago

Hi

I tried to send an email to ñoquis@zumbi.xyz and muacrypt sednmail failed, IDN email addresses are uncommon so i was kinda expecting this issue to occur

Traceback (most recent call last):   
  File "/home/gfa/.local/bin//muacrypt", line 11, in <module>
    load_entry_point('muacrypt==0.8.0.dev13', 'console_scripts', 'muacrypt')()
  File "/home/gfa/.local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/home/gfa/.local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/home/gfa/.local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/gfa/.local/lib/python2.7/site-packages/muacrypt/cmdline_utils.py", line 39, in invoke
    return super(MyCommand, self).invoke(ctx)
  File "/home/gfa/.local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/gfa/.local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/home/gfa/.local/lib/python2.7/site-packages/click/decorators.py", line 17, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/gfa/.local/lib/python2.7/site-packages/muacrypt/cmdline.py", line 280, in sendmail
    log_info("piping to: {}".format(" ".join(args)))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 17: ordinal not in range(128)