Skip to content
Snippets Groups Projects
Commit bd06a981 authored by rswindell's avatar rswindell
Browse files

Added 3 new header fields for tracing the originator (sender) of messages,

especially through SMTP (where these values are exposed via the Originator-info
header field): SENDERUSERID, SENDERSERVER, and SERVERTIME.
parent e442133d
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -192,6 +192,11 @@
#define SENDERPORT_BIN 0x0a /* deprecated */
#define SENDERPORT 0x0b /* for tracing */
/* Used for the SMTP Originator-Info header field: */
#define SENDERUSERID 0x0c /* user-id */
#define SENDERTIME 0x0d /* authentication/connection time */
#define SENDERSERVER 0x0e /* server hostname that authenticed user */
#define AUTHOR 0x10
#define AUTHORAGENT 0x11
#define AUTHORNETTYPE 0x12
......
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This library is free software; you can redistribute it and/or *
* modify it under the terms of the GNU Lesser General Public License *
......@@ -56,6 +56,9 @@ char* SMBCALL smb_hfieldtype(ushort type)
case SENDERPROTOCOL: return("SenderProtocol");
case SENDERPORT_BIN: return("SenderPortBin");
case SENDERPORT: return("SenderPort");
case SENDERUSERID: return("SenderUserID");
case SENDERTIME: return("SenderTime");
case SENDERSERVER: return("SenderServer");
case REPLYTO: return("Reply-To"); /* RFC-compliant */
case REPLYTOAGENT: return("Reply-ToAgent");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment