Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
schleuder
schleuder
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 101
    • Issues 101
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 1
    • Merge Requests 1
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • schleuder
  • schleuderschleuder
  • Issues
  • #368

Closed
Open
Opened Aug 20, 2018 by ng@n_gOwner

HTML only mails with GPG data throw No Data exception

For a mail with the following structure we received a No Data error:

From: xy <xy@example.com
Message-ID: <xxxx>
Date: Tue, 31 Jul 2018 12:13:38 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101
 Thunderbird/52.9.1
MIME-Version: 1.0
In-Reply-To: <yyyy>
Content-Type: text/html; charset=windows-1252
Content-Language: de-DE
Content-Transfer-Encoding: 8bit
X-Authenticated-Sender: xy
X-Virus-Scanned: Clear (ClamAV 0.100.0/24799/Tue Jul 31 10:44:57 2018)

<html style="direction: ltr;">
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
    <style type="text/css">body p { margin-bottom: 0cm; margin-top: 0pt; } </style>
  </head>
  <body bidimailui-detected-decoding-type="latin-charset"
    style="direction: ltr;" text="#000000" bgcolor="#FFFFFF">
    <br>
    -----BEGIN PGP MESSAGE-----<br>
    Charset: windows-1252<br>
    Version: GnuPG v2<br>
    <br>
    cnakanhfcjahfnckjahfckjahfcjahnfckjha<br>
[...]
    fkmjfxkajmfxkajfkj==<br>
    =BXCG<br>
    -----END PGP MESSAGE-----<br>
    <br>
  </body>
</html>

Error

No data
/opt/schleuder/bundler/ruby/2.4.0/gems/gpgme-2.0.16/lib/gpgme/ctx.rb:435:in `decrypt_verify'
/opt/schleuder/bundler/ruby/2.4.0/gems/mail-gpg-0.4.0/lib/mail/gpg/gpgme_helper.rb:54:in `block in decrypt'
/opt/schleuder/bundler/ruby/2.4.0/gems/gpgme-2.0.16/lib/gpgme/ctx.rb:79:in `new'
/opt/schleuder/bundler/ruby/2.4.0/gems/mail-gpg-0.4.0/lib/mail/gpg/gpgme_helper.rb:51:in `decrypt'
/opt/schleuder/bundler/ruby/2.4.0/gems/mail-gpg-0.4.0/lib/mail/gpg/inline_decrypted_message.rb:70:in `setup'
/opt/schleuder/bundler/ruby/2.4.0/gems/mail-gpg-0.4.0/lib/mail/gpg.rb:136:in `decrypt_pgp_inline'
/opt/schleuder/bundler/ruby/2.4.0/gems/mail-gpg-0.4.0/lib/mail/gpg.rb:68:in `decrypt'
/opt/schleuder/bundler/ruby/2.4.0/gems/mail-gpg-0.4.0/lib/mail/gpg/message_patch.rb:67:in `decrypt'
/opt/schleuder/lib/schleuder/mail/message.rb:26:in `setup'
/opt/schleuder/lib/schleuder/runner.rb:15:in `run'
/opt/schleuder/lib/schleuder/cli.rb:35:in `work'
/opt/schleuder/bundler/ruby/2.4.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
/opt/schleuder/bundler/ruby/2.4.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
/opt/schleuder/bundler/ruby/2.4.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
/opt/schleuder/bundler/ruby/2.4.0/gems/thor-0.20.0/lib/thor/base.rb:466:in `start'
/opt/schleuder/bin/schleuder:13:in `<top (required)>'
/opt/schleuder/bundler/ruby/2.4.0/bin/schleuder:23:in `load'
/opt/schleuder/bundler/ruby/2.4.0/bin/schleuder:23:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in `run'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in `exec'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/opt/rh/rh-ruby24/root/usr/share/gems/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'
/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `load'
/opt/rh/rh-ruby24/root/usr/bin/bundle:22:in `<main>'
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: schleuder/schleuder#368