mail fails to import attached key
As user Gil1 reports on irc, the following test mail fails to get the attached key imported into keymanager.
--- --- File "/home/vagrant/user-agent-venv/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 588, in _runCallbacks current.result = callback(current.result, *args, **kw) File "/home/vagrant/user-agent-venv/src/leap.mail/src/leap/mail/incoming/service.py", line 614, in _extract_keys da = self._extract_attached_key(msg.get_payload(), fromAddress) File "/home/vagrant/user-agent-venv/src/leap.mail/src/leap/mail/incoming/service.py", line 686, in _extract_attached_key address=address) File "/home/vagrant/user-agent-venv/src/leap.keymanager/src/leap/keymanager/__init__.py", line 750, in put_raw_key pubkey.validation = validation exceptions.AttributeError: 'NoneType' object has no attribute 'validation'
the error seems to be in the extract_attached_key function, although keymanager should assert that pubkey is not null before accessing its methods.
(from redmine: created on 2015-09-02, blocks #7454 (closed))