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

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.
parent 8ff23547
Branches
Tags
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment