Encrypted E-Mails from Hotmail are not parseable
Hotmail/Outlook.com seems to take every email apart and reassembles them once being submitted to them.
Such emails (although sent through e.g. Thunderbird/Enigmail and hence properly crafted according to rfc3156) will arrive as mime/mixed and not anymore as multipart/encrypted.
Hence mail-gpg tries to parse them as inline which will fail.
Relevant part of the wrongly crafted MIME mail from hotmail:
... some more headers...
Content-Type: multipart/mixed;
boundary="_003_MIME_"
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 May 2017 00:00:00.0000
(UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: dajfkajfkljaklfj
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HEADERSTAMP
--_003_MIME_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
--_003_MIME_
Content-Type: application/pgp-encrypted;
name="PGPMIME version identification"
Content-Description: PGP/MIME version identification
Content-Disposition: attachment; filename="PGPMIME version identification";
size=12; creation-date="Mon, 29 May 2017 00:00:00 GMT";
modification-date="Mon, 29 May 2017 00:00:00 GMT"
Content-ID: <ID@eurprd02.prod.outlook.com>
Content-Transfer-Encoding: base64
version info
--_003_MIME_
Content-Type: application/octet-stream; name="encrypted.asc"
Content-Description: OpenPGP encrypted message.asc
Content-Disposition: attachment; filename="encrypted.asc"; size=3306;
creation-date="Mon, 29 May 2017 00:00:00 GMT";
modification-date="Mon, 29 May 2017 00:00:00 GMT"
Content-ID: <ID@eurprd02.prod.outlook.com>
Content-Transfer-Encoding: base64
some base64 content
... content continues...
Error stacktrace:
No data
/opt/schleuder/bundler/ruby/2.3.0/gems/gpgme-2.0.12/lib/gpgme/ctx.rb:435:in `decrypt_verify'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/gpgme_helper.rb:54:in `block in decrypt'
/opt/schleuder/bundler/ruby/2.3.0/gems/gpgme-2.0.12/lib/gpgme/ctx.rb:79:in `new'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/gpgme_helper.rb:51:in `decrypt'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/inline_decrypted_message.rb:24:in `block (3 levels) in setup'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-2.6.5/lib/mail/message.rb:133:in `instance_eval'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-2.6.5/lib/mail/message.rb:133:in `initialize'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/inline_decrypted_message.rb:20:in `new'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/inline_decrypted_message.rb:20:in `block (2 levels) in setup'
/opt/rh/rh-ruby23/root/usr/share/ruby/delegate.rb:341:in `each'
/opt/rh/rh-ruby23/root/usr/share/ruby/delegate.rb:341:in `block in delegating_block'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/inline_decrypted_message.rb:19:in `block in setup'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-2.6.5/lib/mail/message.rb:133:in `instance_eval'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-2.6.5/lib/mail/message.rb:133:in `initialize'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/inline_decrypted_message.rb:17:in `new'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/inline_decrypted_message.rb:17:in `setup'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg.rb:136:in `decrypt_pgp_inline'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg.rb:68:in `decrypt'
/opt/schleuder/bundler/ruby/2.3.0/gems/mail-gpg-0.3.1/lib/mail/gpg/message_patch.rb:67:in `decrypt'
/opt/schleuder/lib/schleuder/mail/message.rb:13:in `setup'
/opt/schleuder/lib/schleuder/runner.rb:11:in `run'
/opt/schleuder/lib/schleuder/cli.rb:35:in `work'
/opt/schleuder/bundler/ruby/2.3.0/gems/thor-0.19.4/lib/thor/command.rb:27:in `run'
/opt/schleuder/bundler/ruby/2.3.0/gems/thor-0.19.4/lib/thor/invocation.rb:126:in `invoke_command'
/opt/schleuder/bundler/ruby/2.3.0/gems/thor-0.19.4/lib/thor.rb:369:in `dispatch'
/opt/schleuder/bundler/ruby/2.3.0/gems/thor-0.19.4/lib/thor/base.rb:444:in `start'
/opt/schleuder/bin/schleuder:12:in `<top (required)>'
/opt/schleuder/bundler/ruby/2.3.0/bin/schleuder:23:in `load'
/opt/schleuder/bundler/ruby/2.3.0/bin/schleuder:23:in `<main>'