LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2015, 04:38 PM   #1
iwtbf
Member
 
Registered: Apr 2009
Location: cybernetic space
Distribution: debian
Posts: 42

Rep: Reputation: 1
Question Mutt + gpg decryption fails, "application/pgp-encrypted is unsupported"


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.

Last edited by iwtbf; 02-21-2015 at 07:38 AM. Reason: solved
 
  


Reply

Tags
gnupg, gpg, mutt, pgp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GPG(or Mutt) creates a "no" file in my homedir kyr0 Linux - Security 1 05-31-2013 03:00 PM
[SOLVED] Mutt does not change the "unread" flag on the IMAP server and other Mutt questions TobiSGD Linux - Software 1 10-09-2012 08:44 AM
glibc 2.9 "make check" fails on rt/tst-cputimer with "timer sig[12] invoked to soon" shachter Linux - Software 2 02-14-2009 01:24 PM
Mutt question: "How can I configure mutt for not automarking as read??" xowl Linux - Software 0 09-25-2007 09:09 AM
gpg encrypted files -- recovery/decryption? 187807 Slackware 2 03-24-2005 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration