Discussion:
encrypt to self with gpgme?
Alexander Dahl
2007-10-17 13:41:36 UTC
Permalink
Hi everyone,

I have a self configured mutt 1.5.16 with encryption via gpgme:

-CRYPT_BACKEND_CLASSIC_PGP -CRYPT_BACKEND_CLASSIC_SMIME
+CRYPT_BACKEND_GPGME

That works fine despite of this bug: http://dev.mutt.org/trac/ticket/2913

I noticed today that there is no "encrypt to self" functionality with this
setup:

set crypt_autoencrypt = no
set crypt_autopgp = yes
set crypt_autosign = yes # default: no
set crypt_autosmime = no # default: yes
set crypt_replyencrypt = yes
set crypt_replysign = yes # default: no
set crypt_replysignencrypted = yes # default: no
set crypt_timestamp = yes
set crypt_use_gpgme = yes # default: no
set crypt_verify_sig = yes
set pgp_auto_decode

I thought this where all options regarding GnuPG. I want to use "encrypt to
self" with mutt but I don't find any config option. Did I miss some?

Assuming there is no such option, can I achieve this behaviour by some kind
of hook?

Greets
Alex
--
***** http://www.lespocky.de *******************************************
GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0
Alexander Dahl
2007-10-24 19:08:52 UTC
Permalink
Is there at least anyone but me who uses gpgme instead of classic method
with this error-prone commandline config? ;)

Greets
Alex
--
Freiheit statt Angst -- Für die Grundrechte!
Bundesweite, dezentrale Demos gegen die Vorratsdatenspeicherung
06.11. in Magdeburg, Haltestelle Goldschmiedebrücke 16:00 bis 19:00 Uhr
- Bringt Laternen, Kerzen und Grundgesetze mit! -
Letzte Chance vor der Verabschiedung durch den Bundestag:
http://www.freiheitstattangst.de
Christoph Ludwig
2007-10-25 10:26:04 UTC
Permalink
Post by Alexander Dahl
Is there at least anyone but me who uses gpgme instead of classic method
with this error-prone commandline config? ;)
actually, you configure it in the gnupg config files rather than .muttrc
(don't ask me why). Add to gpgsm.conf a line

encrypt-to 0x................

whith the dots replaced by the fingerprint of your key.

At least, that is how it is supposed to work. Currently, my mutt/gpgme
configuration is messed up for reasons I had no time yet to investigate, so I
cannot doublecheck.

HTH

Christoph
--
FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany
Alexander Dahl
2007-10-25 16:07:14 UTC
Permalink
Hi Christoph,
Post by Christoph Ludwig
actually, you configure it in the gnupg config files rather than .muttrc
(don't ask me why). Add to gpgsm.conf a line
encrypt-to 0x................
But doesn't that mean every encryption, regardless if in mutt or not, is
done additionally to my key? That's a behaviour I don't want. That would
mean e.g. every file I encrypt with gpg on command line would be
additionally encrypted with my key. I want to use "encrypt to self" as an
per application option. IIRC this is how Thunderbird/Enigmail works at least
with Windows. If mutt is not able to do this, it's worth a feature request.
Where do I have to leave such? trac.mutt.org?

Greets
Alex
--
***** http://www.lespocky.de *******************************************
GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0
Christoph Ludwig
2007-10-25 16:40:17 UTC
Permalink
Hi Alex,
Post by Alexander Dahl
Post by Christoph Ludwig
actually, you configure it in the gnupg config files rather than .muttrc
(don't ask me why). Add to gpgsm.conf a line
encrypt-to 0x................
But doesn't that mean every encryption, regardless if in mutt or not, is
done additionally to my key? That's a behaviour I don't want. That would
mean e.g. every file I encrypt with gpg on command line would be
additionally encrypted with my key.
I never understood how it comes that gpgme encrypts only FCC with my
key. Since gnupg is a crypto suite, not a mail user agent, I'd be surprised if
it has a notion of "FCC", but what do I know... I was never persistent enough
to dig through the code.

To come to my point: I simply don't know if it also affects the output of the
gpg command line interface.
Post by Alexander Dahl
I want to use "encrypt to self" as an
per application option. IIRC this is how Thunderbird/Enigmail works at least
with Windows. If mutt is not able to do this, it's worth a feature request.
Where do I have to leave such? trac.mutt.org?
I think you submit feature requests at <URL:http://dev.mutt.org/trac/>.

Regards

Christoph
--
FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany
Alexander Dahl
2007-10-26 10:55:07 UTC
Permalink
Hi Christoph,
Post by Christoph Ludwig
I never understood how it comes that gpgme encrypts only FCC with my
key. Since gnupg is a crypto suite, not a mail user agent, I'd be surprised if
it has a notion of "FCC", but what do I know... I was never persistent enough
to dig through the code.
In fact my fcc is not encrypted with my key, FCC goes to =Sent which is in
fact an IMAP folder in IMAP root:

set record = +Sent

But:

[-- Fehler: Entschlüsselung fehlgeschlagen: Enschlüsselung fehlgeschlagen
--]
Post by Christoph Ludwig
To come to my point: I simply don't know if it also affects the output of the
gpg command line interface.
You said gpgsm.conf, that's not ~/.gnupg/gpg.conf -- does that mean, there
is another config for gpgme and the config for gpg is not the only one?
Post by Christoph Ludwig
I think you submit feature requests at <URL:http://dev.mutt.org/trac/>.
Will do this later, too busy these days. :-(

Greets
Alex
--
***** http://www.lespocky.de *******************************************
GnuPG-FP: 02C8 A590 7FE5 CA5F 3601 D1D5 8FBA 7744 CC87 10D0
Christoph Ludwig
2007-10-26 11:40:33 UTC
Permalink
Hi Alex,
Post by Alexander Dahl
You said gpgsm.conf, that's not ~/.gnupg/gpg.conf -- does that mean, there
is another config for gpgme and the config for gpg is not the only one?
yes, each part of gnupg has its own config file. (That's true for gnuppg 2.x,
at least.) For gpgsm, e.g., have a look at
<URL:http://www.gnupg.org/documentation/manuals./gnupg/GPGSM-Configuration.html>.

Regards

Christoph
--
FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany
Alexander Dahl
2007-10-26 14:52:30 UTC
Permalink
Post by Christoph Ludwig
I think you submit feature requests at <URL:http://dev.mutt.org/trac/>.
Done: http://dev.mutt.org/trac/ticket/2973

Greets
Alex
--
Freiheit statt Angst -- Für die Grundrechte!
Bundesweite, dezentrale Demos
06.11. in Magdeburg Haltestelle Goldschmiedebrücke 16:00 bis 19:00 Uhr
- Bringt Laternen, Kerzen und Grundgesetze mit! -
Letzte Chance vor der Verabschiedung durch den Bundestag:
http://www.freiheitstattangst.de
Rocco Rutte
2007-10-26 15:25:30 UTC
Permalink
Hi,
Post by Christoph Ludwig
Post by Alexander Dahl
Is there at least anyone but me who uses gpgme instead of classic method
with this error-prone commandline config? ;)
Mutt comes with pgp and gpg samples that simply work out of the box...
:)
Post by Christoph Ludwig
actually, you configure it in the gnupg config files rather than .muttrc
(don't ask me why). Add to gpgsm.conf a line
encrypt-to 0x................
whith the dots replaced by the fingerprint of your key.
Well, this is one way. The other is to change the sample config for
gnupg to include -R <yourid> so that you have it on a per-application
basis.

With mutt, of course you even change these settings as usual via hooks
to include -R or not (using handy $my_ variables this is easy).

Rocco
Christoph Ludwig
2007-10-26 18:20:28 UTC
Permalink
Post by Rocco Rutte
Post by Christoph Ludwig
Post by Alexander Dahl
Is there at least anyone but me who uses gpgme instead of classic method
with this error-prone commandline config? ;)
Mutt comes with pgp and gpg samples that simply work out of the box...
:)
Post by Christoph Ludwig
actually, you configure it in the gnupg config files rather than .muttrc
(don't ask me why). Add to gpgsm.conf a line
encrypt-to 0x................
whith the dots replaced by the fingerprint of your key.
Well, this is one way. The other is to change the sample config for
gnupg to include -R <yourid> so that you have it on a per-application
basis.
With mutt, of course you even change these settings as usual via hooks
to include -R or not (using handy $my_ variables this is easy).
which configuration samples do you refer to? The one I found is in
contrib/gpg.rc. If I am not mistaken, then this sample shows how to
configure the classic gpg backend. However, the OP explicitly asked for a
solution using the gpgme backend.

Regards

Christoph
--
FH Worms - University of Applied Sciences
Fachbereich Informatik / Telekommunikation
Erenburgerstr. 19, 67549 Worms, Germany
Loading...