The 'N' (Node) field in the message database has been resurrected, this time as a...
authorArt Cancro <ajc@citadel.org>
Mon, 14 Dec 2020 00:29:31 +0000 (19:29 -0500)
committerArt Cancro <ajc@citadel.org>
Mon, 14 Dec 2020 00:29:31 +0000 (19:29 -0500)
citadel/docs/databaselayout.txt
citadel/msgbase.c
citadel/server.h

index 7dbcf1da3d3b55a73e0d6fc741b49e2dc195e552..97c14f8d528d1aff363201d91a20b841fc00d652 100644 (file)
@@ -221,7 +221,7 @@ reaches zero.
 
 | BYTE  |       Enum        | NW   | Mnemonic       |  Enum / Comments
 |-------|-------------------|------|----------------|---------------------------------------------------------
-| A     |    eAuthor        | from | Author         |  Name of originator of the message.
+| A     |    eAuthor        | from | Author         |  The display name of the Author of the message.
 | B     |    eBig_message   |      | Big message    |  This is a flag which indicates that the message is
 |       |                   |      |                |  big, and Citadel is storing the body in a separate
 |       |                   |      |                |  record.  You will never see this field because the
@@ -233,8 +233,8 @@ reaches zero.
 |       |                   |      |                |  message should be deleted.  If there exist any messages
 |       |                   |      |                |  with the same Exclusive ID that are *newer*, then this
 |       |                   |      |                |  message should be dropped.
-| F     |    erFc822Addr    | rfca | rFc822 address |  For Internet mail, this is the delivery address of the
-|       |                   |      |                |  message author.
+| F     |    erFc822Addr    | rfca | rFc822 address |  email address or user principal name of the message
+|       |                   |      |                |  author.
 | I     |    emessageId     | msgn | Message ID     |  An RFC822-compatible message ID for this message.
 |       |                   |      |                |  
 | J     |    eJournal       | jrnl | Journal        |  The presence of this field indicates that the message
@@ -245,6 +245,9 @@ reaches zero.
 | L     |    eListID        | list | List-ID        |  Mailing list identification, as per RFC 2919
 | M     |    eMesageText    | text | Message Text   |  Normal ASCII, newlines seperated by CR's or LF's,
 |       |                   |      |                |  null terminated as always.
+| N     |    eOrigLocal     | locl | Is-Local       |  The presence of this field indicates that the message
+|       |                   |      |                |  originated on the local Citadel node, not as an inbound
+|       |                   |      |                |  email or some other outside source.
 | O     |    eOriginalRoom  | room | Room           |  Room of origin.
 | P     |    eMessagePath   | path | Path           |  Complete path of message, as in the UseNet news
 |       |                   |      |                |  standard.  A user should be able to send Internet mail
index 7e6d0650e473f0664d2f1d33d6feb30f789f90af..870a83a0347dcd0e318e28330a130bb92b562e38 100644 (file)
@@ -61,7 +61,7 @@ char *msgkeys[] = {
        "rep2", // K -> eReplyTo
        "list", // L -> eListID
        "text", // M -> eMesageText
-       NULL,   // N (formerly used as eNodeName)
+       "locl", // N -> eOrigLocal
        "room", // O -> eOriginalRoom
        "path", // P -> eMessagePath
        NULL,   // Q
@@ -113,6 +113,7 @@ eMsgField FieldOrder[]  = {
        eOriginalRoom,
        eRecipient   ,
 /* Semi-important fields */
+       eOrigLocal   ,
        eBig_message ,
        eExclusiveID ,
        eWeferences  ,
@@ -1856,6 +1857,7 @@ void OutputRFC822MsgHeaders(
                        case eSuppressIdx:
                        case eExtnotify:
                        case eVltMsgNum:
+                       case eOrigLocal:
                                /* these don't map to mime message headers. */
                                break;
                        }
index 9215d2e7e9c614b3d483afdf39f8db8660d86c36..bac82875c9f11cedc588aada798ce526dbc89557 100644 (file)
@@ -317,6 +317,7 @@ typedef enum _MsgField {
        eReplyTo      = 'K',
        eListID       = 'L',
        eMesageText   = 'M',
+       eOrigLocal    = 'N',
        eOriginalRoom = 'O',
        eMessagePath  = 'P',
        eRecipient    = 'R',