How do you insert email headers with a Thunderbird extension?

I'm building a Thunderbird extension and would like to add my own header to all outgoing email (e.g. <myext-version: 1.0> ). Any idea how to do this? I know it's possible since this is done in the...

How to send gpg-encrypted emails with attachments using PHP?

I am looking for an easy way in PHP to send GPG encrypted emails with attachments. I understand the individual pieces on how to send emails, how to use gpg command line and how MIME works. But I...

Cascade GPG signing

I'm trying to solve problem with secure mailing lists the idea is: Person A signs (or cipher) mail and sends to groupmail. On server this mail is verified against correct key, signed (ciphered)...

Sign a multipart mail using PGP/MIME

I'm trying to sign a mail using PGP in php. I could bring the boundaries and headers to work correctly but the mail signature isn't valid (as Thunderbirds Enigmail states). My question here is...

OpenPGP encryption in pure PHP

I would like on your website, create a form that sends me a message encrypted in accordance with the OpenPGP standard in order to decrypt them by Thunderbird & Enigmail. Will include an order from...

The recommended way to run binary from Mozilla extension (with std I/O communication)?

I am developing a Firefox extension and would like to call an external binary from it. It would be great if I could use standard input/output to communicate, so I am looking for the best (and...

Thunderbird OpenPGP

I have started to use openPGP in thunderbird (enigmail 1.4) for signing my messages But it is generating something like -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 signed message by...

How to keep Thunderbird (Linux) from displaying photos from GPG keys?

Thunderbird 17.0.7 on Fedora Linux I have the Enigmail plugin installed. Whenever I open a message that was GPG signed by someone whose GPG key includes an image, Thunderbird automatically pops...

Enigmail GPG error - gpg: decryption failed: secret key not available

I have a brand new install of Linux Mint 14. Installed Thunderbird & Enigmail. Generated my key, got a friend's public key, imported it. Sent my friend an encrypted email, he was able to decrypt...

Windows batch file to replace nth line with new string or extract nth line and store string in variable

Please help me construct a Windows batch file to replace the nth line of a file. Either that, or extract the nth line and store it in a variable. This is going to be used for automatically...

PHP: How to distinguish between encrypted and unencrypted email?

I want to create a new email account which only receives encrypted email. Unfortunately, I cannot modify the mail server configuration so I considered checking incoming email every 2 minutes with...

'UNTRUSTED Good signature' message by enigmail on thunderbird after I moved the keys to a different machine

I recently moved my keys to a different machine and configured Enigmail on the Thunderbird on the new machine. Though I am able to encrypt and decrypt files alternatively in both machine now(which...

using bouncy castle to create public PGP key usable by Thunderbird

I created public and private PGP keys using org.bouncycastle.openpgp.PGPKeyRingGenerator. After making a change suggested by GregS, the public key is a .asc file, and the private key is a .skr...

Php-gpg not working for email encryption

I am using the github php-gpg library to encrypt HIPAA data from a form to send to an email client which has a keyring. In Thunderbird I am receiving a fail message: "gpg: decryption failed: No...

Can't import gnupg keys due to ascii conversion?

I have a problem importing my gpg keys onto my macbook pro. This is the output: pg: conversion from `utf-8' to `US-ASCII' failed: Illegal byte sequence gpg: key 5AE36741: public key "Micha\xc5\x82...

What do returned values of PHP gnupg signature verification mean?

I want to verify pgp signed text in PHP. Following PHP documentation and answer to this question i made simple script to test gnupg library. I sent signed email between two email accounts using...

How to extract partial cypher text with openssl or gpg?

I have edited the question after the clarification of Marcus in his commment. I have a question and I am unable to find the answer using Google. I know that in S/MIME encryption or with...

How to upgrade/re-encrypt PGP encrypted emails to a new key?

Scenario: Assume your PGP key pair is compromised and thus you create a new one. (Or for any other reasons, most common that your key pair is expired.) Is there any way to re-encrypt the emails...

emacs says on startup "apply: Spawning child process: Exec format error"

When I reopened my emacs it did not execute my .emacs file but just said "apply: Spawning child process: Exec format error" Situation: win8.1 64-bit, emacs 25.3. Just before, I reinstalled gpg4win...

How do I encrypt an email using a Yubikey?

I am fairly new to PGP encryption. I generated a new key pair last week on a Yubikey, while previously I had only used a private key that I generated on my machine. I use thunderbird enigmail for...

Getting an Error - encryption command failed when sending pgp encrpted email using enigmail

gpg (GnuPG) 2.2.10 libgcrypt 1.8.3``` <br>Running Enigmail version 2.0.8 (20180804-1515) Thunderbird 60.0 (64-bit) - Manjaro 1.0 When I try to send an encrypted email to myself, it just gives...

How to send gpg encrypted email (with attachment) using python

I have a script that I want to email newly generated files in a given folder. I have been able to generate and send emails (without encryption) by using smtplib, email and uu. I also managed to...

Enigmail Error - "no matching secret key found to decrypt message"

After switching the Linux Distributions, gpg changed and I could not encrypt any emails. Even my own. Enigmail gave me "No matching secret key found to decrypt message" error message. Before: $gpg...

disable Thunderbird 78's "Attach my Public Key"

Is there a config editor option to disable automatically attaching my public OpenPGP key (Options → Attach My Public Key) in Thunderbird 78 (which embedded Enigmail addon functionality into the...