Project

General

Profile

« Previous | Next » 

Revision a6c766ec

Added by Marc Dequènes about 13 years ago

  • ID a6c766ec88817148b6a904e75f78f02c218e91fa

[fix] intercept GPGME::Error::DecryptFailed happening at least when encrypting with an unknown key

View differences:

lib/cyborghood/mail.rb
@user = decrypted_mail.user
return decrypted_mail
rescue GPGME::Error::DecryptFailed
# encrypted with an unknown key
rescue GPGME::Error, NotImplementedError => e
raise CyberError.new(:unrecoverable, "protocol/mail", e.message)
end
end
MailReport.new(:error => _("Mail not formatted correctly (encrypted part)."))
MailReport.new(:error => _("Mail not formatted correctly (encrypted part), or not encrypted with the correct key."))
end
def mark_dir

Also available in: Unified diff