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

Add SMB_HASH_SOURCE_SUBJECT support to smb_hashsource() and

smb_hashsourcetype().
parent d97aac5f
No related branches found
No related tags found
No related merge requests found
...@@ -150,6 +150,7 @@ char* SMBCALL smb_hashsourcetype(uchar type) ...@@ -150,6 +150,7 @@ char* SMBCALL smb_hashsourcetype(uchar type)
case SMB_HASH_SOURCE_BODY: return(smb_dfieldtype(TEXT_BODY)); case SMB_HASH_SOURCE_BODY: return(smb_dfieldtype(TEXT_BODY));
case SMB_HASH_SOURCE_MSG_ID: return(smb_hfieldtype(RFC822MSGID)); case SMB_HASH_SOURCE_MSG_ID: return(smb_hfieldtype(RFC822MSGID));
case SMB_HASH_SOURCE_FTN_ID: return(smb_hfieldtype(FIDOMSGID)); case SMB_HASH_SOURCE_FTN_ID: return(smb_hfieldtype(FIDOMSGID));
case SMB_HASH_SOURCE_SUBJECT: return(smb_hfieldtype(SUBJECT));
} }
sprintf(str,"%02Xh",type); sprintf(str,"%02Xh",type);
return(str); return(str);
...@@ -162,6 +163,8 @@ char* SMBCALL smb_hashsource(smbmsg_t* msg, int source) ...@@ -162,6 +163,8 @@ char* SMBCALL smb_hashsource(smbmsg_t* msg, int source)
return(msg->id); return(msg->id);
case SMB_HASH_SOURCE_FTN_ID: case SMB_HASH_SOURCE_FTN_ID:
return(msg->ftn_msgid); return(msg->ftn_msgid);
case SMB_HASH_SOURCE_SUBJECT:
return(msg->subj);
} }
return("hash"); return("hash");
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment