I'm having some trouble with decryption in mutt + gpg. In most cases when I get encrypted emails its just a empty mail with attached encrypted.asc. My configuration of mutt + gpg recognizes this and prompts me for the password of my private key and simply decrypts it in mutt. This is just how I want it to work.
However a friend of mine is sending me encrypted emails from some kind of PGP Iphone app and at my end is usually looks something like this:
Quote:
Date: Tue, 3 Feb 2015 13:06:17 +0100
From: frend <friend@emaildeluxe.com>
To: me
Subject: something
[-- Attachment #1 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.1K --]
[-- Attachment #2: encrypted.asc --]
[-- Type: application/pgp-encrypted, Encoding: 7bit, Size: 2.5K --]
[-- application/pgp-encrypted is unsupported (use 'v' to view this part) --]
[-- Attachment #3 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.1K --]
|
Where the first attachment always is empty, the second (encrypted.asc) is, as expected the encrypted message and the third is either empty or contains some autogenerated noncrypto signature. The problem is
"application/pgp-encrypted is unsupported". I can save the file encrypted.asc and go to command line and decrypt it manually so there
is nothing wrong with the encryption per se but somehow mutt doesn't want to recognize it.
Here is my configuration of mutt related to gpg:
mutt.rc:
Code:
source ~/.gpg.rc
...
#gpg
set pgp_use_gpg_agent = yes
set pgp_sign_as =
set pgp_timeout = 3600
set crypt_autosign = yes
set crypt_replyencrypt = yes
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign \
--textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor \
--textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt \
--textmode --armor --always-trust --encrypt-to keyyy -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose \
--textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to keeeey -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
set pgp_good_sign="^gpg: Good signature from"
.gpg.rc
Code:
# GnuPG configuration
set pgp_decode_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_verify_command="gpg --status-fd=2 --no-verbose --quiet --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --status-fd=2 %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --quiet --output - %?p?--passphrase-fd 0? --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="/usr/lib/mutt/pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_sign_command="/usr/lib/mutt/pgpewrap gpg %?p?--passphrase-fd 0? --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
set pgp_good_sign="^\\[GNUPG:\\] GOODSIG"
Everything else works just fine, i.e encryption, decryption, making and checking signatures and so on but this problem really annoys me. Is there some kind of fix for this? I'm pretty much a n00b so I would also really appreciate if someone would care to explain why I get this error in the first place.
Version of mutt: 1.5.23
Version of gpg: 1.4.18
Can somebody help me?
SOLVED
This was solved by convincing my friend to change smtp server from apples to hotmail in the ipgmail app. So it seems it didn't have anything to do with mutt or gpg.