LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-20-2006, 05:48 AM   #1
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Rep: Reputation: 15
spamassassin need help


Hi, how to do in spamassassin spam test that when email has come message is empty.
For example function EMPTY_MESSAGE works then message is empty and there is no subject, but i need only empty message.
Can somebody help me?
 
Old 06-20-2006, 06:50 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Make a local rule that reverses meta_tests.cf's __NONEMPTY_BODY ?
 
Old 06-20-2006, 10:59 AM   #3
Hondro
Member
 
Registered: Mar 2006
Location: Lithuania
Distribution: Slackware-12.2
Posts: 102

Original Poster
Rep: Reputation: 15
I tried but did not work, because this function cheking subject and whole message.
Maybe it can be done somehow with .procmailrc?
 
Old 06-20-2006, 12:54 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Here's some pseudo-code, YMMV(VM)
Code:
:0 check validity of headers
 { 
    :0 pipe body through only
    LINES=$(formail -I " "|wc -l)

    :0 test $LINES is "0"
    do something
 }
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SpamAssassin linuxlastslonge Linux - Software 1 01-05-2005 04:09 AM
spamassassin w/ procmail vs. spamassassin w/sendmail bleunuit Linux - Networking 1 08-01-2004 07:12 AM
Spamassassin VincentB Linux - Newbie 0 02-29-2004 07:20 AM
Spamassassin granatica Linux - Software 0 09-04-2003 04:43 PM
Spamassassin help iBool Linux - Software 6 07-22-2003 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration