segler-alex / Pidgin-GPG

GPG plugin for Pidgin
GNU General Public License v3.0
99 stars 35 forks source link

Possibility to enable/disable encryption in each chatsession #25

Open synthor opened 8 years ago

synthor commented 8 years ago

There is no possibility to enable or disable encryption in each chatsession.

When I start Pidgin it asks for the passphrase, I click cancel because I don't want to send any encrypted message. If I don't send a message to anyone the passphrase dialoge will appear again after some time (30-60 seconds?). I click cancel again. Then time x later I'll text a buddy via xmpp who has the ability for encrypted conversation but I still don't want to encrypt the message (he's on mobile e.g., has a quite long passphrase and doesn't want to enter it for every message) and the encryption is automaticly enabled ("Encryption enabled" appears in the chatbox) and the passphrase dialog appears again. I click cancel, because I don't want to encrypt the session and he gets an encrypted message, which he can't decrypt. When he now answers and asks me why I send encrypted before his answer "Encryption disabled" appears in the chatbox. From this point on I can send him unencrypted messages.

The passphrase dialoge appears sometimes while Pidgin is idle or I send him or I receive a message from him. I click cancel and can send him an unencrypted message.

When I send a message to him the dialogue appears again, I can enter the passphrase and will send him an encrypted message.

Pidgin has an setting to auto-enable encryption on each contact, I think.

What about using this to determine if the gpg-plugin should encrypt or not?

If I will find some time in the next days/weeks I'll study the code and try to implement that (in this moment, the passphrase dialogue appeared again and i was typing into it instead of this github issue).

That's really weird.

Regards Thorsten

Draghtnod commented 8 years ago

I got a "Toggle OpenPGP encryption" Button in the options menu on each conversation. Why don't you use that?

synthor commented 8 years ago

How embarrassing. I haven't seen that option until now. Thanks for the hint! :-D

Toggling works, but if I disable the encryption the passphrase dialogue still appears when I send a message. I would expect that it only would appear, if encryption is enabled. If the buddy answers in unencrypted setting the dialogue appears aswell.

The toggle setting doesn't seem to be persistent. When I set encryption off, close the chatbox and open it again, encryption is enabled.

An option to globally disable the encryption in combination with persistent setting per user would be great.

Or have I missed something again?