Project

General

Profile

« Previous | Next » 

Revision 92ce37f9

Added by Marc Dequènes about 13 years ago

  • ID 92ce37f93399a06880f90eae7390bec56ebcd957

[fix] (ported from 0.3.x) intercept GPGME::Error::DecryptFailed happening at least when encrypting with an unknown key

View differences:

lib/cyborghood-postman/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