+ Reply to Thread
Results 1 to 1 of 1

Thread: gpg intern solution

  1. #1
    cyphunk is offline Roundcube Newcomer
    Join Date
    Sep 2009
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default gpg intern solution

    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 edited by cyphunk; 09-22-2009 at 11:31 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts