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

Created convenience macro: GETMSGTXT_BODY_ONLY.

parent e3ab527c
No related branches found
No related tags found
No related merge requests found
......@@ -212,7 +212,7 @@ int main(int argc, char **argv)
if(msg.hdr.attr&MSG_DELETE)
text=NULL;
else
text=smb_getmsgtxt(&smb,&msg,0);
text=smb_getmsgtxt(&smb,&msg,GETMSGTXT_BODY_ONLY);
i=smb_hashmsg(&smb,&msg,text);
if(i!=SMB_SUCCESS && i!=SMB_DUPE_MSG)
printf("!ERROR %d hashing message\n", i);
......
......@@ -82,6 +82,7 @@
#define GETMSGTXT_TAILS (1<<0) /* Get message tail(s) */
#define GETMSGTXT_NO_BODY (1<<1) /* Do not retrieve message body */
#define GETMSGTXT_BODY_ONLY 0
#define GETMSGTXT_TAIL_ONLY (GETMSGTXT_TAILS|GETMSGTXT_NO_BODY)
#define SMB_IS_OPEN(smb) ((smb)->shd_fp!=NULL)
......
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