* Identify our message format preference (HTML followed by plain text)
authorArt Cancro <ajc@citadel.org>
Fri, 14 Nov 2003 17:15:19 +0000 (17:15 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 14 Nov 2003 17:15:19 +0000 (17:15 +0000)
  to the server upon connection, so MSG4 commands run properly.

ctdlphp/ChangeLog
ctdlphp/ctdlprotocol.php

index 636b2861c385a40b326401fa891d3183bf534460..aa5d436fb9bdc350fcba33da97f4d540eac9d83e 100644 (file)
@@ -1,4 +1,8 @@
  $Log$
+ Revision 1.17  2003/11/14 17:15:19  ajc
+ * Identify our message format preference (HTML followed by plain text)
+   to the server upon connection, so MSG4 commands run properly.
+
  Revision 1.16  2003/11/14 17:09:04  ajc
  * Added a basic read loop ... currently only fetches message numbers
 
@@ -69,3 +73,4 @@
 
  Revision 1.1  2003/10/31 03:47:13  ajc
  * Initial CVS import
+
index 7341f2d1965804894d4fa2c71ee406d5749d10b2..b3ebe337998a89de63eaf8adea68cbcfa45d40bc 100644 (file)
@@ -32,13 +32,18 @@ function serv_puts($buf) {
 
 
 //
-// Identify this client, and the hostname where the user is, to Citadel.
+// Identify ourselves to the Citadel server (do this once after connection)
 //
 function ctdl_iden() {
        global $clientsocket;
 
+       // Identify client and hostname
        serv_puts("IDEN 0|8|001|PHP web client|" . $_SERVER['REMOTE_ADDR'] );
        $buf = serv_gets();
+
+       // Also express our message format preferences
+       serv_puts("MSGP text/html|text/plain");
+       $buf = serv_gets();
 }