Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7855627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:26:34+00:00 2026-06-02T20:26:34+00:00

I have a script that does gpg-encryption of text and mails it out. I

  • 0

I have a script that does gpg-encryption of text and mails it out.

I use MacGPG / Apple Mail, which decrypts it fine, but doesn’t display the text afterwards and instead displays attachments.

These are the mails i construct, what is wrong with it?

...
Date: Wed, 25 Apr 2012 16:01:04 +0200
From: <deleted>
To: <deleted>
Message-ID: <deleted>
Subject: asdf
Mime-Version: 1.0
Content-Type: multipart/encrypted;
 boundary=4b5784e4-fc05-45bb-9a72-e9070a11423c;
 charset=UTF-8;
 protocol="application/pgp-encrypted"
Content-Transfer-Encoding: 7bit


--4b5784e4-fc05-45bb-9a72-e9070a11423c
Date: Wed, 25 Apr 2012 16:01:04 +0200
Mime-Version: 1.0
Content-Type: application/pgp-encrypted;
 charset=UTF-8
Content-Transfer-Encoding: 7bit
Content-ID: <deleted>

Version: 1

--4b5784e4-fc05-45bb-9a72-e9070a11423c
Date: Wed, 25 Apr 2012 16:01:04 +0200
Mime-Version: 1.0
Content-Type: application/octet-stream;
 charset=UTF-8;
 name=msg.asc
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename=msg.asc
Content-ID: <deleted>

-----BEGIN PGP MESSAGE-----
Version: GnuPG v2.0.17 (GNU/Linux)

<PGPDATA>
-----END PGP MESSAGE-----

--4b5784e4-fc05-45bb-9a72-e9070a11423c--
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:26:35+00:00Added an answer on June 2, 2026 at 8:26 pm

    I think your problem here is, that the encrypted data contains only plain text and is not a fully compliant RFC822 mail message.

    As the PGP/MIME RFC 3156 states under section 4, OpenPGP encrypted data

    Before OpenPGP encryption, the data is written in MIME canonical
    format (body and headers).

    Following is an example of an RFC822 compliant mail message, which should
    be processed and displayed as expected.

    Content-Transfer-Encoding: 7bit
    Content-Type: text/plain;
    charset=us-ascii
    
    This is only encrypted!
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ColdFusion script that does: <cfset content = replace(content,&##147;,,all)> Which replaces &147;
I have a PHP script that does basic encryption of a string through the
I have a script that does an ajax request out on a keyup event
i have a script that does a lot of processing on some rows from
Currently we have a script that does maven build + tomcat deploy. Deploying to
I have a bash script that does ssh to a remote machine and executes
I have a PHP script that does the following: Uses file_get_contents() to get content
I have a ruby script that does a few perforce operations (through the scripting
I have a simple script that does some search and replace. This is basically
I have to write a Matlab script that does this: The input is 2

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.