PHP Classes

File: tests/show_echomail_format.php

Recommend this page to a friend!
  Packages of Matthew Asham   Binkterm PHP   tests/show_echomail_format.php   Download  
File: tests/show_echomail_format.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Binkterm PHP
Bulletin board system based on the Web
Author: By
Last change:
Date: 5 days ago
Size: 1,802 bytes
 

Contents

Class file image Download
<?php

// Demonstrate the proper echomail format vs netmail format

echo "=== ECHOMAIL MESSAGE FORMAT (Fixed) ===\n\n";

echo
"Before fix - Echomail had incorrect netmail headers:\n";
echo
"? MSGID: 1:123/456 1234567890abcd\n";
echo
"? REPLYADDR 1:123/456\n";
echo
"? REPLYTO 1:123/456\n";
echo
"? INTL 1:124/789 1:123/456\n";
echo
"? FLAGS (if any)\n";
echo
"AREA:TEST.ECHO\n";
echo
"This is the message body...\n";
echo
"--- BinkTest v1.0\n";
echo
" * Origin: Sysop Name (1:123/456)\n\n";

echo
"After fix - Echomail has proper headers:\n";
echo
"? MSGID: 1:123/456 1234567890abcd\n";
echo
"? PID: BinkTest v1.0\n";
echo
"AREA:TEST.ECHO\n";
echo
"This is the message body...\n";
echo
"--- BinkTest v1.0\n";
echo
" * Origin: Sysop Name (1:123/456)\n";
echo
"? SEEN-BY: 123/456\n";
echo
"? PATH: 123/456\n\n";

echo
"=== NETMAIL MESSAGE FORMAT (Unchanged) ===\n\n";

echo
"Netmail still has proper netmail headers:\n";
echo
"? MSGID: 1:123/456 1234567890abcd\n";
echo
"? REPLYADDR 1:123/456\n";
echo
"? REPLYTO 1:123/456\n";
echo
"? INTL 1:124/789 1:123/456\n";
echo
"? FLAGS PVT\n";
echo
"This is the private message body...\n";
echo
"--- BinkTest v1.0\n";
echo
" * Origin: Sysop Name (1:123/456)\n\n";

echo
"=== KEY DIFFERENCES ===\n\n";

echo
"ECHOMAIL:\n";
echo
"- No INTL, REPLYADDR, REPLYTO, FLAGS kludges\n";
echo
"- Has PID kludge to identify software\n";
echo
"- Has AREA: line at start\n";
echo
"- Has SEEN-BY and PATH lines at end\n";
echo
"- Attributes = 0x0000 (not private)\n\n";

echo
"NETMAIL:\n";
echo
"- Has INTL, REPLYADDR, REPLYTO, FLAGS kludges\n";
echo
"- No PID, SEEN-BY, PATH lines\n";
echo
"- No AREA: line\n";
echo
"- Attributes = 0x0001 (private flag set)\n\n";

echo
"These changes ensure proper FTN compliance per FTS-0004 specification.\n";