Jump to content

denc

Members
  • Posts

    8
  • Joined

  • Last visited

denc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi there, Thanks, the unix command cat does copy the content to spam_output. Question, normally when spamassassin is executed, it should add in "X-Spam-Status" and the spam score? But, in my case, it doesn't. Already tried to add these to the user_prefs file. add_header all always_add_headers 1 use_bayes 1 required_score 5 score FB_SSEX 10 score HTML_COMMENT_8BITS 3 score OBSCURED_EMAIL 3 score ONLINE_PHARMACY 10 score SUBJ_ILLEGAL_CHARS 3 score UPPERCASE_25_50 3 score UPPERCASE_50_75 3 score UPPERCASE_75_100 3 score VIA_GAP_GRA 3 Can you advise? Thanks.
  2. Hi all, I have managed to get the path of spamassassin from my webhost. exec('/usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/spamassassin spam_input > spam_output'); $spam_out = file('spam_output'); $score = 0.0; for ($i = 0; $i < count($spam_out); $i++) { if (!(strpos($spam_out[$i], "X-Spam-Status") === FALSE)) { $score = floatval(substr($spam_out[$i], strpos($spam_out[$i], 'score=') + 6)); break; } The same problem im having here. The whole post is in file spam_input as follow From: "denc" <test@test.com> Received: from test.com (test.com [210.195.151.218]) To: email@domain.com Subject: messsage Date: Mon, 18 Feb 2013 23:46:02 EST test message However, it is not being copied to spam_output. When checked, the last changed date of spam_input and spam_output is the same, so I assume there's an attempt to copy content of spam_input to spam_output, however nothing is being copied. Can advise? Thanks.
  3. Hi guru, I have attempted to run the php script provided above, but it is giving empty output. What is this suppose to mean?
  4. Hi Guru, Yes, I'm executing it from a php script. But I'm not getting the correct spam score. It is always giving zero. I'm checking with my webhost, they told me the path to spamassassin is /home/den/.spamassassin, but when I'm checking in that particular directory, only saw these files... bayes_seen, bayes_toks, user_prefs. Is this really the directory then? exec('/home/den/.spamassassin spam_input > spam_output'); $spam_out = file('spam_out'); $score = 5.0; for ($i = 0; $i < count($spam_out); $i++) { if (!(strpos($spam_out[$i], "X-Spam-Status") === FALSE)) { $score = floatval(substr($spam_out[$i], strpos($spam_out[$i], 'score=') + 6)); break; } } In spam_input file, I can see the following From: "denc" <test@test.com> Received: from test.com (test.com [210.195.151.218]) To: email@domain.com Subject: messsage Date: Mon, 18 Feb 2013 23:46:02 EST test message However, this is not copied to spam_output... it is always empty. I'm suspecting the some issue with spamassassin? Thanks.
  5. spam_input will contain the message sent by visitor. if it will be copied into spam_output, i would expect some content in spam_output? but im seeing that the file is empty all the time. does it mean that spamassassin is not working at all? also i have no acess to execuite unix command, any path where it will usually be located? thanks.
  6. Hi, I have some curiosity.. (1) what does spam_input > spam_outout in the following command line mean? exec('spamassassin spam_input > spam_output'); (2) is it possible for me to find out myself the path of spamassassin? Thanks.
  7. Is there any way I can verify whether it has already been enabled? I still have the same problem, but they were telling me that they have successfully enabled GMP math library.
  8. Hi all, I'm quite new to PHP scripting. I would like to check with you what would the subjected error mean? Is it something I have to check with the web-hosting company? I thought gmp_intval() is some standard function in php, no? Thanks in advance.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.