Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: cyphunk on September 22, 2009, 06:27:16 AM

Title: gpg intern solution
Post by: cyphunk on September 22, 2009, 06:27:16 AM
I wanted roundcube to show the GPG/PGP encrypted block instead of the "encryptedmessage" replacement.  After spending a couple hours waddling through the code I came up with a quick solution.  Replaced:
      $p->body = rcube_label('encryptedmessage');
with:
      $p->body = $this->imap->get_body($this->uid, 2);
      #var_dump($this->imap->get_body($this->uid, 2)); # debug

This is obviously gpg client specific.  It just so happens the gpg messages I am receiving have the PGP inline block in the 2nd part of the message. I just wanted something quickly so that my client based gpg decryption would work without requiring i open up the email source. I know that this will NOT work with many other GPG/PGP scenarios.  I just wanted to share it, should someone start muddling through the code to do the same.

I'd be happy if someone could point me to the function that handles populating the compose box on a reply/forward.