RoundCube 0.2.1 package available for ISPConfig2

Discussion in 'General' started by Hans, Mar 11, 2009.

  1. NeeChee

    NeeChee New Member

    For the people that had problems with displaying HTML-containing messages, I have found a workaround for this, it is probably not the most elegant/secure/best solution, but since there are no solutions posted anywhere on the internet, I thought I'd post it here anyway.

    In the file /home/admispconfig/ispconfig/web/roundcubemail/program/lib/washtml.php find rule 235.

    PHP:
    [...]
      public function 
    wash($html) {
        
    //Charset seems to be ignored (probably if defined in the HTML document)
        
    $node = new DOMDocument('1.0'$this->config['charset']);

        
    $this->extlinks false;
        @
    $node->loadHTML($html);

        return 
    $this->dumpHtml($node);

      }
    [...]
    I've commented out all the code in this function, and made it return raw data so no changes are made to it. (You can also delete the code, but I commented it out in case I ever need to get it back.)

    PHP:
    [...]
      public function 
    wash($html) {
        
    //Charset seems to be ignored (probably if defined in the HTML document)
    #    $node = new DOMDocument('1.0', $this->config['charset']);

    #    $this->extlinks = false;
    #    @$node->loadHTML($html);

    #    return $this->dumpHtml($node);
    return $html;
      }
    [...]
    This seems to be working thusfar...
     
  2. arnaud

    arnaud New Member

    How to enable xml or/and dom (I don't know which is needed by roundcube) in ispconfig php ?
    I saw this in install_ispconfig/compile_aps/compile
    which xml2-config
    if [ $? != 0 ]; then
    WITH_XML="--disable-libxml --disable-dom --disable-xml --disable-xmlreader --disable-xmlwriter --disable-simplexml"
    else
    WITH_XML=""
    fi
     
  3. arnaud

    arnaud New Member

    I answer myself : I installed libxml2-dev (on debian) which provide xml2-config.
    So, Roundcube can display html mails.
     
  4. madmucho

    madmucho Member

    new stable

    New stable version with plugin architecture is now out!
    tested from svn. no new additions from server side need.
     
  5. Hans

    Hans Moderator Moderator

    Last edited: Sep 6, 2009

Share This Page