Author Topic: gpg intern solution  (Read 2817 times)

Offline cyphunk

  • Newbie
  • *
  • Posts: 2
gpg intern solution
« 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.
« Last Edit: September 22, 2009, 06:31:57 AM by cyphunk »