Hi folks,

in the documentation I have found the example04:

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CTX = dspam_create (USERNAME, NULL, dspam_home, DSM_CLASSIFY,//DSM_PROCESS
DSF_SIGNATURE| DSF_NOISE); ( ... some more code ...) if (CTX->signature ==
NULL) { printf ("No signature provided\n"); } else { /* Copy to a safe
place */ SIG.data = malloc (CTX->signature->length); if (SIG.data != NULL)
memcpy (SIG.data, CTX->signature->data, CTX->signature->length); } SIG.
length = CTX->signature->length;
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

but when I try to print out what the signature is (as pure text, a char
array):

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

printf("Signature returned by dspam= %s",CTX->signature);

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

it prints unrecognisable characters and the strlen(CTX->signature) returns 0

How can I get the signature from DSPAM, using LIBDSPAM?

Helio Luchtenberg Junior.
------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Dspam-devel mailing list
Dspam-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspam-devel

Reply via email to