[dev] [PATCH] /imp/compose.php

Marc Jauvin marc at register4less.com
Sun Feb 15 06:52:10 PST 2004


This will convert a signature to HTML when using "Compose messages with an HTML
GUI by default" (from 'Message Composition' options)

Please, commit.

 --
 Marc Jauvin
 http://register4less.com
 450-441-5458
-------------- next part --------------
Index: compose.php
===================================================================
RCS file: /repository/imp/compose.php,v
retrieving revision 2.717
diff -u -r2.717 compose.php
--- compose.php 12 Feb 2004 08:29:54 -0000      2.717
+++ compose.php 15 Feb 2004 14:49:07 -0000
@@ -1244,6 +1244,10 @@
     } else {
         $msg .= "\n" . $sig;
     }
+    if ($rtemode == IMP_COMPOSE_HTML) {
+        $converter = &new Text($msg);
+        $msg = $converter->toHtml($msg, TEXT_HTML_MICRO);
+    }
 }

 /* Define some variables used in the templates. */


More information about the dev mailing list