Synchronet v3.19b-Win32 (install) has been released (Jan-2022).

You can donate to the Synchronet project using PayPal.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
custom:messageheader [2011/06/16 10:06] tracker1custom:messageheader [2019/04/16 02:47] – Overhaul to be more useful digital man
Line 1: Line 1:
 ====== Message Header ====== ====== Message Header ======
  
-When reading messages, you will often want to create a custom header for the message reading, as an asc/ans file, instead of the default message header driven by TEXT.DAT settings.+<file> 
 +┌────────────────────────····                                       Synchronet 
 +│ Subj: Word wrapping                                                ▌▀▌▌▀▌▌▀▌ 
 +│ Attr: Replied                                                      █▀▌█▀▌▐▄ 
 +│ To  : mark lewis                                                   █ ▌█ ▌▄ ▌ 
 +│ From: Digital Man #1                                               ▀▀ ▀▀  ▀ 
 +│ Date: Mon Apr 15 2019 03:17 am PDT (23.4 hours ago)                software 
 +└───────────────────────────────────────────────······ 
 +</file
 +Customizing the message header displayed when users read messages (e.gposts and mail messages) via the [[server:terminal]] server involves either: 
 +  * Modifying the first 9 strings defined in the system's ''[[dir:ctrl]]/[[custom:text.dat]]'' file, or 
 +  * Creating/modifying the system's ''[[dir:text]]/menu/msghdr.*'' file
  
-The File should exist in ''./text/menu/MSGHDR.ASC'' you can use the ANS2ASC utility for an initial conversion.  You will then want to put the appropriate control codes into the message header.+If you chose the ''text.dat'' file route, here are the strings you'll be interested in: 
 +  * MsgSubj 
 +  * MsgTags 
 +  * MsgAttr 
 +  * MsgTo 
 +  * MsgToNet 
 +  * MsgToExt 
 +  * MsgFrom 
 +  * MsgFromNet 
 +  * MsgFromExt 
 +  * MsgDate 
 +  * MsgVotes 
 +  * MsgHdrBodySeparator 
 +  * PollAnswerChecked 
 +  * ForwardedFrom
  
-Here are a few codes that I find useful (note the -L### is for padding/trimming the length of an item) +If you chose the ''msghdr.*'' file route, here are some [[custom:atcodes|@-codes]] that you may want to include in the file for dynamic string values: 
-  * @SMB_GROUP@ +  * SMB_GROUP 
-  * @SMB_SUB-L#######@ +  * SMB_SUB 
-  * @SMB_CURMSG@ +  * SMB_AREA_DESC 
-  * @SMB_MSGS@ +  * SMB_CURMSG 
-  * @MSG_DATE-L#########################@ +  * SMB_MSGS 
-  * @MSG_ATTR-L#########################@ +  * MSG_DATE 
-  * @MSG_FROM_NAME-L#########################@ +  * MSG_TIMEZONE 
-  * @MSG_TO_NAME-L#########################@ +  * MSG_AGE 
-  * @MSG_SUBJECT-L#########################@+  * MSG_ATTR 
 +  * MSG_FROM_NAME 
 +  * MSG_TO_NAME 
 +  * MSG_SUBJECT
  
-TODOClean this page up.+Synchronet comes stock with: 
 +  * An example msghdr.*: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/text/menu/msghdrexample.asc 
 +  * A message header to use only for 40-columns terminals: http://cvs.synchro.net/cgi-bin/viewcvs.cgi/text/menu/msghdr.40col.asc
  
 ===== See Also ===== ===== See Also =====
   * [[:custom:atcodes|@-Codes]]   * [[:custom:atcodes|@-Codes]]
   * [[:custom:ctrl-a_codes|Ctrl-A Codes]]   * [[:custom:ctrl-a_codes|Ctrl-A Codes]]
 +  * [[:custom:menu files]]
 +  * [[:config:text files]]
   * [[:custom:|Customization]]   * [[:custom:|Customization]]
  
-{{tag>}}+{{tag>message header}}