829 int process_parseto(AGENT_CTX *ATX, const char *buf) {
830 char *y = NULL;
831 char *x;
832 char *h;
833
834 if (!buf)
835 return EINVAL;
836 h = strstr(buf, "\r\n\r\n");
837 if (!h) h = strstr(buf, "\n\n");
838
839 x = strstr(buf, "<spam-");
840 if (!x)
841 x = strstr(buf, " spam-");
842 if (!x)
843 x = strstr(buf, ":spam-");
844 if (!x)
845 x = strstr(buf, "<spam@");
846 if (!x)
847 x = strstr(buf, " spam@");
848 if (!x)
849 x = strstr(buf, ":spam@");
850 if (x > h) x = NULL;
I'm trying to understand what is the h variable for. I always get h=NULL
on lines 836/837, and then x>h is always true, and the email retraining
wasn't working for me. If I comment line 850, it is working as expected,
and the signature of the forwarded email is retrained as spam.
Thank you.
Carlo Rodrigues
------------------------------------------------------------------------------
_______________________________________________
Dspam-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-devel