From caa34e8d77bbfe4e255587b24be8ecde659ffc86 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Tue, 29 Oct 2002 11:54:40 +0000
Subject: [PATCH] Created convenience pointer in smbmsg_t for SUMMARY header
 field data. Created convenience values in smbmsg_t for PRIORITY and COST
 header field data. Implemented support for the expiration header field in
 smb_getmsghdr(). Changed smbmsg_t.expiration from a when_t to a ulong
 (time_t): expiration dates are always specified in the local timezone.

---
 src/smblib/smblib.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/smblib/smblib.c b/src/smblib/smblib.c
index dd30451ff4..b277192d25 100644
--- a/src/smblib/smblib.c
+++ b/src/smblib/smblib.c
@@ -801,6 +801,18 @@ int SMBCALL smb_getmsghdr(smb_t* smb, smbmsg_t* msg)
 			case SUBJECT:
 				msg->subj=(char*)msg->hfield_dat[i];
 				break;
+			case SMB_SUMMARY:
+				msg->summary=(char*)msg->hfield_dat[i];
+				break;
+			case SMB_EXPIRATION:
+				msg->expiration=*(time_t*)msg->hfield_dat[i];
+				break;
+			case SMB_PRIORITY:
+				msg->priority=*(ulong*)msg->hfield_dat[i];
+				break;
+			case SMB_COST:
+				msg->cost=*(ulong*)msg->hfield_dat[i];
+				break;
 			case RFC822MSGID:
 				msg->id=(char*)msg->hfield_dat[i];
 				break;
-- 
GitLab