After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 758856 - [GPG] Option to prefer inline sign/encrypt of pure text/plain mails
[GPG] Option to prefer inline sign/encrypt of pure text/plain mails
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: Mailer
3.18.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2015-11-30 15:29 UTC by Fabian Greffrath
Modified: 2015-12-03 07:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Fabian Greffrath 2015-11-30 15:29:26 UTC
Hi there,

it sometimes happens that I send a signed mail with Evolution and get reply from the recipient that my signature is considered invalid. I then resend my mails like this (and then it works)

cat text | gpg --clearsign | mail recipient@mail.org

but of course it would be nice to be able to choose the gpg --clearsign method from within Evolutions mail composer.

Thanks,

Fabian
Comment 1 Milan Crha 2015-11-30 16:22:54 UTC
Thanks for a bug report. Evolution(-data-server) always signs as multipart/signed, it doesn't generate inline signatures. The option you want might change it, if I understand the --clearsign option properly.
Comment 2 Fabian Greffrath 2015-11-30 17:24:14 UTC
I am not a GPG expert, but yes I believe that the --clearsign parameter signs inlined. I think the problems with the current approach arise when e.g. mailing lists add footers to the mails and change some of the header lines?
Comment 3 Milan Crha 2015-11-30 21:02:04 UTC
The message headers are not a problem, especially when they do not change Content-Type and other Content-related headers of the message, but the message list footers can be really a problem. I saw a message encoded in base64, after which was added a message list footer in a plain text. It wasn't a new sub-part, it was just added text at the end of the base64 encoded bytes. I do not think evolution can do anything real with it (there is opened a bug report about it here).
Comment 4 Fabian Greffrath 2015-12-01 09:09:39 UTC
> I do not think evolution can do anything real with it 

AFAIUI for signed messages this problem could be mitigated by offering support for inline-signing.

I am not sure, though, how this support should look like. I mean, it should probably not be possible to select inlined signing as a default. Maybe it should be offered on a per-message base, e.g. with an extra option in the menu "Send this message inline-signed"?
Comment 5 Milan Crha 2015-12-01 18:12:06 UTC
I did some investigation and I'd do it per-account setting. Furthermore, only text/plain messages can be signed/encrypted inline, once it's HTML or has attachments, the Enigmail (Thunderbird extension) is confused with it.

I'm currently facing issue with Content-Transfer-Encoding, the message doesn't want to use it for some reason. Otherwise it seems to work fine.
Comment 6 Fabian Greffrath 2015-12-01 19:29:13 UTC
This is great news Milan, thank you very much!

I have to say that it's really refreshing how responsive, polite, helpful and open-minded you are by answering my requests. Especially given the size of the project you maintain. It's really a breeze to work with someone like you on the other side of the bug tracker. Keep up the good work!
[ Please show this to your employer ;) ]

Thank again,

Fabian
Comment 7 Milan Crha 2015-12-02 18:21:55 UTC
I added the option to the account preferences, at the Security tab. The messages is GPG signed/encrypted inline only if the option is set and if the messages is a pure text/plain. If it has attachments or it is anything else than text/plain, then the sign/encrypt fallbacks to the multipart sign/encrypt.

Created commit b83f07b in eds master (3.19.3+)
Created commit_2c2cec7 in evo master (3.19.3+) [1]

[1] https://git.gnome.org/browse/evolution/commit/?id=2c2cec7
Comment 8 Fabian Greffrath 2015-12-03 07:57:55 UTC
Excellent!